Files
TestApp/Pages/Index.cshtml

68 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@page
@model IndexModel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Модель расчета поковок кольцо раскатное</title>
</head>
<style>
table {
margin: auto;
border-collapse: collapse;
width: 50%;
}
th, td, form, h2 {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
vertical-align: middle;
}
th {
background-color: #f2f2f2;
}
</style>
<body>
</body>
</html>
<h2>Модель расчета поковок кольцо раскатное</h2>
<form method="post">
<p>
<label>D:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any" name="D" value="1360"/>
</p>
<p>
<label>d:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any" name="dd" value="540"/>
</p>
<p>
<label>H:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any" name="H" value="215,00"/>
</p>
<p>
<label>x:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any"
onchange="document.getElementById('z').value = this.value - 1" name="x" value="2"/>
</p>
<p>
<label>y:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any" name="y" value="20"/>
</p>
<p>
<label>z:</label><br />
<input type="text" id="z" oninput="validateDecimal(this)" step="any" name="z" readonly value="1"/>
</p>
<p>
<label>Q:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any" name="Q" value="60"/>
</p>
<p>
<label>Напуск на ТО:</label><br />
<input type="text" oninput="validateDecimal(this)" step="any" name="onTO" value="0"/>
</p>
<input type="submit" value="Расчет" />
</form>