summaryrefslogtreecommitdiff
path: root/dist/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'dist/index.html')
-rw-r--r--dist/index.html140
1 files changed, 140 insertions, 0 deletions
diff --git a/dist/index.html b/dist/index.html
new file mode 100644
index 0000000..ab4be6f
--- /dev/null
+++ b/dist/index.html
@@ -0,0 +1,140 @@
+<!doctype html>
+<html>
+<head>
+<style type="text/css">
+body { background: #f8f8f8; font-size: 14px }
+div { float: left; padding: 10px;}
+form { display: inline-block; }
+a { color: #00f; }
+#url { width: 250px; }
+#width,#height,#framecount,#framedelay,#frameinterval,#background { width: 30px; text-align: right; }
+#background { text-align: left; }
+#username { width: 55px; }
+#shader-name { width: 75px; }
+#shader-id { width: 40px; }
+#shader { width: 400px; height: 247px; font-family: fixed; }
+#uploaded-url { display: none; width: 400px; }
+#uploaded-url + br { display: none; }
+#header { clear: right; width:100%; padding: 0; font-size: 12px; }
+#shader-gallery,#gallery-images { display: block; height: 152px; overflow-y: auto; width: 100%; padding: 0; }
+#shader-gallery img,#shader-gallery canvas,#gallery-images img, #gallery-images canvas { max-width: 200px; height: 100px; margin: 5px; cursor: pointer; clear: right; }
+.shader { width: 100px; }
+.shader span { display: block }
+#help { float: right; }
+.dragging { cursor: -webkit-grabbing !important; }
+.ui-sortable-helper { cursor: -webkit-grabbing !important; }
+#instructions { position: absolute;top:20px;right:20px; width:190px;height:465px; box-shadow:5px 5px 10px rgba(0,0,0,0.3); background:rgba(255,255,255,0.8); display: none; cursor: -webkit-grab; }
+#instructions iframe {width: 100%;height:100%;margin:0;padding:0;border:0;}
+#instructions.dragging iframe { pointer-events: none; }
+#instructions .close { position: absolute; top: 5px; right: 5px; color: #f00; padding: 3px; border: 0;background: white; font-size: 10px; line-height: 10px; }
+#frame-controls { display: none; }
+#frames { display: block; width: 404px; max-height: 150px; overflow: auto; border: 1px solid #ddd; line-height: 0; }
+#frames div { margin: 1px; padding: 0; position: relative; border: 1px solid #eee; cursor: -webkit-grab; }
+#frames canvas { display: block }
+#frames .remove { position: absolute; top: 5px; right: 5px; color: #f00; padding: 3px; border: 0;background: white; font-size: 10px; line-height: 10px; }
+.paused { background: black; color: white; border-width: 1px; padding: 1px 3px 2px 4px; outline: 0 !important; }
+.active { background: black; color: white; border-width: 1px; padding: 1px 4px 2px 4px; outline: 0 !important; }
+.hidden { display: none; }
+.form { display: none; border-left: 1px solid #ddd; padding-left: 5px; margin-left: 2px; }
+.bold { font-weight: bold; }
+.close,.remove { cursor: pointer; }
+.status { font-size: 12px; }
+#render,#save,#upload,#save-shader { font-weight: bold; }
+#save[disabled],#upload[disabled] { font-weight: normal; }
+</style>
+</head>
+<body>
+<div id="header">
+ <button id="help">help</button>
+ <button class="toggle-off">x</button>
+ <button id="new-shader"><b>new shader</b></button>
+<!--
+ <select id="examples">
+ <option>examples</option>
+ </select>
+-->
+<!--
+ <input type="text" id="shader-id" disabled><button id="fetch-info" disabled>info</button>
+ <button id="fetch-history" disabled>history</button>
+ |
+ <button id="fetch-originals" disabled>originals</button>
+ <button id="fetch-all">all</button>
+-->
+ <button id="toggle-shaders">browse shaders</button>
+ <button id="toggle-images">browse images</button>
+ <span class="status"></span>
+ <span id="shader-api-form" class="form">
+ <input type="checkbox" id="persist-image" checked>
+ <label for="persist-image">load image</label>
+ <button id="fetch-latest">latest</button>
+ <button id="fetch-next-page" class="hidden">&rarr;</button>
+ <select id="pick-user">
+ <option>fetching users..</option>
+ </select>
+ <div id="shader-gallery"></div>
+ </span>
+ <span id="gallery-form" class="form">
+ <button id="gallery-random">asdf random</button>
+ <form id="gallery-search">
+ <input type="text" id="dumpfm-search-query" value="duck bill">
+ <button id="gallery-search">search dump</button>
+ </form>
+ <div id="gallery-images"></div>
+ </span>
+</div>
+<div id="controls">
+ <input type="text" id="url">
+ <input type="text" id="username" placeholder="username">
+ <input type="text" id="shader-name" placeholder="shader name">
+ <br>
+ <br>
+ <textarea id="shader"></textarea>
+ <br>
+ <input type="text" id="uploaded-url">
+ <br>
+ <button id="render">render gif</button>
+ <button id="save" disabled>save gif</button>
+ <button id="upload" disabled>upload gif</button>
+ <button id="reset">reset</button>
+ <button id="pause">pause</button>
+ <br>
+ <button id="save-shader">save shader</button>
+ <input type="text" id="width" placeholder="width" value="0">
+ <input type="text" id="height" placeholder="height" value="0">
+ <span class="status"></span>
+ <!--<button id="step-forward">&gt;&gt;</button>-->
+ <br>
+ <br>
+ <span id="frame-hidden-controls">
+ <button id="show-frame-controls">show frame editor</button>
+ </span>
+ <span id="frame-controls">
+ <button id="hide-frame-controls">x</button>
+ frames <input type="text" id="framecount" value="10">
+ rate <input type="text" id="framedelay" value="0.06s">
+ bg <input type="text" id="background" value="#fff">
+ <button id="add-frame">+add</button>
+ <select id="reorder-frames">
+ <option value="">reorder</option>
+ <option value="weave-frames">weave</button>
+ <option value="shuffle-frames">shuffle</button>
+ <option value="reverse-frames">reverse</button>
+ <option value="sort-frames">sort</button>
+ </select>
+ <!--<button id="remove-all-frames">clear</button>-->
+ <br>
+ <span id="frames"></span>
+ </span>
+</div>
+<div id="workspace"></div>
+<div id="instructions"><iframe src="instructions.html"></iframe><button class="close">&times;</button></div>
+<script type="text/javascript" src="app.min.js"></script></body>
+<script type="text/html" id="shader-gallery-template">
+<span><img src="{thumbnail_url}"></span>
+{name} - {username}
+</script>
+<script type="text/html" id="frame-template">
+<button class="remove">x</button>
+<span class="frame"></span>
+</script>
+</html>