summaryrefslogtreecommitdiff
path: root/js/demo.js
diff options
context:
space:
mode:
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()
+ }
+})