From f07ae9bf8f1e4484bafeb711a1eb04a081a0e6e1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 23 Jan 2014 09:42:47 -0500 Subject: new shader button --- shader-api.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shader-api.html') diff --git a/shader-api.html b/shader-api.html index 5225060..89ce820 100644 --- a/shader-api.html +++ b/shader-api.html @@ -35,6 +35,7 @@ a { color: #00f; } -->
+ | @@ -105,6 +106,8 @@ function init(){ $("#pause").click(pause) // run('#first') + $("#new-shader").click(new_shader) + // $("#shader-id") // $("#fetch-info") $("#fetch-all").click(function(){ @@ -142,6 +145,15 @@ function init(){ requestAnimationFrame(animate) } +function new_shader(){ + run({ + id: "", + shader_id: "", + image_url: $("#url").val(), + script: "", + name: "" + }) +} function load_shaders(err, shaders){ var $el = $("#shader-gallery").empty() -- cgit v1.2.3-70-g09d2