Pibd-22_Presnyakova.V.V_IP/front/index.html
2023-03-27 13:58:35 +04:00

83 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html xmlns:background="http://www.w3.org/1999/xhtml">
<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">
<style>
.btn{
background: aquamarine;
}
</style>
</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">IP</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 type="text" 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 type="text" 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="Sum">+</option>
<option value="Min">-</option>
<option value="Mul">*</option>
<option value="Del">/</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="arr">Array</option>
</select>
</div>
</div>
<button type="button" class="btn" onclick="getResult()">Result</button>
</div>
<div class="form-group">
<label for="result">Result</label>
<input type="text" class="form-control result" id="result" readonly>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script src = "script.js"></script>
</body>
</html>