31 lines
1.3 KiB
HTML
31 lines
1.3 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>
|
||
|
<h4 class="mb-3">Команды</h4>
|
||
|
<p>Сложение</p>
|
||
|
<input type="number" class="form-control" id="addNum1" placeholder="" value="0" required="" style="width: 10%;">
|
||
|
<input type="number" class="form-control" id="addNum2" placeholder="" value="0" required="" style="width: 10%;">
|
||
|
|
||
|
<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>
|
||
|
|
||
|
|
||
|
|
||
|
</main>
|
||
|
<script src="MyScript.js"></script>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|