-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
61 lines (45 loc) · 1.38 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
<html>
<head>
<script type="module" src="demo.js"> </script>
<link rel="stylesheet" type="text/css" href="docs/styles/jsdoc-default.css">
</head>
<body>
<h1>This is the flashy demo.</h1>
The interactive demo for technical users of the framework, is <a href="./demo.html">over here</a>.
<script>
window.addEventListener('load', function () {
CS = new Graph ( 'store' )
Monitor.monitor ( CS )
CS.a = 1
CS.b = 2
CS.c = new Script ( g => g.a + g.b )
CS.c
CS.d = { m:1, n:2, o:3 }
CS.d.n = [ 77, 88, 99 ]
CS.d
CS.d ()
CS ()
CS ( 'graph' )
setTimeout( ()=> {
CS.iHaveSources = new Script ( s => s.a * 2 )
CS.iHaveSources
}, 1000 )
setTimeout( ()=> {
CS.a = 99
}, 2000 )
setTimeout( ()=> {
CS.sideEffectedVertex = undefined
CS.reactiveVertex = new Script (
s => { s.sideEffectedVertex = s.a + 2 },
{ reactive : true,
getHandler : false
}
)
}, 3000 )
setTimeout( ()=> {
CS.a = 99
}, 4000 )
})
</script>
</body>
</html>