92 lines
4.2 KiB
HTML
92 lines
4.2 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">IP</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<form>
|
|
<div class="form-row">
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input1">String 1</label>
|
|
<input type="text" class="form-control" id="input1" placeholder="Enter String 1">
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-primary btn-block" onclick="getFirstChar()">First-char</button>
|
|
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input2">Str</label>
|
|
<input type="text" class="form-control" id="input2" placeholder="Enter Str">
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input3">Str</label>
|
|
<input type="text" class="form-control" id="input3" placeholder="Enter Str">
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-primary btn-block" onclick="doSum()">Sum</button>
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input4">Year of birth</label>
|
|
<input type="number" class="form-control" id="input4" placeholder="Enter Year">
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-primary btn-block" onclick="getYears()">getYears</button>
|
|
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input5">Str</label>
|
|
<input type="text" class="form-control" id="input5" placeholder="Enter Str">
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input6">Num</label>
|
|
<input type="number" class="form-control" id="input6" placeholder="Enter Num">
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-primary btn-block" onclick="getSubstring()">Substring</button>
|
|
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="input7">Array's size</label>
|
|
<input type="number" class="form-control" id="input7" placeholder="Enter Num">
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-primary btn-block" onclick="getArray()">Get random Array</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>
|
|
|
|
|
|
|
|
|