-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (51 loc) · 2.16 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pascal Solver</title>
<script src="index.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="center-1">
<div class="container">
<h1>Pascal Law</h1>
</div>
</div>
<div class="container-1">
<h2>Define</h2>
<h4>Pascal's law states that pressure exerted in a resting liquid is the same in all directions When external pressure is applied to any section of a fluid enclosed in a vessel, it is transmitted in all directions undiminished and evenly</h4>
<h4 class="text-center">P = Pressure (N/m^2)</h4>
<h4 class="text-center">F = Force (N)</h4>
<h4 class="text-center">A = Area (m^2)</h4>
</div>
<div class="container-1">
<h2 class="text-center">Known Values</h2>
<div class="container-2">
<select name="Data1" id="input1"class="input1">
<option id="p1" value="P">P (N/m^2)</option>
<option id="f1" value="F">F (N)</option>
<option id="a1" value="A">A (m^2)</option>
</select>
<select name="Data2" id="input2" class="input2">
<option id="a2" value="A">A (m^2)</option>
<option id="p2" value="P">P (N/m^2)</option>
<option id="f2" value="F">F (N)</option>
</select>
</div>
<div class="container-2">
<input style="margin-top: 15px; height: 33px;" id="input3" class="input3" type="number" required>
<input style="margin-top: 15px; height: 33px;" id="input4" class="input4" type="number" required>
</div>
<div class="container-2">
<button class="button" onclick="calculate()">Calculate</button>
</div>
<div class="container-3">
<p id="answerlabel"style="font-size: 20px;margin-right: 20px;">Answer</p>
<p style="font-size: 20px;margin-right: 20px;">=</p>
<Input class="output" id="answer" value="0" disabled></Input>
</div>
</div>
</body>
</html>