-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
103 lines (90 loc) · 3.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="antimony/libantimony.js" type="text/javascript"></script>
<script src="main.js" type="module"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Make SBML Models!</title>
</head>
<body>
<div id="app">
<nav>
<h1>Make SBML Models!</h1>
<h3 align="center">When choosing a file you can pick an SBML or Antimony file to convert </h3>
</nav>
</br>
<div class="link-box">
<input type="button" class="link-btn" style="background-color:#293D56;color:white;"
onclick="window.open('https://tellurium.readthedocs.io/en/latest/antimony.html#introduction-and-basics','_blank')" value="Antimony information">
<input type="button" class="link-btn" style="background-color:#293D56;color:white;"
onclick="window.open('https://sbml.org','_blank')" value="SBML information">
</div>
</br>
<div>
<div id="wrapper">
<div id="antimony-code-wrapper">
<input type="file" name="inputfile" id="inputfile"> </br>
<textarea id="antimonycode" rows="20" cols="80" maxlength="1000000"
placeholder="[Antimony code here.]">
# Sample Antimony model:
J0: S1 -> S2 + S3; k1*S1 # Mass-action kinetics
J1: S2 -> S3 + S4; k2*S2
S1 = 10 # The initial concentration of S1
S2 = 0 # The initial concentration of S3
S3 = 3 # The initial concentration of S3
S4 = 0 # The initial concentration of S4
k1 = 0.1 # The value of the kinetic parameter from J0.
k2 = 0.2 # The value of the kinetic parameter from J1.
</textarea>
<div class="input-wrapper">
<input type="button" id="saveAntimonyBtn" style="background-color:#293D56;color:white;"
value="Save Antimony to file">
<input type="button" id="copyAntimonyBtn" style="background-color:#293D56;color:white;"
value="Copy Antimony to clipboard">
</div>
</div>
<div id="convert-btn-wrapper">
<button id="procAntimonyBtn" value="Convert Antimony to SBML">→</button>
<button id="procSBMLBtn">←</button>
</div>
<div id="sbml-code-wrapper">
<div id="xml-id-wrapper">
<div id="xml-download-wrapper">
<div id='xml-download-search'>
<input autocomplete="off" id="xml-id-search-input1" placeholder="Search BioModels... Ex: sodium Whitcomb">
<div class="loader" id="loader-list1"></div>
</input>
<!-- <button> View </button> -->
</div>
<div id="rec1-wrapper">
<ul id="xml-1-rec">
</ul>
</div>
</div>
<div id="xml-import-wrapper">
<div id="rec2-wrapper">
<input type="button" class="link-btn" style="background-color:#293D56;color:white;"
onclick="window.open('https://www.ebi.ac.uk/biomodels/','_blank')" value="BioModels information">
</div>
</div>
</div>
</br>
<textarea id="sbmlcode" rows="20" cols="80" maxlength="2000000" placeholder="[SBML code here.]"></textarea>
<div class="input-wrapper" >
<input type="button" id="saveSBMLBtn" style="background-color:#293D56;color:white;"
value="Save SBML to file">
<input type="button" id="copySBMLBtn" style="background-color:#293D56;color:white;"
value="Copy SBML to clipboard">
</div>
</div>
</div>
</div>
<div class="about-box">
<input type="button" id="aboutBtn" class="about-btn" style="background-color:#293D56;color:white;" value="About">
<div>
</div>
<script type="module" src="main.js"></script>
</body>
</html>