author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Fri, 09 Nov 2012 12:09:40 +0100 | |
changeset 142 | 74c37d9cfdc9 |
parent 141 | 63be794c1eeb |
child 197 | e7bb314eec32 |
permissions | -rw-r--r-- |
jaroslav@141 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
jaroslav@141 | 2 |
<!-- |
jaroslav@142 | 3 |
|
jaroslav@142 | 4 |
Back 2 Browser Bytecode Translator |
jaroslav@142 | 5 |
Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
jaroslav@142 | 6 |
|
jaroslav@142 | 7 |
This program is free software: you can redistribute it and/or modify |
jaroslav@142 | 8 |
it under the terms of the GNU General Public License as published by |
jaroslav@142 | 9 |
the Free Software Foundation, version 2 of the License. |
jaroslav@142 | 10 |
|
jaroslav@142 | 11 |
This program is distributed in the hope that it will be useful, |
jaroslav@142 | 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
jaroslav@142 | 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jaroslav@142 | 14 |
GNU General Public License for more details. |
jaroslav@142 | 15 |
|
jaroslav@142 | 16 |
You should have received a copy of the GNU General Public License |
jaroslav@142 | 17 |
along with this program. Look for COPYING file in the top folder. |
jaroslav@142 | 18 |
If not, see http://opensource.org/licenses/GPL-2.0. |
jaroslav@142 | 19 |
|
jaroslav@141 | 20 |
--> |
jaroslav@141 | 21 |
<!DOCTYPE html> |
jaroslav@141 | 22 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
jaroslav@141 | 23 |
<head> |
jaroslav@141 | 24 |
<title>Simple Calculator in HTML5 and Java</title> |
jaroslav@141 | 25 |
</head> |
jaroslav@141 | 26 |
<body> |
jaroslav@141 | 27 |
<table border="0" cellspacing="2"> |
jaroslav@141 | 28 |
<tbody> |
jaroslav@141 | 29 |
<tr> |
jaroslav@141 | 30 |
<td colspan="4"><input id="display" value="0"/></td> |
jaroslav@141 | 31 |
</tr> |
jaroslav@141 | 32 |
<tr> |
jaroslav@141 | 33 |
<td><button id="n1">1</button></td> |
jaroslav@141 | 34 |
<td><button id="n2">2</button></td> |
jaroslav@141 | 35 |
<td><button id="n3">3</button></td> |
jaroslav@141 | 36 |
<td><button id="plus">+</button></td> |
jaroslav@141 | 37 |
</tr> |
jaroslav@141 | 38 |
<tr> |
jaroslav@141 | 39 |
<td><button id="n4">4</button></td> |
jaroslav@141 | 40 |
<td><button id="n5">5</button></td> |
jaroslav@141 | 41 |
<td><button id="n6">6</button></td> |
jaroslav@141 | 42 |
<td><button id="minus">-</button></td> |
jaroslav@141 | 43 |
</tr> |
jaroslav@141 | 44 |
<tr> |
jaroslav@141 | 45 |
<td><button id="n7">7</button></td> |
jaroslav@141 | 46 |
<td><button id="n8">8</button></td> |
jaroslav@141 | 47 |
<td><button id="n9">9</button></td> |
jaroslav@141 | 48 |
<td><button id="mul">*</button></td> |
jaroslav@141 | 49 |
</tr> |
jaroslav@141 | 50 |
<tr> |
jaroslav@141 | 51 |
<td><button id="clear">C</button></td> |
jaroslav@141 | 52 |
<td><button id="n0">0</button></td> |
jaroslav@141 | 53 |
<td><button id="result">=</button></td> |
jaroslav@141 | 54 |
<td><button id="div">/</button></td> |
jaroslav@141 | 55 |
</tr> |
jaroslav@141 | 56 |
</tbody> |
jaroslav@141 | 57 |
</table> |
jaroslav@141 | 58 |
|
jaroslav@141 | 59 |
<script src="bootjava.js"/> |
jaroslav@141 | 60 |
</body> |
jaroslav@141 | 61 |
</html> |