adjust layout and add extra buttons
This commit is contained in:
49
index.html
49
index.html
@@ -17,29 +17,42 @@
|
||||
<input id="modulus" required type="number" min="1" step="1" />
|
||||
</div>
|
||||
|
||||
<button id="clear" type="button">C</button>
|
||||
<button id="lparen" type="button">(</button>
|
||||
<button id="rparen" type="button">)</button>
|
||||
<button id="divide" type="button">/</button>
|
||||
<div id="extra-buttons">
|
||||
<button id="sqrt" type="button">√</button>
|
||||
<button id="inv" type="button">x<sup>-1</sup></button>
|
||||
<button id="pow" type="button">^</button>
|
||||
</div>
|
||||
|
||||
<button id="7" type="button">7</button>
|
||||
<button id="8" type="button">8</button>
|
||||
<button id="9" type="button">9</button>
|
||||
<button id="times" type="button">*</button>
|
||||
<div id="main-buttons">
|
||||
<button id="clear" type="button">C</button>
|
||||
<button id="lparen" type="button">(</button>
|
||||
<button id="rparen" type="button">)</button>
|
||||
|
||||
<button id="4" type="button">4</button>
|
||||
<button id="5" type="button">5</button>
|
||||
<button id="6" type="button">6</button>
|
||||
<button id="minus" type="button">-</button>
|
||||
<div id="numerals">
|
||||
<button id="7" type="button">7</button>
|
||||
<button id="8" type="button">8</button>
|
||||
<button id="9" type="button">9</button>
|
||||
|
||||
<button id="1" type="button">1</button>
|
||||
<button id="2" type="button">2</button>
|
||||
<button id="3" type="button">3</button>
|
||||
<button id="plus" type="button">+</button>
|
||||
<button id="4" type="button">4</button>
|
||||
<button id="5" type="button">5</button>
|
||||
<button id="6" type="button">6</button>
|
||||
|
||||
<button id="0" type="button">0</button>
|
||||
<button id="1" type="button">1</button>
|
||||
<button id="2" type="button">2</button>
|
||||
<button id="3" type="button">3</button>
|
||||
|
||||
<button id="0" type="button">0</button>
|
||||
</div>
|
||||
|
||||
<div id="operators">
|
||||
<button id="divide" type="button">/</button>
|
||||
<button id="times" type="button">*</button>
|
||||
<button id="minus" type="button">-</button>
|
||||
<button id="plus" type="button">+</button>
|
||||
<button id="enter" type="button">≡</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="enter" type="button">≡</button>
|
||||
</div>
|
||||
|
||||
<script type="module" src="main.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user