-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
154 lines (139 loc) · 5.69 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
<html>
<head>
<meta charset="utf-8"/>
<title>Digart</title>
<style>
body {
background-color: #000000;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.0/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="assets/wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
</script>
</head>
<body>
<div class="modal" id="notification-modal">
<div class="modal-background"></div>
<div class="modal-card">
<div class="notification is-danger is-light">
<button id="notification-delete" class="delete"></button>
<span id="notification-message">
</span>
</div>
</div>
</div>
<!-- Title -->
<section class="hero">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title" style="color: #ffffff;">
circle visualization of a number's digits
</h1>
<h1 class="subtitle" style="color: #d2d2d2;">
using Go and WebAssembly
</h1>
</div>
</div>
</section>
<div class="container is-centered">
<!-- Form -->
<div class="columns is-centered">
<div class="column is-6">
<div class="field">
<p class="control is-expanded">
<textarea
id="number"
class="textarea"
type="text"
placeholder="Number, at least 1500 digits"
></textarea>
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<p>or</p>
</div>
<br>
<div class="columns is-centered">
<div class="column is-6">
<div class="field is-grouped">
<p class="control is-expanded">
<input
id="digits"
class="input"
type="text"
placeholder="Number of digits wanted"
>
</p>
<div class="file is-fullwidth">
<label class="file-label">
<input class="file-input" type="file" name="resume">
<span class="file-cta">
<span class="file-icon">
<i class="fas fa-upload"></i>
</span>
<span class="file-label">
Choose a file…
</span>
</span>
</label>
</div>
</div>
</div>
</div>
<div class="columns is-centered">
<div class="column has-text-centered is-2">
<div class="field is-grouped">
<p class="control">
<a id="read" class="button is-rounded">
Read
</a>
</p>
<p class="control">
<a id="submit" class="button is-rounded is-info">
Generate
</a>
</p>
</div>
</div>
</div>
</div>
<br>
<div class="container has-text-centered">
<p>The image might take a little time to build up.</p>
<img id="image">
</div>
<footer class="section">
<!-- Contact and licence -->
<div class="content has-text-centered">
<p style="color: #ffffff;">
Using <a href="https://webassembly.org/">WebAssembly</a> and <a href="https://golang.org/">Go</a>.
</p>
</div>
<!-- Technologies logos -->
<div class="columns is-centered">
<figure class="column image is-1">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/WebAssembly_Logo.svg/1200px-WebAssembly_Logo.svg.png">
</figure>
<figure class="column image is-1">
<img src="http://blog.engineering.publicissapient.fr/wp-content/uploads/2016/10/gopher.png">
</figure>
</div>
<!-- Contact and licence -->
<div class="content has-text-centered">
<p style="color: #ffffff;">
<a href="https://github.com/hugolgst/digart">Digart</a> by <a href="mailto:hugo@olivia-ai.org">Hugo Lageneste</a>. The source code is licensed
<a href="http://opensource.org/licenses/mit-license.php">MIT</a>.
</p>
</div>
</footer>
<script src="assets/app.js"></script>
</body>
</html>