forked from Dartameill/JS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (45 loc) · 2.65 KB
/
Copy pathindex.html
File metadata and controls
53 lines (45 loc) · 2.65 KB
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
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="script.js" charset="UTF-8"></script>
</head>
<body>
<div class="calculator">
<form class="calculator__form" action="javascript:void(0);">
<div class="calculator__row">
<input class="calculator__display" id="display" type="text" required />
</div>
<div class="calculator__row">
<button type="button" value="c" class="calculator__key calculator__clear"></button>
<button type="button" value="x" class="calculator__key calculator__backspace"></button>
<button type="button" value="^3" class="calculator__key calculator__power"></button>
<button type="button" value="+" class="calculator__key calculator__button calculator__button_plus"></button>
</div>
<div class="calculator__row">
<button type="button" value="9" class="calculator__key calculator__button"></button>
<button type="button" value="8" class="calculator__key calculator__button"></button>
<button type="button" value="7" class="calculator__key calculator__button"></button>
<button type="button" value="-" class="calculator__key calculator__button calculator__button_minus"></button>
</div>
<div class="calculator__row">
<button type="button" value="6" class="calculator__key calculator__button"></button>
<button type="button" value="5" class="calculator__key calculator__button"></button>
<button type="button" value="4" class="calculator__key calculator__button"></button>
<button type="button" value="*" class="calculator__key calculator__button calculator__button_multiplication"></button>
</div>
<div class="calculator__row">
<button type="button" value="3" class="calculator__key calculator__button"></button>
<button type="button" value="2" class="calculator__key calculator__button"></button>
<button type="button" value="1" class="calculator__key calculator__button"></button>
<button type="button" value="/" class="calculator__key calculator__button calculator__button_division"></button>
</div>
<div class="calculator__row">
<button type="button" value="0" class="calculator__key calculator__button"></button>
<button type="button" value="." class="calculator__key calculator__button calculator__button__point"></button>
<button type="button" value="=" class="calculator__key calculator__key--equal"></button>
</div>
</form>
</div>
</body>
</html>