-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
117 lines (98 loc) · 5.3 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!--
Copyright 2021 Konstantinos Kritharidis
This file is part of Chemical Reaction Simulator.
Chemical Reaction Simulator is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Chemical Reaction Simulator is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Chemical Reaction Simulator. If not, see <https://www.gnu.org/licenses/>.
License: https://konstantinosk31.github.io/Chemical-Reaction-Simulator/LICENSE
-->
<!DOCTYPE html>
<html>
<head>
<title>Chemical Reaction Simulator</title>
<link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- [Bootstrap] -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<!-- [/Bootstrap] -->
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body onload="Load()">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid justify-content-center">
<a class="navbar-brand" href="#">Chemical Reaction Simulator</a>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="about/">About</a>
</li>
</ul>
</div>
</nav>
<br />
<div class="container-fluid text-center">
<div class="row content">
<div class="col-sm-12">
<h1>Welcome to the Chemical Reaction Simulator!</h1>
<h3>Insert a chemical reaction and the website will output n(t), C(t) (if appropriate) and U(t) plots by simulating the reaction.</h3>
<p>If a substance doesn't have a coefficient enter "1" as its coefficient.</p>
<div>
<label>Is the reaction simple?</label>
<input type="checkbox" id="simpleReactionCheckbox" onclick="InitSimple(this.checked);" checked>
</div>
</div>
</div>
</div>
<br />
<div class="container-fluid text-center">
<div class="row content">
<div class="col-sm-12">
<div id="reactants"></div>
<div>
<button type="button" class="btn btn-primary" onclick="AddElement(true);">Add Reactant</button>
<button type="button" class="btn btn-primary" onclick="RemoveElement(true);">Remove Reactant</button>
<select onclick="InitIrreversible(this.selectedIndex);">
<option value="<=>">⇔</option>
<option value="->">→</option>
</select>
<button type="button" class="btn btn-primary" onclick="AddElement(false);">Add Product</button>
<button type="button" class="btn btn-primary" onclick="RemoveElement(false);">Remove Product</button>
</div>
<div id="products"></div>
<div>
<br>
<label>Is the container closed?</label>
<input type="checkbox" id="closedContatinerCheckbox" onclick="InitV(this.checked);" checked>
</div>
<div id="volume"></div>
<br />
<div id="constants"></div>
<br />
<p id="simulation"></p>
<div id="charts" class="container-canvas"></div>
</div>
</div>
</div>
<footer class="container-fluid text-center"><small>
<p>Copyright 2021-2022 Konstantinos Kritharidis</p>
<p>Special Thanks to Richard Bariampa</p>
<p>Contribute to Chemical Reaction Simulator on <a href="https://github.com/konstantinosk31/Chemical-Reaction-Simulator" target="_blank">GitHub</a></p>
<p>Contact details: Konstantinos Kritharidis (konstantinosk31) <konstantinosk31 [at] gmail [dot] com></p>
</small></footer>
<!-- [chart.js] -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.js"></script>
<!-- [/chart.js]-->
<script src="js/input.js"></script>
<script src="js/simulate.js"></script>
<script src="js/plot.js"></script>
</body>
</html>