-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (56 loc) · 2.05 KB
/
index.html
File metadata and controls
60 lines (56 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Statick Solver</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header id="app-header">
<h1>Static Solver</h1>
</header>
<main id="app-main">
<div>
<label for="solverType">Solver type:</label>
<select name="solverType" id="solverType">
<option value="ssb">Simply Supported Beam</option>
</select>
</div>
<div>
<label for="spanLength">Span length:</label>
<input type="text" name="spanLength" id="spanLength">
</div>
<div>
<label for="loadType">Load type:</label>
<select name="loadType" id="loadType">
<option value="point">Point load</option>
<option value="distributed">Distributed load</option>
</select>
</div>
<div class="input-group" id="pointLoadInputs">
<div>
<label for="pointLoadMagnitude">Magnitude of point load:</label>
<input type="text" name="pointLoadMagnitude" id="pointLoadMagnitude">
</div>
<div>
<label for="loadDistanceFromRef">Distance of load from ref:</label>
<input type="text" name="loadDistanceFromRef" id="loadDistanceFromRef">
</div>
</div>
<div class="input-group" id="distributedLoadInputs">
</div>
<button id="calculateButton" type="button">Calculate</button>
<button id="resetButton" type="button">Reset</button>
</main>
<section id="app-results">
<h1>Results</h1>
<div id="results"></div>
<canvas id="shearDiagram"></canvas>
<canvas id="momentDiagram"></canvas>
</section>
<script src="./node_modules/chart.js/dist/chart.umd.js"></script>
<script src="./index.js" type="module"></script>
</body>
</html>