-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
62 lines (57 loc) · 1.62 KB
/
template.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
<!doctype html>
<html lang="en-us">
<head>
<title>Pi estimation</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
<style>
.hide {
visibility: hidden
}
.heading {
font-size: 4rem
}
.result {
font-size: 3rem;
margin-top: 7px
}
</style>
</head>
<body>
<div class="ui raised container segment" style="text-align: center">
<h2 class="ui header">Pi estimation</h2>
<h3 class="ui header">Iterations (millions)</h3>
<div class="ui buttons">
<button class="ui button">0.1</button>
<button class="ui button">1</button>
<button class="ui button">10</button>
</div>
<div class="ui results horizontal segments hide" style="line-height: normal">
<div class="ui wasm segment center aligned">
<div class="heading">
<div>WebAssembly</div>
</div>
<div class="result"></div>
<div class="ui statistic horizontal">
<div class="value"></div>
<div class="label">ms</div>
</div>
<div>
<canvas id="canvasWasm" height=200 width=200></canvas>
</div>
</div>
<div class="ui js segment center aligned">
<div class="heading">JavaScript</div>
<div class="result"></div>
<div class="ui statistic horizontal">
<div class="value"></div>
<div class="label">ms</div>
</div>
<div>
<canvas id="canvasJs" height=200 width=200></canvas>
</div>
</div>
</div>
<script type='text/javascript' src='app.js'></script>
{{{ SCRIPT }}}
</body>
</html>