oh dear
This commit is contained in:
parent
220a7626fb
commit
5738f9f43e
3 changed files with 163 additions and 0 deletions
46
calc/index.html
Normal file
46
calc/index.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Calculator</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="header">
|
||||
<h1>zyq's calculator</h1>
|
||||
</div>
|
||||
|
||||
<div class="main">
|
||||
<div class="result">
|
||||
<span id="resultnum"></span>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button class="button" id="7">7</button>
|
||||
<button class="button" id="8">8</button>
|
||||
<button class="button" id="9">9</button>
|
||||
<button class="button" id="divide">÷</button>
|
||||
<button class="button" id="sqroot">√</button>
|
||||
<button class="button" id="4">4</button>
|
||||
<button class="button" id="5">5</button>
|
||||
<button class="button" id="6">6</button>
|
||||
<button class="button" id="mutiply">×</button>
|
||||
<button class="button" id="percent">%</button>
|
||||
<button class="button" id="1">1</button>
|
||||
<button class="button" id="2">2</button>
|
||||
<button class="button" id="3">3</button>
|
||||
<button class="button" id="subtract">-</button>
|
||||
<button class="button" id="fraction">1/x</button>
|
||||
<button class="button" id="0">0</button>
|
||||
<button class="button" id="decimal">.</button>
|
||||
<button class="button" id="negative">+/-</button>
|
||||
<button class="button" id="add">+</button>
|
||||
<button class="button" id="sum">=</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="calc.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue