80 lines
4.5 KiB
PHP
80 lines
4.5 KiB
PHP
<div class="modal fade" id="calculatorModal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
<div class="modal-dialog calculator-dialog" role="document">
|
|
<div class="modal-content calculator-content">
|
|
<div class="modal-header d-flex align-items-center justify-content-between">
|
|
<div class="custom-modal-header">
|
|
<button type="button" class="btn-close custom-close-btn calculator-btn" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div class="container calculator">
|
|
<form>
|
|
<input readonly id="display" type="text" class="form-control-lg text-right w-100" value="" />
|
|
</form>
|
|
|
|
<div class="d-flex justify-content-between button-row">
|
|
<button id="left-parenthesis" type="button" class="operator-group calculator-btn">
|
|
(
|
|
</button>
|
|
<button id="right-parenthesis" type="button" class="operator-group calculator-btn">
|
|
)
|
|
</button>
|
|
<button id="square-root" type="button" class="operator-group calculator-btn">
|
|
√
|
|
</button>
|
|
<button id="square" type="button" class="operator-group calculator-btn">
|
|
x²
|
|
</button>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between button-row">
|
|
<button id="clear" type="button" class="calculator-btn">C</button>
|
|
<button id="backspace" type="button" class="calculator-btn">⌫</button>
|
|
<button id="ans" type="button" class="operand-group calculator-btn">
|
|
Ans
|
|
</button>
|
|
<button id="divide" type="button" class="operator-group calculator-btn">
|
|
÷
|
|
</button>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between button-row">
|
|
<button id="seven" type="button" class="operand-group calculator-btn">7</button>
|
|
<button id="eight" type="button" class="operand-group calculator-btn">8</button>
|
|
<button id="nine" type="button" class="operand-group calculator-btn">9</button>
|
|
<button id="multiply" type="button" class="operator-group calculator-btn">
|
|
×
|
|
</button>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between button-row">
|
|
<button id="four" type="button" class="operand-group calculator-btn">4</button>
|
|
<button id="five" type="button" class="operand-group calculator-btn">5</button>
|
|
<button id="six" type="button" class="operand-group calculator-btn">6</button>
|
|
<button id="subtract" type="button" class="operator-group calculator-btn">
|
|
−
|
|
</button>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between button-row">
|
|
<button id="one" type="button" class="operand-group calculator-btn">1</button>
|
|
<button id="two" type="button" class="operand-group calculator-btn">2</button>
|
|
<button id="three" type="button" class="operand-group calculator-btn">3</button>
|
|
<button id="add" type="button" class="operator-group calculator-btn">+</button>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between button-row">
|
|
<button id="percentage" type="button" class="operand-group calculator-btn">
|
|
%
|
|
</button>
|
|
<button id="zero" type="button" class="operand-group calculator-btn">0</button>
|
|
<button id="decimal" type="button" class="operand-group calculator-btn">.</button>
|
|
<button id="equal" type="button" class="calculator-btn">=</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|