summaryrefslogtreecommitdiff
path: root/shader-picker.html
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-01-01 23:53:29 -0500
committerjules <jules@okfoc.us>2014-01-01 23:53:29 -0500
commitb0abdb7bb0980474048110d683a81fb037854103 (patch)
treef79804b9931518724689aac3acec59a635d7a330 /shader-picker.html
parent468ed78c18fea799091dd9c0e638beff24c6b7aa (diff)
save shaders locally
Diffstat (limited to 'shader-picker.html')
-rw-r--r--shader-picker.html8
1 files changed, 7 insertions, 1 deletions
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; }
</style>
</head>
<body>
@@ -77,6 +78,8 @@ form { display: inline-block; }
<button id="help">help</button>
<button id="demo">demo</button>
<button id="dither-demo">dither</button>
+ <div id="shaders"></div>
+ <button id="add-shader">+</button>
<br>
</div>
@@ -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