44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>App</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<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>
|
|
<button type="button" class="btn btn-primary my-2" id="intButton">Integer</button>
|
|
</div>
|
|
<div>
|
|
<button type="button" class="btn btn-primary mb-2" id="strButton">String</button>
|
|
</div>
|
|
<div>
|
|
Результат:
|
|
<p id="result"> </p>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
<script type="module" src="./index.js"></script>
|
|
</body>
|
|
</html> |