-
Notifications
You must be signed in to change notification settings - Fork 0
/
calcolatrice.html
90 lines (90 loc) · 2.79 KB
/
calcolatrice.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<title>Calcolatrice</title>
<script src='calcolatrice.js'></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Silkscreen">
<link rel="stylesheet" href="calcolatrice.css">
</head>
<body onload="get_calcolatrice_output()">
<h1>Calcolatrice</h1>
<br>
<table>
<tr>
<td colspan="4">
<textarea id="calcolatrice_output" cols="10" rows="1" readonly placeholder="0"></textarea>
</td>
</tr>
<tr>
<td>
<button class="canc" onclick="reset()">C</button>
</td>
<td>
<button class="canc" onclick="del()">◀</button>
</td>
<td>
<button class="op" onclick="alert('non so che deve fare questo tasto :P')">%</button>
</td>
<td>
<button class="op" onclick="add_operator('/')">÷</button>
</td>
</tr>
<tr>
<td>
<button class="num" onclick="add_value(7)">7</button>
</td>
<td>
<button class="num" onclick="add_value(8)">8</button>
</td>
<td>
<button class="num" onclick="add_value(9)">9</button>
</td>
<td>
<button class="op" onclick="add_operator('*')">×</button>
</td>
</tr>
<tr>
<td>
<button class="num" onclick="add_value(4)">4</button>
</td>
<td>
<button class="num" onclick="add_value(5)">5</button>
</td>
<td>
<button class="num" onclick="add_value(6)">6</button>
</td>
<td>
<button class="op" onclick="add_operator('-')">-</button>
</td>
</tr>
<tr>
<td>
<button class="num" onclick="add_value(1)">1</button>
</td>
<td>
<button class="num" onclick="add_value(2)">2</button>
</td>
<td>
<button class="num" onclick="add_value(3)">3</button>
</td>
<td>
<button class="op" onclick="add_operator('+')">+</button>
</td>
</tr>
<tr>
<td>
<button class="num" onclick="add_value(0)">0</button>
</td>
<td>
<button class="num" onclick="add_value('00')">00</button>
</td>
<td>
<button class="num" onclick="add_decimal_point()">.</button>
</td>
<td>
<button class="op" onclick="calculate()">=</button>
</td>
</tr>
</table>
</body>
</html>