38 lines
1.7 KiB
HTML
38 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Bootstrap demo</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
|
|
<main>
|
|
<div class = "container" style="margin: 1%">
|
|
<h4 class="mb-3">Команды</h4>
|
|
<p>Сложение</p>
|
|
<input type="text" class="form-control" id="addNum1" placeholder="" value="0" required="" style="width: 10%;">
|
|
<input type="text" class="form-control" id="addNum2" placeholder="" value="0" required="" style="width: 10%;">
|
|
<select class="form-select form-select-lg mb-3" id= "type" aria-label=".form-select-lg example" style="width: 10%">
|
|
<option selected>Тип</option>
|
|
<option value="string">string</option>
|
|
<option value="int">int</option>
|
|
<option value="boolean">boolean</option>
|
|
</select>
|
|
<button class="btn btn-success" onclick="add()">Сложить</button>
|
|
<button class="btn btn-success" onclick="sub()">Вычесть</button>
|
|
<button class="btn btn-success" onclick="mul()">Умножить</button>
|
|
<button class="btn btn-success" onclick="del()">Поделить</button>
|
|
|
|
|
|
<div id="result">Ответ:</div>
|
|
|
|
|
|
</div>
|
|
</main>
|
|
<script src="MyScript.js"></script>
|
|
|
|
</body>
|
|
|
|
</html> |