-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathcalculator.html
58 lines (52 loc) · 1.63 KB
/
calculator.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Calculator Responsive HTML Template</title>
<style>
/* change theme here */
:root {
--color-one: black;
--color-two: #333;
--color-three: #555;
--color-four: #777;
--color-five: #999;
}
body { background: #000; color: #777; }
#case {
width: 800px;
height: 800px;
background-color: var(--coolor-three);
}
#keys { display: flex; width: 800px; }
.key { width: 64px; height: 64px; background-color: var(--coolor-four); text-align: center; line-height: 64px; }
.digit { color: silver; }
</style>
<script type = "text/javascript">
window.onload = E => {
Object.entries(document.querySelectorAll('.key')).map(key => console.log(key));
}
</script>
</head>
<body>
<div id = "case">
<div id = "view"></div>
<div id = "keys">
<div class = "key"></div>
<div class = "key"></div>
<div class = "key"></div>
<div class = "key"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
<div class = "key digit"></div>
</div>
</div>
</body>
</html>