summaryrefslogtreecommitdiff
path: root/dist/index.html
blob: ab4be6fa17864209d7df6310820116d1efc4a2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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>