calculator.html 1.77 KB
<!DOCTYPE html>
<html>
<head>
    <title>Simple Calculator</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>
<div id="app" >

    <div id="result" >1428.57</div>

    <div id="keypad"  >

        <div id="num" >
            <div class="key" style="background-color: #19676E ;">7</div>
            <div align="center"  class="key" style="background-color: #095057 ;">8</div>
            <div class="key" style="background-color: #19676E ;">9</div>
            <div class="key" style="background-color: #095057 ;" >4</div>
            <div class="key" style="background-color: #19676E" >5</div>
            <div class="key" style="background-color: #095057" >6</div>
            <div class="key" style="background-color: #19676E ;" >1</div>
            <div class="key" style="background-color: #095057" >2</div>
            <div class="key" style="background-color: #19676E" >3</div>
            <div class="key" style="background-color: #095057 ;" >0</div>
            <div class="key" style="background-color: #19676E" >.</div>
            <div class="key" style="background-color: #095057" >=</div>
        </div>

        <div id="ops" >
            <div class="key2" style=" background-color: #D34E47 ;">×</div>
            <div class="key2" style="background-color: #B52D26 " >÷</div>
            <div class="key2" style="background-color: #B52D26 ; " >-</div>
            <div class="key2" style="background-color: #D34E47 " >CM</div>
            <div class="key2" style="background-color: #C43E37 ; height: 50%" >+</div>
            <div class="key2" style="background-color: #B52D26" >M-</div>
            <div class="key2" style="background-color: #D34E47 ; float: right;" >M+</div>
        </div>

    </div>

</div>
</body>
</html>