-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (42 loc) · 1.77 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
<!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" />
<title>Vanilla JS Calculator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="bg"></div>
<div class="bg bg2"></div>
<div class="bg bg3"></div>
<div class="main-container">
<div class="calculator-container">
<input type="text" value="0" class="result-screen" disabled />
<div class="buttons">
<button value="AC" class="light-btn clear">AC</button>
<button value="+/-" class="light-btn change">+/-</button>
<button value="%" class="light-btn percent">%</button>
<button value="/" class="orange-btn operator">÷</button>
<button value="7" class="number">7</button>
<button value="8" class="number">8</button>
<button value="9" class="number">9</button>
<button value="*" class="orange-btn operator">x</button>
<button value="4" class="number">4</button>
<button value="5" class="number">5</button>
<button value="6" class="number">6</button>
<button value="-" class="orange-btn operator">-</button>
<button value="1" class="number">1</button>
<button value="2" class="number">2</button>
<button value="3" class="number">3</button>
<button value="+" class="orange-btn operator">+</button>
<button value="0" class="wide-btn number">0</button>
<button value="." class="operator">.</button>
<button value="=" class="orange-btn equals">=</button>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>