-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (41 loc) · 1.35 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
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
canvas {
position:absolute;
top:0;left:0;
width:80%; height:80%;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
border: 1px solid gray;
}
.box {position:relative; width:100%;}
.box:before {content:""; display:block; padding-top:63%;}
textarea {
resize: none;
font-family:monospace;
}
</style>
<div class="container">
<div>
<select id="file" onchange="loadfile(this.value)"></select>
<button onclick="run()">Run</button>
<button onclick="stop()">Stop</button>
</div>
<div class="box"><canvas id="canvas"></canvas></div>
<script>
["clock.txt","column2.txt","column3.txt","column.txt","corners.txt",
"dripping-pan.txt","evaporation.txt","flat.txt","fountain.txt","funnel2.txt",
"funnel3.txt","funnel.txt","glass-half-empty.txt","leidenfrost.txt","logo.txt",
"pour-out.txt","tanada.txt"].forEach(function(f) {
file.options.add(new Option(f,"basis/"+f));
});
</script>
<div>
Input: <br>
<textarea id="previewarea" cols=80 rows=25></textarea>
</div>
</div>
<script src="fluiddyn.js"></script>
<script>loadfile(file.value);</script>