-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.htm
364 lines (290 loc) · 16.4 KB
/
index.htm
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html>
<head>
<!-- Automatically updated by your package.json file. -->
<title class="applicationTitle">UGUI: FLIF</title>
<link rel="icon" type="image/x-icon" href="_img/favicon.ico">
<link rel="stylesheet" href="_style/ven.bootstrap.css">
<!-- Change this next line from cerulean to whatever swatch you pick. -->
<link rel="stylesheet" href="_style/ven.bootswatch/yeti.min.css" data-swatch="swapper">
<link rel="stylesheet" href="_style/ugui-devtools.css">
<link rel="stylesheet" href="_style/style.css">
<!-- UGUI requires jQuery 1.9.1 or above. -->
<script type="text/javascript" src="_scripts/ven.jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="_scripts/ven.bootstrap-3.2.0.min.js"></script>
<script type="text/javascript" src="_scripts/ven.dropdowns-enhancement.js"></script>
<script type="text/javascript" src="_scripts/ven.bootstrap-slider.min.js"></script>
<script type="text/javascript" src="_scripts/ugui.js"></script>
<script type="text/javascript" src="_scripts/app.js"></script>
<cmd executable="flif"></cmd>
<cmd executable="flifSettings"></cmd>
</head>
<!-- Change the class form dev to prod when you're ready to distribute your application. -->
<body role="document" class="prod">
<!--
/////////////////////////////////////////////////////////////////
// //
// NAVIGATION //
// //
/////////////////////////////////////////////////////////////////
// Top bar navigation. Some parts are only visible when in dev //
// mode. Be sure to change the body class to prod before you //
// distribute your app. //
/////////////////////////////////////////////////////////////////
-->
<div class="navbar navbar-inverse navbar-fixed-top drag-enable" role="navigation">
<div class="container">
<div class="navbar-header">
<div class="navIcons">
<!-- // Not supported in 0.3.1
<a title="Settings" href="#settings" class="drag-disable glyphicon glyphicon-cog" aria-hidden="true"><span class="sr-only">Settings</span></a>
-->
<a title="About" href="#about" class="drag-disable glyphicon glyphicon-question-sign" aria-hidden="true"><span class="sr-only">About</span></a>
<a title="Exit" href="#exit" class="drag-disable glyphicon glyphicon-remove-sign" aria-hidden="true"><span class="sr-only">Exit</span></a>
</div>
<a class="navbar-brand">
<img src="_img/white.png" alt="FLIF Logo" />
<span class="applicationName" title="Universal GUI: Free Lossless Image Format">UGUI: FLIF</span>
</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav" style="float:right">
<!-- // Not supported in 0.3.1
<li><a title="Settings" href="#settings" class="drag-disable glyphicon glyphicon-cog" aria-hidden="true"><span class="sr-only">Settings</span></a></li>
-->
<li><a title="About" href="#about" class="drag-disable glyphicon glyphicon-question-sign" aria-hidden="true"><span class="sr-only">About</span></a></li>
<li><a title="Exit" href="#exit" class="drag-disable glyphicon glyphicon-remove-sign" aria-hidden="true"><span class="sr-only">Exit</span></a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!--
/////////////////////////////////////////////////////////////////
// //
// APPLICATION NAME AND DESCRIPTION //
// //
/////////////////////////////////////////////////////////////////
// This is automatically replaced by the content in your //
// package.json file. //
/////////////////////////////////////////////////////////////////
-->
<div id="appHolder" class="container" role="main">
<header>
<h3>
<small>Preview and Convert FLIF files.</small>
</h3>
</header>
<!--
/////////////////////////////////////////////////////////////////
// //
// CLI FORM ELEMENTS //
// //
/////////////////////////////////////////////////////////////////
// All form elements used to send commands to your executable //
// must be placed in the argsForm below. //
/////////////////////////////////////////////////////////////////
-->
<section>
<form id="flif" role="form-inline">
<div class="ezdz form-group jumbotron text-center well h3" title="Accepts .PNG, .PNM, .PPM, .PGM, .PBM, .PAM">
<span class="imageContainer"></span>
<label class="text-info h3 truncate" data-content="Dropped">Drag and Drop your file here.</label>
<input data-argName="fileToProcess" class="do-not-save" required="required" type="file" accept=".FLIF, .PNG, .PNM, .PPM, .PGM, .PBM, .PAM" />
</div>
<div class="row outputContainer"></div>
<div class="row"></div>
<div class="row"></div>
<!--
<div class="row">
<div class="col-xs-6 col-s-3 col-md-3 col-l-3 radio">
<label><input type="radio" name="radioDials" data-argName="catSoundsMeow" value="-meow" /> Meow</label><br />
<label><input type="radio" name="radioDials" data-argName="catSoundsPurr" value="-purr" /> Purr</label><br />
<label><input type="radio" name="radioDials" data-argName="catSoundsNyan" value="-nyan" /> Nyan</label>
</div>
<div class="col-xs-6 col-s-3 col-md-3 col-l-3 checkbox">
<label><input type="checkbox" data-argName="fruitPlum" value="-plum" />Plum</label><br />
<label><input type="checkbox" data-argName="fruitKiwi" value="-kiwi" />Kiwi</label><br />
<label><input type="checkbox" data-argName="fruitPear" value="-pear" />Pear</label>
</div>
<div class="col-xs-6 col-s-3 col-md-3 col-l-3">
<div class="btn-group">
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">Vegetables <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><input type="radio" name="dropdown" data-argName="vegPotato" id="potato" value="--potato" /><label for="potato">Potato</label></li>
<li><input type="radio" name="dropdown" data-argName="vegCarrot" id="carrot" value="--carrot" /><label for="carrot">Carrot</label></li>
<li><input type="radio" name="dropdown" data-argName="vegCelery" id="celery" value="--celery" /><label for="celery">Celery</label></li>
<li><input type="radio" name="dropdown" data-argName="vegGinger" id="ginger" value="--ginger" /><label for="ginger">Ginger</label></li>
</ul>
</div>
</div>
<div class="col-xs-6 col-s-3 col-md-3 col-l-3">
<select data-argName="dogSounds" class="form-control" required="required">
<option value="">Dog Sounds</option>
<option value="woof">Woof</option>
<option value="bark">Bark</option>
<option value="ruff">Ruff</option>
</select>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-s-6 col-md-6 col-l-6">
<label>Browse for Folder:</label>
<input type="file" nwdirectory="nwdirectory" data-argName="folderPicker" />
</div>
<div class="col-xs-6 col-s-6 col-md-6 col-l-6">
<label>Color Picker:</label>
<input type="color" data-argName="colorful" value="#000000" />
</div>
</div>
<div class="row">
<div class="col-xs-12 col-s-6 col-md-6 col-l-6">
<label for="speed">Quality:</label><br />
<table>
<tr>
<td class="text-center"><span>Minimum</span></td>
<td><input class="slider" type="text" id="quality" data-argName="quality" data-slider-id="qualitySlider" data-slider-min="0" data-slider-max="100" data-slider-step="25" data-slider-value="[0,100]" /></td>
<td class="text-center"><span>Maximum</span></td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-s-12 col-md-12 col-l-12">
<label for="message">Message:</label>
<textarea id="message" class="form-control" required="required" data-argName="userMessage"></textarea>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-s-12 col-md-12 col-l-12 text-right">
<button type="submit" class="sendCmdArgs btn btn-default">Encode!</button>
</div>
</div>
-->
</form>
</section>
<!--
/////////////////////////////////////////////////////////////////
// //
// SETTINGS MODAL //
// //
/////////////////////////////////////////////////////////////////
// This content is displayed when the user clicks the Gear in //
// the navigation bar. It is the settings the app abides by, //
// and they are auto saved when interacted with, and auto load //
// when the app is opened. //
/////////////////////////////////////////////////////////////////
-->
<div id="settingsModal" class="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span class="glyphicon glyphicon-remove pull-right" data-dismiss="modal" aria-hidden="true" title="Cancel, use previous settings."></span>
<h4>UGUI: FLIF Settings</h4>
</div>
<div class="modal-body">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Encode to FLIF</h3>
</div>
<div class="panel-body">
<form id="flifSettings" role="form-inline">
<div class="row">
<div class="col-xs-12 col-s-12 col-md-12 col-l-12">
<label for="repeats"><strong>Tree Learning</strong><br />More iterations increases CPU cycles, but results in better trees and thus smaller files. Default Setting is 3.</label>
</div>
</div>
<div class="row">
<div class="col-xs-9 col-s-9 col-md-9 col-l-9 vcenter">
<input id="repeats" type="number" data-argName="repeats" data-slider-id="repeatsSlider" data-slider-min="0" min="0" max="1000" data-slider-max="1000" data-slider-step="1" data-slider-value="3" class="form-control" />
</div>
<div class="col-xs-3 col-s-3 col-md-3 col-l-3 text-center">
<button id="sliderSwitcher" class="btn btn-info btn-sm auto">Manual</button>
</div>
</div>
</form>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Decode from FLIF</h3>
</div>
<div class="panel-body">
<form id="flifSettings" role="form-inline">
<div class="row">
<div class="col-xs-12 col-s-12 col-md-12 col-l-12">
<!-- -->
</div>
</div>
</form>
</div>
</div>
<div class="text-right">
<button id="settingsDefaults" class="btn btn-primary" title="Load the default settings.">Defaults</button>
<button id="settingsCancel" class="btn btn-danger" title="Use previous settings.">Cancel</button>
<button id="settingsSave" class="btn btn-success" title="Keep these settings.">Save</button>
</div>
</div>
</div>
</div>
</div>
<!--
/////////////////////////////////////////////////////////////////
// //
// ABOUT MODAL //
// //
/////////////////////////////////////////////////////////////////
// This content is displayed when the user clicks Help in the //
// top navigation, then About. Some parts of the about modal //
// are automatically replaced by the content defined in your //
// package.json file, such as Application Name and Version. //
/////////////////////////////////////////////////////////////////
-->
<div id="aboutModal" class="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span class="glyphicon glyphicon-remove pull-right" data-dismiss="modal" aria-hidden="true"></span>
<h4>About</h4>
</div>
<div class="modal-body">
<div class="panel panel-primary">
<div class="panel-heading">
<span class="pull-right versionApp" title="Version">V0.3.0</span>
<h3 class="panel-title">About <span class="applicationTitle">UGUI: FLIF</span></h3>
</div>
<div class="panel-body">
<p class="well well-sm">
This is a GUI that allows you to preview, encode, and decode .flif files.
</p>
<p>
<a href="http://github.com/TheJaredWilcurt/UGUI_FLIF" class="external-link applicationTitle">UGUI: FLIF</a> uses version 0.1 (Oct. 15, 2015 Build) of the CLI version of FLIF found here: <a href="http://flif.info" class="external-link">FLIF.info</a>. FLIF is ©2010-2015 J. Sneyers & P. Wuille, GNU GPL v3.
</p>
<p class="updateResults"></p>
<p class="text-center">
<button id="updateChecker" class="btn btn-primary">Check for updates</button>
</p>
Contributors to the UGUI: FLIF<br />
<!-- If the following script isn't ran on the page, it doesn't hit soon enough to check if the images loaded. -->
<!-- If the images load, keep text hidden, if the app is ran while a user is offline, show text instead of images. -->
<script>
function disconnected() {
$(".gitHubContributors").addClass("notOnline");
}
</script>
<span class="gitHubContributors">
<a class="external-link" href="http://github.com/TheJaredWilcurt">
<img onerror="disconnected()" src="https://avatars.githubusercontent.com/u/4629794?v=3&s=64" alt="TheJaredWilcurt" title="TheJaredWilcurt" />
TheJaredWilcurt</a>,
<a class="external-link" href="http://github.com/boymanjor">
<img onerror="disconnected()" src="https://avatars.githubusercontent.com/u/1259462?v=3&s=64" alt="boymanjor" title="boymanjor" />
Boyma Fahnbulleh</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end container -->
</body>
</html>