summaryrefslogtreecommitdiff
path: root/js/demo.js
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-01-05 22:53:10 -0500
committerjules <jules@okfoc.us>2014-01-05 22:53:10 -0500
commit5d3314a10a7a783e19ffc4fcb711edc02f10375b (patch)
tree403005d4245328c31d6d8e26435e1620ea3cba9e /js/demo.js
parentba837a229a566ca58569ce2b82cd6a986ef75964 (diff)
new defaults
Diffstat (limited to 'js/demo.js')
-rw-r--r--js/demo.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/demo.js b/js/demo.js
new file mode 100644
index 0000000..919a169
--- /dev/null
+++ b/js/demo.js
@@ -0,0 +1,11 @@
+// <button id="demo">demo</button>
+var demo = function(){
+ $("#demo").click(function(){ run("#first") })
+ run('#first')
+ function run(el){
+ $el = $(el)
+ s = $el.html()
+ $("#shader").html(s)
+ shader_build()
+ }
+})