diff options
Diffstat (limited to 'shader-picker.html')
| -rw-r--r-- | shader-picker.html | 8 |
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 |
