-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (38 loc) · 2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Commissioner">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
<title>Calculator Task</title>
</head>
<body>
<div>
<div>
<input id="demo" type="text"> <br> <br>
<div>
<button id="button0" onclick="myFunction(0)">0</button>
<button id="button1" onclick="myFunction(1)">1</button>
<button id="button2" onclick="myFunction(2)">2</button>
<button id="button3" onclick="myFunction(3)">3</button>
<button id="button4" onclick="myFunction(4)">4</button>
<button id="button5" onclick="myFunction(5)">5</button>
<button id="button6" onclick="myFunction(6)">6</button>
<button id="button7" onclick="myFunction(7)">7</button>
<button id="button8" onclick="myFunction(8)">8</button>
<button id="button9" onclick="myFunction(9)">9</button>
<button id="button10" onclick="myFunction2(1)"> - </button>
<button id="button11" onclick="myFunction2(2)"> + </button>
<button id="button12" onclick="myFunction2(3)"> / </button>
<button id="button13" onclick="myFunction2(4)"> * </button>
<button onclick="equalTo()"> = </button>
<button onclick="cancel()" style="margin-left: 2%;">C</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>