-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src='https://cdn.plot.ly/plotly-latest.min.js'></script>
<script src="PhyBioJS/array_class.js"></script>
<script src="PhyBioJS/phybio.js"></script>
<link rel="stylesheet" href="style.css">
<title>PhyBioJS</title>
</head>
<body>
<iframe src="header.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
<main id="main">
<h1>PhyBioJS</h1>
<p>This is a JavaScript implementation of phase-field models.</p>
<div id="painel">
<div>
<select class="select" name="models" id="model">
<option value="">Model</option>
<option value="allen_cahn();">Allen-Cahn</option>
<option value="cahn_hilliard();">Cahn-Hilliard</option>
<option value="droplet();">Droplet</option>
</select>
<input class="input" type="text" placeholder="Steps" id="tsteps" value="10000">
<button class="button" onclick="runSim(document.getElementById('model').value,
parseInt(document.getElementById('tsteps').value),
parseInt(document.getElementById('Lx').value),
parseInt(document.getElementById('Ly').value),
parseInt(document.getElementById('cell_radius').value))">Run</button>
</div>
<div >
<input class="input" type="text" placeholder="Lx" id="Lx" value="50">
<input class="input" type="text" placeholder="Ly" id="Ly" value="50">
<input class="input" type="text" placeholder="Radius" id="cell_radius" value="6">
<div>
</div>
</div>
</div>
<div id='plotDiv' class="plotDiv"><h2><h2><!-- Plotly chart will be drawn inside this DIV --></div>
</main>
</body>
</html>