javaquery/demo-calculator/src/main/resources/org/apidesign/bck2brwsr/mavenhtml/Calculator.xhtml
1 <?xml version="1.0" encoding="UTF-8"?>
3 To change this template, choose Tools | Templates
4 and open the template in the editor.
7 <html xmlns="http://www.w3.org/1999/xhtml">
9 <title>Simple Calculator in HTML5 and Java</title>
12 <table border="0" cellspacing="2">
15 <td colspan="4"><input id="display" value="0"/></td>
18 <td><button id="n1">1</button></td>
19 <td><button id="n2">2</button></td>
20 <td><button id="n3">3</button></td>
21 <td><button id="plus">+</button></td>
24 <td><button id="n4">4</button></td>
25 <td><button id="n5">5</button></td>
26 <td><button id="n6">6</button></td>
27 <td><button id="minus">-</button></td>
30 <td><button id="n7">7</button></td>
31 <td><button id="n8">8</button></td>
32 <td><button id="n9">9</button></td>
33 <td><button id="mul">*</button></td>
36 <td><button id="clear">C</button></td>
37 <td><button id="n0">0</button></td>
38 <td><button id="result">=</button></td>
39 <td><button id="div">/</button></td>
44 <script src="bootjava.js"/>