-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtest.html
45 lines (44 loc) · 1.29 KB
/
test.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
<!doctype html>
<html>
<head>
<script type="text/javascript" src="dist/descartes.js"></script>
</head>
<body>
<h1>I compute, therefore I am.</h1>
<div class="row">
<div class="col6">
One
</div>
<div class="col3">
Two
</div>
<div class="col3">
Three
</div>
</div>
<script type="text/javascript" src="jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="dist/plato.js"></script>
<script type="text/javascript">
var p = new Plato();
Descartes.add(p.base())
/*
var newTree = {
"html": {
"alias": "foobar",
"font-size": 15,
"color": "blue",
"background": () => { return "rgba(0,0,0," + Math.random() + ")" },
"h1": {
"font-family": "Arial",
"font-size": 300
}
}
}
Descartes.add(newTree)
$(window).click(function() {
Descartes.alias.foobar.background()
})
*/
</script>
</body>
</html>