65 lines
2.6 KiB
HTML
65 lines
2.6 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Calculator</title>
|
||
|
<!-- Подключаем Bootstrap CSS -->
|
||
|
<script src="/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||
|
<link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap.min.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<div class="container mt-4">
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="col-lg-6">
|
||
|
<div class="card shadow-lg">
|
||
|
<div class="card-header">
|
||
|
<h3 class="text-center font-weight-light my-2">Calculator</h3>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<form>
|
||
|
<div class="form-row">
|
||
|
<div class="col">
|
||
|
<div class="form-group">
|
||
|
<label for="input1">Number 1</label>
|
||
|
<input type="number" class="form-control" id="input1" placeholder="Enter Number 1">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col">
|
||
|
<div class="form-group">
|
||
|
<label for="input2">Number 2</label>
|
||
|
<input type="number" class="form-control" id="input2" placeholder="Enter Number 2">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col">
|
||
|
<div class="form-group">
|
||
|
<label for="operator">Operator</label>
|
||
|
<select class="form-control" id="operator">
|
||
|
<option value="+">+</option>
|
||
|
<option value="-">-</option>
|
||
|
<option value="*">*</option>
|
||
|
<option value="/">/</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="result">Result</label>
|
||
|
<input type="text" class="form-control result" id="result" readonly>
|
||
|
</div>
|
||
|
<button type="button" class="btn btn-primary btn-block" onclick="calculate()">Calculate</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src = "script.js"></script>
|
||
|
</body>
|
||
|
</html>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|