2023-02-13 18:08:11 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ru">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
|
|
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
<link href="node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet" />
|
|
|
|
<title>Калькулятор</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<form class="mx-2 d-flex flex-column align-items-center text-center">
|
|
|
|
<div>
|
|
|
|
Первое число
|
|
|
|
<input id="first" class="form-control" type='number' value='0' />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Операция
|
|
|
|
<select class="form-select" id="operation">
|
|
|
|
<option value="1">+</option>
|
|
|
|
<option value="2">-</option>
|
|
|
|
<option value="3">*</option>
|
|
|
|
<option value="4">/</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Второе число
|
|
|
|
<input id="second" class="form-control" type='number' value='0' />
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-02-27 17:53:52 +04:00
|
|
|
<button type="button" class="btn btn-primary my-2" id="calculate">Числа</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button type="button" class="btn btn-primary mb-2" id="calculateStr">Строки</button>
|
2023-02-13 18:08:11 +04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Результат:
|
|
|
|
<p id="result"> </p>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script src="script.js"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|