-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
224 lines (223 loc) · 6.99 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html>
<head>
<title>pKAnalyzer</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="styles.css" />
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="http://cdn.jsdelivr.net/g/filesaver.js"></script>
<script src="https://kit.fontawesome.com/d27b01dd4f.js"></script>
</head>
<body onresize="resizeGraph()">
<div id="mainTitle">
<h2><b>pK<sub>A</sub>nalyzer 2.1</b></h2>
<button id="toolSwitch" class="main_buttons" onclick="switchViews()">
Switch Views
</button>
</div>
<hr style="margin: 16px" />
<!--Instructions here-->
<!--<hr style="margin:16px"/>-->
<div id="pkaContainer">
<!-- Begin Left Panel-->
<div class="user_input_section">
<div id="acid_selection">
<button onclick="toggleDropdown()" class="main_buttons">
Select Acid ▼
</button>
<div class="dropdown">
<div id="myDropdown" class="dropdown-content">
<input
type="text"
placeholder="Search..."
id="myInput"
onkeyup="filterFunction()"
/>
<div id="acid_buttons"></div>
</div>
</div>
<hr />
<div id="userPkaInput">
<h3>
<b>Enter pK<sub>a</sub> values:</b>
</h3>
<div id="pkaInputs" style="width: 100%">
<!--"oninput" attribute updates as sliding-->
<!--"onchange" only update on mouse release-->
<input
type="range"
step="0.1"
value="0"
min="-4"
max="14"
placeholder="pka1"
id="pka1InputRange"
oninput="updateInput('pka1Input', this.value)"
/>
<input
type="text"
placeholder="pka1"
id="pka1Input"
oninput="updateInput('pka1InputRange', this.value)"
/>
<input
type="range"
step="0.1"
value="0"
min="-4"
max="14"
placeholder="pka2"
id="pka2InputRange"
oninput="updateInput('pka2Input', this.value)"
/>
<input
type="text"
placeholder="pka2"
id="pka2Input"
oninput="updateInput('pka2InputRange', this.value)"
/>
<input
type="range"
step="0.1"
value="0"
min="-4"
max="14"
placeholder="pka3"
id="pka3InputRange"
oninput="updateInput('pka3Input', this.value)"
/>
<input
type="text"
placeholder="pka3"
id="pka3Input"
oninput="updateInput('pka3InputRange', this.value)"
/>
</div>
<div class="divider"></div>
<button class="main_buttons" id="save-btn" onclick="setUserPkas()">
Graph pK<sub>a</sub> Values
</button>
</div>
</div>
</div>
<!-- End Left Panel -->
<!--Begin Middle Panel-->
<div id="middle-panel">
<div class="visual_section">
<!-- TODO: Try Resizing graph here after moving to grid layout -->
<div id="graph"></div>
</div>
</div>
<!-- End Middle Panel -->
<!-- Begin Right Panel -->
<div id="rightPanel">
<div id="fractionInputContainer">
<input
type="range"
id="fractionRangeInput"
min="0"
max="14"
oninput="updateInput('userPH', this.value)"
/>
<input
type="text"
placeholder="pH"
id="userPH"
oninput="updateInput('fractionRangeInput', this.value)"
/>
</div>
<div class="divider"></div>
<div id="calculatorSection">
<button onclick="displayFractions()" class="main_buttons">
Calculate Fractions
</button>
<h3 id="userAlpha0"></h3>
<h3 id="userAlpha1"></h3>
<h3 id="userAlpha2"></h3>
<h3 id="userAlpha3"></h3>
</div>
<hr />
<div id="save_directions">
<h3><b>Select pH range to save:</b></h3>
<div id="pHRangeInputs">
<input type="text" placeholder="start" id="pHstart" />
<input type="text" placeholder="final" id="pHfinal" />
</div>
<button
value="Biochem 4"
onclick="makeFileText();"
class="main_buttons"
id="save-data-button"
>
Save Data File<i
class="fas fa-info-circle fa-1x"
id="info"
onclick="infoClick()"
></i>
</button>
</div>
<hr />
<button id="gifSwitch" class="main_buttons" onclick="switchGif()">
Disable Gif
</button>
</div>
<!-- End Right Panel -->
<!-- Begin Data Table -->
<div id="tableSection">
<table id="acidTable"></table>
<table id="baseTable"></table>
</div>
<!-- End Data Table -->
</div>
<div id="titrateContainer"></div>
<footer>
<hr />
<a
class="main_buttons"
href="https://github.com/Curt-iss/pka-analyzer"
target="_blank"
>
Github
</a>
<a
class="main_buttons"
href="https://github.com/Curt-iss/pka-analyzer/blob/master/README.md"
target="_blank"
>
About
</a>
<p>© 2019 Andrea Dietrich, Virginia Tech.</p>
<a
href="https://github.com/Curt-iss/pka-analyzer/blob/master/LICENSE"
target="_blank"
>Licensed Under GPL v2.0</a
>
</footer>
<script src="acids.js" charset="utf-8"></script>
<script src="main.js" charset="utf-8"></script>
<!--
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
-->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<!--
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
-->
</body>
</html>