forked from tamojit-123/neumorphic-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (50 loc) · 2.04 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">
<title>Calculator</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css"
integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk"
crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<input type="checkbox" class="checkbox" id="checkbox" />
<label for="checkbox" class="label">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
<div class="ball"></div>
</label>
</div>
<section class="calculator">
<div class="span-4">
<div class="output">
<p class="output__cal prevois__cal2" data-pre></p>
<p class="output__cal" data-cur></p>
</div>
</div>
<button class="button cal_clean" data-allClear>AC</button>
<button class="button cal_posNeg" data-posNeg>+/-</button>
<button class="button cal_operator" data-operation>%</button>
<button class="button cal_operator" data-operation>÷</button>
<button class="button cal_num" data-num>7</button>
<button class="button cal_num" data-num>8</button>
<button class="button cal_num" data-num>9</button>
<button class="button cal_operator" data-operation>x</button>
<button class="button cal_num" data-num>4</button>
<button class="button cal_num" data-num>5</button>
<button class="button cal_num" data-num>6</button>
<button class="button cal_operator" data-operation>-</button>
<button class="button cal_num" data-num>1</button>
<button class="button cal_num" data-num>2</button>
<button class="button cal_num" data-num>3</button>
<button class="button cal_operator" data-operation>+</button>
<button class="button span-2 cal_num" data-num>0</button>
<button class="button cal_num" data-num>.</button>
<button class="button cal_equel" data-equals>=</button>
</section>
<p class="error"></p>
<script src="calculator.js"></script>
</body>
</html>