First commit
This commit is contained in:
parent
f633c97cde
commit
b6974ac45b
3 changed files with 48 additions and 0 deletions
42
index.html
Normal file
42
index.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="main.css">
|
||||
<title>Calculator</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="calculator">
|
||||
<div class="screen">
|
||||
<div id="dis_sml" class="display_sml"></div>
|
||||
<div id="dis_big" class="display_big"></div>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button value="ADD">+</button>
|
||||
<button value="SUB">-</button>
|
||||
<button value="MUL">*</button>
|
||||
<button value="DIV">/</button>
|
||||
<button value="1">1</button>
|
||||
<button value="2">2</button>
|
||||
<button value="3">3</button>
|
||||
<button value="ACC" class="ac">AC</button>
|
||||
<button value="4">4</button>
|
||||
<button value="5">5</button>
|
||||
<button value="6">6</button>
|
||||
<button value="DEL">DEL</button>
|
||||
<button value="7">7</button>
|
||||
<button value="8">8</button>
|
||||
<button value="9">9</button>
|
||||
<button value="NEG">+/-</button>
|
||||
<button value="DOT">.</button>
|
||||
<button value="0">0</button>
|
||||
<button value="EQU" class="eq">=</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
5
main.css
Normal file
5
main.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
.container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
}
|
1
main.js
Normal file
1
main.js
Normal file
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in a new issue