-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 1.28 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 class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Make You A Language</title>
<style>
body {
margin: 0;
/* overflow-y: hidden; */
}
textarea {
transition: background-color 0.35s ease;
}
textarea:focus {
outline: none;
background-color: lightgrey;
}
</style>
<!-- <link rel="stylesheet" href="style.css"> -->
<!-- <meta name="description" content=""> -->
<!-- <link rel="icon" href="/icon.svg" type="image/svg+xml"> -->
<!-- <link rel="manifest" href="site.webmanifest"> -->
<!-- <meta name="theme-color" content="#fafafa"> -->
</head>
<body>
<div id="elm"></div>
<script src="build/main.js"></script>
<script>
// let item;
// try {
// item = JSON.parse(localStorage.getItem('lang-graph'));
// } catch {
// item = null;
// }
const flags =
{ width : document.getElementsByTagName('html')[0].clientWidth
, height : document.getElementsByTagName('html')[0].clientHeight
};
const app = Elm.Main.init({ flags: flags, node: document.getElementById('elm') });
// app.ports.save.subscribe(v => localStorage.setItem('lang-graph', JSON.stringify(v)));
</script>
</body>
</html>