-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (33 loc) · 720 Bytes
/
index.html
File metadata and controls
42 lines (33 loc) · 720 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>g9 test page</title>
<style type="text/css">
html, body, svg {
position: absolute;
width: 100%;
height: 100%;
margin: 0;
}
line, circle {
cursor: move;
}
</style>
</head>
<body>
<div class='demo'></div>
<script type="text/javascript" src='./build/g9.js'></script>
<!-- <script type="text/javascript" src='./demos/dragon.js'></script> -->
<script type="text/javascript">
var sc = location.search.slice(1) || 'dragon'
var e = eval
fetch('http://localhost:1337/demos/' + sc + '.js')
.then(s => s.text())
.then(x => {
e(x)
demo.align('center', 'center')
.insertInto('.demo')
})
</script>
</body>
</html>