-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
79 lines (73 loc) · 2.45 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:600,700" rel="stylesheet">
<title>Calculator for school
</title>
<meta property="og:title" content="Calculator For School" />
<meta property="og:description" content="Welcome back!" />
</head>
<body>
<div id="container">
<div id="calculator">
<div id="result">
<div id="history">
<p id="history-value">
</p>
</div>
<div id="output">
<p id="output-value">
</p>
</div>
</div>
<div id="keyboard">
<button class="operator" id="clear">C</button>
<button class="operator" id="backspace">CE</button>
<button class="operator" id="%">%</button>
<button class="operator" id="/">÷</button>
<button class="number" id="7" onclick="reset()">7</button>
<button class="number" id="8" onclick="reset()">8</button>
<button class="number" id="9" onclick="reset()">9</button>
<button class="operator" id="*">×</button>
<button class="number" id="4" onclick="reset()">4</button>
<button class="number" id="5" onclick="reset()">5</button>
<button class="number" id="6" onclick="reset()">6</button>
<button class="operator" id="-">-</button>
<button class="number" id="1" onclick="reset()">1</button>
<button class="number" id="2" onclick="reset()">2</button>
<button class="number" id="3" onclick="reset()">3</button>
<button class="operator" id="+" onclick="d2()">+</button>
<button class="zero" id="0" onclick="reset()">0</button>
<button class="operator" id="=" onclick="detect()">=</button>
</div>
</div>
</div>
<script src="script.js"></script>
<script>
var count = 0;
var c = 0;
function detect() {
count += 1;
c = 0;
if (count == 3) {
count = 0;
window.location='https://web-production-a65c.up.railway.app/';
};
};
function d2(){
count = 0;
c += 1;
if (c===3){
c=0;
rr();
}
}
function reset() {
count = 0;
c = 0;
};
</script>
<script src="cloak.js"></script>
</body>
</html>