49 lines
1.8 KiB
HTML
49 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
|
|
<title>Калькулятор</title>
|
|
</head>
|
|
<body class="m-5">
|
|
<h1>Калькулятор</h1>
|
|
|
|
<form class="" id="form">
|
|
<div class="row my-3">
|
|
<div class="col-md-3">
|
|
<input name="num1" input type="text" class="form-control" placeholder="Первый аргумент">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<input name="num2" input type="text" class="form-control" placeholder="Второй аргумент">
|
|
</div>
|
|
<div class = "col-md-2">
|
|
<select class="form-select" name="selected" aria-label="Default select example">
|
|
<option value="1">Сложение</option>
|
|
<option value="2">Вычитание</option>
|
|
<option value="3">Переворачивание</option>
|
|
<option value="4">Сравнение</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<select id="type" class="form-select" >
|
|
<option value="int">Число</option>
|
|
<option value="string">Строка</option>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
<button type="submit" class="btn btn-success">Выполнить</button>
|
|
<div class="my-2 col-md-3">
|
|
<input name="res" input type="text" class="form-control " placeholder="Результат">
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
<script src="../js/script.js"></script>
|
|
</body>
|
|
</html> |