Permalink
Browse files

Modified tests and slides for accuracy

  • Loading branch information...
JonHMChan committed Aug 10, 2016
1 parent 8ed025a commit 05687e823629a3d2350bb82525e5e0296e95db4a
Showing with 15 additions and 6 deletions.
  1. BIN img/nVK7aD4D.jpg
  2. +2 −2 slides/index.html
  3. +13 −4 test.html
View
Binary file not shown.
View
@@ -599,7 +599,7 @@ <h2>Function Values</h2>
".wrapper": { // Responsive wrapper
"margin": "0 auto",
"width": function() {
(window.innerWidth > 800) ? 800 : "100%"
return (window.innerWidth > 800) ? 800 : "100%"
}
}
}
@@ -624,7 +624,7 @@ <h2>Aliases</h2>
"alias": "wrapper", // Descartes.alias.wrapper is created
"margin": "0 auto",
"width": function() { // Descartes.alias.wrapper.width()
(window.innerWidth > 800) ? 800 : "100%"
return (window.innerWidth > 800) ? 800 : "100%"
}
}
}
View
@@ -6,31 +6,40 @@
<body>
<h1>I compute, therefore I am.</h1>
<div class="row">
<div class="col4">
<div class="col6">
One
</div>
<div class="col4">
<div class="col3">
Two
</div>
<div class="col4">
<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,
"background": () => { return "rgba(0,0,0," + Math.random() + ")" }
"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>

0 comments on commit 05687e8

Please sign in to comment.