-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (61 loc) · 3.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Advanced Calculator With Dark Mode." />
<link rel="icon" type="image/x-icon" href="assets/images/calculator.svg">
<link rel="stylesheet" href="./assets/dist/css/dark.css" id="theme">
<link rel="stylesheet" href="./assets/dist/css/main.css" >
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Crimson+Text&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>Calculator</title>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="header-container">
<h1 id="heading">Calculator</h1>
<div class="top-buttons">
<a href="https://github.com/snipacer/calculator">
<img src="assets/images/GitHubLight.svg" alt="github Icon" id="github-icon">
</a>
<button type="button" onclick="changeTheme()" class="theme-button">
<img src="assets/images/darkMode.svg" alt="Theme Icon" id="theme-icon">
</button>
</div>
</div>
<div class="content">
<div class="buttons first-row">
<input class="output" type="text" name="result" id="result" placeholder="Result" readonly />
<input class="clear" type="button" value="C" onclick="result.value=''" id="clear-button" />
<input type="button" value="(" onclick="liveScreen(this.value)" />
<input type="button" value=")" onclick="liveScreen(this.value)" />
<input type="button" value="⌫" onclick="backspace()" />
<input type="button" value="1" onclick="liveScreen(1)" />
<input type="button" value="2" onclick="liveScreen(2)" />
<input type="button" value="3" onclick="liveScreen(3)" />
<input type="button" value="+" onclick="liveScreen('+')" />
<input type="button" value="4" onclick="liveScreen(4)" />
<input type="button" value="5" onclick="liveScreen(5)" />
<input type="button" value="6" onclick="liveScreen(6)" />
<input type="button" value="-" onclick="liveScreen('-')" />
<input type="button" value="7" onclick="liveScreen(7)" />
<input type="button" value="8" onclick="liveScreen(8)" />
<input type="button" value="9" onclick="liveScreen(9)" />
<input type="button" value="x" onclick="liveScreen('*')" />
<input type="button" value="/" onclick="liveScreen('/')" />
<input type="button" value="0" onclick="liveScreen(0)" />
<input type="button" value="." onclick="liveScreen('.')" />
<input type="button" value="=" onclick="calculate(result.value)" />
</div>
</div>
</div>
</div>
<script src="./assets/script/script.js"></script>
</body>
</html>