forked from 0xvashishth/CalcHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (56 loc) · 4.12 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<title>Kinetic Theory of Gases Calculator</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel ="stylesheet" href = "style.css">
<script src = "https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js" defer></script>
<script src = "script.js" defer></script>
<script type="text/javascript" src = "particles.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="particles-js" style="position: absolute;">
<div style="position: absolute;" class="w-100 h-100">
<h1 class="m-4">Kinetic Theory of Gases Calculator</h1>
<div class="m-5 flex-row w-100 h-100" style="display: flex; flex-direction: row; flex-wrap: wrap;">
<div class=" p-4" style="min-width:365px ; height: auto; width: 50%; max-width: 982px;">
<select class="form-select w-auto" id="toCalc" onchange="select()" aria-label="Default select example">
<option selected value="1">Root Mean Square Velocity (V<sub>rms</sub>)</option>
<option value="2">Average Velocity (V<sub>av</sub>)</option>
<option value="3">Most Probable Velocity (V<sub>mp</sub>)</option>
<option value="4">Pressure of Gas (P)</option>
<option value="5">Volume of Gas (V)</option>
<option value="6">Temperature of Gas (T)</option>
<option value="7">Internal Energy of Gas</option>
</select>
<div class="mt-5 w-auto" id="inputValues">
<div class="input-group mb-3">
<span class="input-group-text w-auto">Molar Mass of Gas</span>
<input id="1in" placeholder="in g/mol" type="number" class="form-control" >
</div>
<div class="input-group mb-3">
<span class="input-group-text w-auto">Temperature of Gas</span>
<input id="2in" placeholder="in Kelvin (k)" type="number" class="form-control" >
</div>
<div class="input-group mb-3 w-auto">
<span class="input-group-text w-auto">Universal Gas Constant</span>
<input style="background-color:rgb(248, 251, 255);" disabled type="text" value="8.3145 M^1 L^2 T^-2 K^-1" class="form-control" >
</div>
<div class="input-group">
<span class="input-group-text w-auto">Result</span>
<input id="result" style="background-color:rgb(248, 251, 255);" disabled type="text" value="" class="form-control" >
</div>
<button type="button" class="btn btn-secondary mt-4" onclick="calc()">Calculate</button>
</div>
</div>
<div style="width: 40%;" class="">
<h1 class="">Steps</h1>
<div id="steps" class="mx-5 mt-5">
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>