Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added day-night button, fixed layout #37

Merged
merged 2 commits into from
Oct 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 37 additions & 17 deletions Projects/Calculator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,42 @@

</head>
<body>
<center>
<div class="calculator">
<input type = "text" class = "screen" placeholder="enter"></input>
<ul class="number-layer">
<li><button>c</button><button>=</button><button>+</button><button>bk</button></li>
<li><button class="calculator-number">1</button><button class="calculator-number">2</button><button class="calculator-number">3</button><button>/</button></li>
<li><button class="calculator-number">4</button><button class="calculator-number">5</button><button class="calculator-number">6</button><button>-</button></li>
<li><button class="calculator-number">7</button><button class="calculator-number">8</button><button class="calculator-number">9</button><button>x</button></li>
<li><button>(</button><button>)</button><button>^</button><button>sqrt</button></li>
</ul>


</div>

</center>


<div class="centered">
<div class="header">
<span class = "decoration"> *** </span> <button class = "daynight"> </button>
</div>
<div class="display">
<textarea placeholder="120">120</textarea>
</div>
<div class="numbers">
<ul class="number-layer" style="list-style-type:none;">
<li><button>C</button>
<button>+/-</button>
<button>%</button>
<button>/</button>
</li>
<li><button class="calculator-number">7</button>
<button class="calculator-number">8</button>
<button class="calculator-number">9</button>
<button>x</button>
</li>
<li><button class="calculator-number">4</button>
<button class="calculator-number">5</button>
<button class="calculator-number">6</button>
<button>-</button>
</li>
<li><button class="calculator-number">1</button>
<button class="calculator-number">2</button>
<button class="calculator-number">3</button>
<button>+</button>
</li>
<li><button class="calculator-number">0</button>
<button class="calculator-number">.</button>
<button class="hidden-button calculator-number">.</button>
<button>=</button>
</li>
</ul>
</div>
</div>
</body>
</html>