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

76 lines
3.3 KiB
HTML

<!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">
<h3 class="text-center font-weight-light my-2">LabWork2</h3>
</div>
<div class="card-body">
<form>
<div class="form-row">
<div class="col">
<div class="form-group">
<label for="input1">Value 1</label>
<input class="form-control" id="input1" placeholder="Enter Value 1">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="input2">Value 2</label>
<input class="form-control" id="input2" placeholder="Enter Value 2">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="operator">Method</label>
<select class="form-control" id="operator">
<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>
<option value="array">Array</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<label for="result">Result</label>
<input type="text" class="form-control result" id="result" readonly>
</div>
<button type="button" class="btn btn-primary btn-block" onclick="calculate()">Do</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script src = "script.js"></script>
</body>
</html>