-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 2.54 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 lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="Calculator,Simple Calculator,Mathematics">
<link rel="stylesheet" href="calculator_main.css">
<link rel="stylesheet" media="(max-width:768px)" href="calculator_tablet.css">
<link rel="stylesheet" media="(max-width:500px)" href="calculator_phone.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="icon" type="image/x-icon" href="calculator-solid.svg">
<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=Roboto:wght@400;700&family=Tektur&display=swap" rel="stylesheet">
<title>Calculator</title>
</head>
<body>
<div id="container">
<div id="screen">checkcheckcheckcheck</div>
<div id="button-panel">
<button onclick="clearScreen()" class="clear button">Clear</button>
<button onclick="operandToScreen('/')" class="operand button">÷</button>
<button onclick="numberToScreen(7)" class="button">7</button>
<button onclick="numberToScreen(8)" class="button">8</button>
<button onclick="numberToScreen(9)" class="button">9</button>
<button onclick="operandToScreen('*')" class="operand button">X</button>
<button onclick="numberToScreen(4)" class="button">4</button>
<button onclick="numberToScreen(5)" class="button">5</button>
<button onclick="numberToScreen(6)" class="button">6</button>
<button onclick="operandToScreen('-')" class="operand button">—</button>
<button onclick="numberToScreen(1)" class="button">1</button>
<button onclick="numberToScreen(2)" class="button">2</button>
<button onclick="numberToScreen(3)" class="button">3</button>
<button onclick="operandToScreen('+')" class="operand button">+</button>
<button onclick="numberToScreen(0)" class="zero button">0</button>
<button onclick="operandToScreen('.')" class="button">,</button>
<button onclick="calculatorBack()" class="operand equal button">=</button>
</div>
</div>
<script src="app.js"></script>
</body>
</html>