-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (50 loc) · 2.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
<!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="./assets/styles.css">
<title>Calculator</title>
</head>
<body>
<div class="container">
<form name="form">
<div class="display">
<input type="text" placeholder="0" name="displayResult" />
</div>
<div class="buttons">
<div class="row" style="display: flex;">
<input type="button" data-clear style="flex: 1; border-radius: 999px;" value="C">
<input type="button" data-delete style="flex: 1; border-radius: 999px;" value="DEL">
</div>
<div class="row">
<input type="button" name="b7" data-number value="7">
<input type="button" name="b8" data-number value="8">
<input type="button" name="b9" data-number value="9">
<input type="button" name="addition" data-operation value="+">
</div>
<div class="row">
<input type="button" name="b4" data-number value="4">
<input type="button" name="b5" data-number value="5">
<input type="button" name="b6" data-number value="6">
<input type="button" name="subtraction" data-operation value="-">
</div>
<div class="row">
<input type="button" name="b1" data-number value="1">
<input type="button" name="b2" data-number value="2">
<input type="button" name="b3" data-number value="3">
<input type="button" name="mulb" data-operation value="*">
</div>
<div class="row">
<input type="button" name="b0" data-number value="0">
<input type="button" name="potb" data-dot value=".">
<input type="button" name="divb" data-operation value="/">
<input type="button" class="red" data-equals value="=">
</div>
</div>
</form>
</div>
<script src="./assets/main.js"></script>
</body>
</html>