-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (42 loc) · 1.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div>
<h1 id="title">CALCULATOR</h1>
<p id="description"><b>This is a Basic Calculator using HTML, CSS, and JavaScript with Dynamic DOM Manipulation.<br> It performs Arithmetic Operations and provide a Seamless User Experience.</b></p>
<div class="container">
<input type="text" class="display" id="result">
<div class="buttons">
<button class="operator" data-value="C" id="clear" style="color: red;">C</button>
<button class="operator" data-value="←">←</button>
<button class="operator" data-value="%" id="modulo">%</button>
<button class="operator" data-value="*" id="multiply">*</button>
<button data-value="7" id="7">7</button>
<button data-value="8" id="8">8</button>
<button data-value="9" id="9">9</button>
<button class="operator" data-value="/" id="division">/</button>
<button data-value="4" id="4">4</button>
<button data-value="5" id="5">5</button>
<button data-value="6" id="6">6</button>
<button class="operator" data-value="-" id="subtract">-</button>
<button data-value="1" id="1">1</button>
<button data-value="2" id="2">2</button>
<button data-value="3" id="3">3</button>
<button class="operator" data-value="+" id="add">+</button>
<button data-value="0" id="0">0</button>
<button data-value="00" id="00">00</button>
<button class="operator" data-value="." id=".">.</button>
<button class="equal" data-value="=" id="equal" style="background-color: blue; color: white;">=</button>
</div>
</div>
</div>
<script src="https://app.zenclass.in/sheets/v1/js/zen/suite/bundle.js"></script>
<script src="./script.js"></script>
</body>
</html>