IP_Zhelovanov/front/index.html

38 lines
1.7 KiB
HTML
Raw Normal View History

2023-02-20 22:25:28 +04:00
<!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>
2023-03-07 10:42:01 +04:00
<div class = "container" style="margin: 1%">
2023-02-20 22:25:28 +04:00
<h4 class="mb-3">Команды</h4>
<p>Сложение</p>
2023-03-07 10:42:01 +04:00
<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>
2023-02-20 22:25:28 +04:00
<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>
2023-03-07 10:42:01 +04:00
<div id="result">Ответ:</div>
2023-02-20 22:25:28 +04:00
2023-03-07 10:42:01 +04:00
</div>
2023-02-20 22:25:28 +04:00
</main>
<script src="MyScript.js"></script>
</body>
</html>