Pibd-22_Emelyanov_A.S._IP/frontend/index.html

75 lines
3.2 KiB
HTML
Raw Normal View History

2023-02-19 15:53:42 +04:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Calculator</title>
<!-- Подключаем Bootstrap CSS -->
<script src="/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-4">
<div class="row justify-content-center">
<div class="col-lg-6">
<div class="card shadow-lg">
<div class="card-header">
2023-03-11 20:38:01 +04:00
<h3 class="text-center font-weight-light my-2">LabWork2</h3>
2023-02-19 15:53:42 +04:00
</div>
<div class="card-body">
<form>
<div class="form-row">
<div class="col">
<div class="form-group">
2023-03-11 20:38:01 +04:00
<label for="input1">Value 1</label>
<input class="form-control" id="input1" placeholder="Enter Value 1">
2023-02-19 15:53:42 +04:00
</div>
</div>
<div class="col">
<div class="form-group">
2023-03-11 20:38:01 +04:00
<label for="input2">Value 2</label>
<input class="form-control" id="input2" placeholder="Enter Value 2">
2023-02-19 15:53:42 +04:00
</div>
</div>
<div class="col">
<div class="form-group">
2023-03-11 20:38:01 +04:00
<label for="operator">Method</label>
2023-02-19 15:53:42 +04:00
<select class="form-control" id="operator">
2023-03-11 20:38:01 +04:00
<option value="Method1">+</option>
<option value="Method2">-, toUpper</option>
<option value="Method3">*, toLower</option>
<option value="Method4">/, first toLower, second toUpper</option>
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<label for="operator">Type</label>
<select class="form-control" id="Type">
<option value="int">Integer</option>
<option value="str">String</option>
<option value="double">Double</option>
2023-02-19 15:53:42 +04:00
</select>
</div>
</div>
</div>
<div class="form-group">
<label for="result">Result</label>
<input type="text" class="form-control result" id="result" readonly>
</div>
2023-03-11 20:38:01 +04:00
<button type="button" class="btn btn-primary btn-block" onclick="calculate()">Do</button>
2023-02-19 15:53:42 +04:00
</form>
</div>
</div>
</div>
</div>
</div>
<script src = "script.js"></script>
</body>
</html>