From b0abdb7bb0980474048110d683a81fb037854103 Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 1 Jan 2014 23:53:29 -0500 Subject: save shaders locally --- shader-picker.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'shader-picker.html') diff --git a/shader-picker.html b/shader-picker.html index 4024583..5561b6a 100644 --- a/shader-picker.html +++ b/shader-picker.html @@ -32,6 +32,7 @@ form { display: inline-block; } #gallery-images { display: block; max-height: 210px; overflow-y: auto; } #gallery-images img, #gallery-images canvas { max-width: 200px; height: 100px; margin: 5px; cursor: pointer; } #username { width: 40px; } +#shaders { display: inline-block; } @@ -77,6 +78,8 @@ form { display: inline-block; } +
+
@@ -169,7 +172,9 @@ function init(){ console.log("gallery init") user.init() - console.log("signed in as ", user.username) + if (user.username.length) { + console.log("signed in as ", user.username) + } document.getElementById('shader').addEventListener('input', shader_build); shader_build() @@ -189,6 +194,7 @@ function demo(el){ $el = $(el) s = $el.html() $("#shader").html(s) + shader_build() } function load(){ loading = true -- cgit v1.2.3-70-g09d2