Permalink
Find file
05687e8 Aug 10, 2016
45 lines (44 sloc) 1.29 KB
<!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>