-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (94 loc) · 3.31 KB
/
index.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
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto Slab">
<link rel="stylesheet" href="main.css">
<title>Calculatrice</title>
</head>
<body>
<div id="device_frame">
<div id="device_title">
<h1>Calculatrice</h1>
</div>
<div id="screen">
<div id="display">
<p id="display_device"></p>
</div>
</div>
<div class="device_buttons">
<button class ="buttons_operations" type="button" id="clear">
CE
</button>
<button class ="buttons_operations" type="button" id="sqr" onclick="displayScreenCommon('^')">
x^
</button>
<button class ="buttons_operations" type="button" id="sqr_root" onclick="displayScreenCommon('√')">
√x
</button>
<button class ="buttons_operations" type="button" id="divide" onclick="displayScreenCommon('÷')">
÷
</button>
</div>
<div class="device_buttons">
<button class ="buttons_num" type="button" onclick="displayScreenCommon(7)">
7
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(8)">
8
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(9)">
9
</button>
<button class ="buttons_operations" type="button" id="multiply" onclick="displayScreenCommon('*')">
×
</button>
</div>
<div class="device_buttons">
<button class ="buttons_num" type="button" onclick="displayScreenCommon(4)">
4
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(5)">
5
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(6)">
6
</button>
<button class ="buttons_operations" type="button" id="substract" onclick="displayScreenCommon('-')">
-
</button>
</div>
<div class="device_buttons">
<button class ="buttons_num" type="button" onclick="displayScreenCommon(1)">
1
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(2)">
2
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(3)">
3
</button>
<button class ="buttons_operations" type="button" id="add" onclick="displayScreenCommon('+')">
+
</button>
</div>
<div class="device_buttons">
<button class ="buttons_operations" type="button" id="percent" onclick="displayScreenCommon('%')">
%
</button>
<button class ="buttons_num" type="button" onclick="displayScreenCommon(0)">
0
</button>
<button class ="buttons_operations" type="button" id="float" onclick="displayScreenCommon('.')">
.
</button>
<button class ="button_equal" type="button" id="equals">
=
</button>
</div>
</div>
<script type="text/javascript" src="main.js"></script>
</body>
</html>