diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-01-23 09:42:47 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-01-23 09:42:47 -0500 |
| commit | f07ae9bf8f1e4484bafeb711a1eb04a081a0e6e1 (patch) | |
| tree | f2cf8e88b380f84cc791178377963ee0c1d6099b | |
| parent | b2e2e1871d871a75d314a1159b556a8878a5dae1 (diff) | |
new shader button
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | shader-api.html | 12 |
2 files changed, 13 insertions, 0 deletions
@@ -5,3 +5,4 @@ v1 .sass-cache/ .#* *.swp +node_modules/ 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; } --> <div id="shader-api"> + <button id="new-shader"><b>new shader<b></button> <input type="text" id="shader-id" disabled><button id="fetch-info" disabled>info</button> <button id="fetch-history" disabled>history</button> | @@ -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() |
