forked from r0mflip/meilix-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
495 lines (471 loc) · 18.5 KB
/
index.html
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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<!-- meta tags for better SEO -->
<meta name="keywords" content="FOSSASIA, meilix-generator, Meilix-Generator, meilix, Meilix, ISO,
custom meilix, linux, personalised linux distribution, webapp, iso" />
<meta name="description" content="Meilix-Generator is a webapp which generates an iso with
a custom meilix. The main aim of the project is to help a user to make its personalised
linux distribution." />
<meta name="author" content="FOSSASIA" />
<!-- OGP -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Meilix ISO Generator" />
<meta property="og:description" content="Meilix-Generator is a webapp which generates an iso with
a custom meilix. The main aim of the project is to help a user to make its personalised
linux distribution." />
<meta property="og:url" content="http://meilix.org/" />
<meta property="og:site_name" content="Meilix ISO Generator" />
<!-- OGP ends here -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static',filename='css/menu.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/font-awesome.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/bootstrap2.min.css') }}">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
<script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/email_noti.js') }}"></script>
<script src="{{ url_for('static', filename='js/functions.js') }}"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
<title>Meilix ISO Generator</title>
</head>
<body>
<!--Loader-->
<div class="welcome">
<div class="csd">
<div class="a" style="--n: 5;">
<div class="dot" style="--i: 0;"></div>
<div class="dot" style="--i: 1;"></div>
<div class="dot" style="--i: 2;"></div>
<div class="dot" style="--i: 3;"></div>
<div class="dot" style="--i: 4;"></div>
</div>
</div>
</div>
<!--End Loader-->
<!--file upload form-->
<form method="POST" enctype="multipart/form-data">
<div class="custom-navbar">
<a style="text-decoration: none;" href='.' class="custom-navtitle">
<strong>Meilix Generator</strong>
</a>
<div class="custom-menubutton">
<i class="glyphicon glyphicon-th" style="font-size:20px;"></i>
</div>
</div>
<div class="custom-menu-cont hidden">
<div class="custom-menu">
<div class="arrow-up"></div>
<div>
<div class="custom-menu-item">
<a href="http://github.com/fossasia/meilix-generator" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='code.png') }}"></div>
<p class="custom-title">Code</p></a>
</div>
<div class="custom-menu-item">
<a href="http://github.com/fossasia/meilix-generator/issues" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='bug.png') }}"></div>
<p class="custom-title">Bug Report</p></a>
</div>
<div class="custom-menu-item">
<a href="http://blog.fossasia.org" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='blog.png') }}"></div>
<p class="custom-title">Blogs</p></a>
</div>
<hr style="margin-bottom: 10px; margin-top: 10px;">
<div class="custom-menu-item">
<a href="https://eventyay.com/" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='eventyay.png') }}"></div>
<p class="custom-title">Eventyay</p></a>
</div>
<div class="custom-menu-item">
<a href="https://susper.com/" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='susper.png') }}" style="width: 60px;height: 16px;"></div>
<p class="custom-title">Susper</p></a>
</div>
<div class="custom-menu-item">
<a href="https://chat.susi.ai/" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='susi.png') }}"></div>
<p class="custom-title">Susi</p></a>
</div>
<div class="custom-menu-item">
<a href="https://fossasia.org/" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='fossasia.png') }}"></div>
<p class="custom-title">FOSSASIA</p></a>
</div>
<div class="custom-menu-item">
<a href="https://loklak.org/" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='loklak.png') }}"></div>
<p class="custom-title">loklak</p></a>
</div>
<div class="custom-menu-item">
<a href="https://phimp.me/" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='phimp.png') }}"></div>
<p class="custom-title">Phimp.me</p></a>
</div>
<div class="custom-menu-item">
<a href="https://pslab.fossasia.org" target="_blank">
<div class="custom-icon"><img src="{{ url_for('static', filename='Pslab.png') }}"></div>
<p class="custom-title">PS Lab</p></a>
</div>
<hr style="margin: 10px">
<div style="display: flex;justify-content: center;align-items: center; margin: 0 0 -20px 0">
More on <a href="https://labs.fossasia.org/" target="_blank" style="text-decoration: none;color: #737373"> labs.fossasia.org</a>
</div>
</div>
</div>
</div>
<br>
<div class="container">
<div class="row mt-3">
<div class="col-md-4 mx-auto">
<div class="form-group">
<label class="heading" id="label" for="email">Email</label>
<div class="input-group margin-bottom-sm">
<span class="input-group-addon"><i class="fa fa-envelope-o fa-fw"></i></span>
<input autofocus="" class="form-control" placeholder="Enter email" name="email" title="Email for sending the ISO" required="" type="email" pattern="^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$" required /></div>
<p id="scroll-to">Email is used to mail user the link to the build ISO</p>
<br>
</div>
<div class="form-group">
<label class="heading" for="TRAVIS_TAG">Name of your Distribution</label>
<div class="input-group margin-bottom-sm">
<span class="input-group-addon"><i class="fa fa-address-book fa-fw"></i></span>
<input pattern="[A-Za-z0-9\s]{1,20}" class="form-control" placeholder="Enter name" name="TRAVIS_TAG" required="" type="text" data-toggle="tooltip" title="Only alphanumeric characters allowed"></div>
<p id="scroll-to">This will be name of the distribution</p>
</div>
<br>
<div class="form-group">
<label class="heading" for="event_url">Browser Home Page </label>
<div class="input-group margin-bottom-sm">
<span class="input-group-addon"><i class="fa fa-window-maximize fa-fw"></i></span>
<input pattern="https?://.+" class="form-control" placeholder="Enter link" name="event_url" title="only url is allowed"
required="" type="url"></div>
<p id="scroll-to">This will be the home page of the browser</p>
</div>
<br>
<div class="form-group">
<label class="heading" for="search_engine">Default Search Engine</label>
<div class="input-group margin-bottom-sm">
<span class="input-group-addon"><i class="fa fa-search fa-fw"></i></span>
<input pattern="https?://.+" class="form-control" placeholder="Enter link" name="search_engine" title="only url is allowed"
required="" type="url"></div>
<p id="scroll-to">This will be the default search engine of the browser</p>
</div>
<br>
<div class="form-group">
<label class="heading" for="bookmark">Choose Either ON or OFF:<span><p id="scroll-to">This will install the packages which you have check</p></span></label>
<table class="table table-responsive" style="width: 100%">
<tbody>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Toggle for 64 bit (Default 32 bit)</label>
</div>
</td>
</tr>
</form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Notification</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Screensaver</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Sleep Modus</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>System Sounds</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Bookmarks</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Screen Diming</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='express'>Power Management Saving Feature</label>
</div>
</td>
</tr></form>
<form>
<tr>
<td>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</td>
<td id="long">
<div class="radiotext">
<label for='regular'>Taskbar Autohide</label>
</div>
</td>
</tr>
</form>
</tbody>
</table>
</div>
<br>
<div class="form-group" >
<label class="heading" for="packages">Check the packages which you want to install: <span><p id="scroll1">This will install the packages which you have check</p></span></label>
<table id="package" class="table responsive-table-input-matrix" style="width:100%">
<tbody>
<tr>
<td>Chromium</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="chromium" value="chromium" name="GENERATOR_package_chromium">
<label for="chromium" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>Firefox</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="firefox" value="firefox" name="GENERATOR_package_firefox">
<label for="firefox" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>Hangout</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="hangout" value="hangout" name="GENERATOR_package_hangout">
<label for="hangout" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>VLC</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="vlc" value="vlc" name="GENERATOR_package_vlc">
<label for="vlc" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>GIMP</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="gimp" value="gimp" name="GENERATOR_package_gimp">
<label for="gimp" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>Inkscape</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="inkspace" value="inkspace" name="GENERATOR_package_inkspace">
<label for="inkspace" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>LibreOffice</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="office" value="office" name="GENERATOR_package_office">
<label for="office" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>Git</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="git" value="git" name="GENERATOR_package_git">
<label for="git" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>Dropbox</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="dropbox" value="dropbox" name="GENERATOR_package_dropbox">
<label for="dropbox" class="check-title"></label>
</label>
</td>
</tr>
<tr>
<td>NextCloud</td>
<td>
<label class="label-big-check">
<input type="checkbox" id="nextcloud" value="nextcloud" name="GENERATOR_package_nextcloud">
<label for="nextcloud" class="check-title"></label>
</label>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div class="col-md-06">
<div class="form-group">
<label class="heading" style="text-align:center;">Upload Wallpaper</label>
<label id="browse" class="btn btn-primary btn-block mx-auto" style="height:35px; width:360px;">
<span style="white-space:pre-wrap;" data-toggle="tooltip" title=" REC size (1920X1080) or (1280X720)">Browse</span>
<input name="file" class="file form-control" title="Default Wallpaper Image"
style="display: none;" onchange="$(this).prev('span').text($(this).val()!=''?$(this).val():'Browse')"
required="" type="file" />
</label>
<span><p id="scroll2">This will be the default background image of the desktop</p></span>
<img id="file-upload">
</div>
</div>
<br>
<div class="form-group">
<input class="btn btn-info mx-auto " id="file-upload" value="Build" required="" type="submit" style="height: 45px; width: 360px;"/>
</div>
</div>
</div>
</div>
</form>
<br>
<div id="deployment">
<span class="text-muted"> Grab the latest pre-built ISO
<a href="https://github.com/fossasia/meilix/zipball/master">here</a> or head to the
<a href="https://github.com/fossasia/meilix/releases">Releases</a> page for more options.</span>
</div>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
function debounce(func, wait = 0, immediate = true) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
};
}
const messages = document.querySelectorAll('#scroll-to');
console.log(messages);
function display(e){
messages.forEach(message => {
let hT = message.offsetTop;
let hH = $(message).outerHeight();
let wH = window.innerHeight;
let wS = window.scrollY;
let isNotScrolledPast = wS < (hH + hT);
if (wS > (hT+hH-wH) && isNotScrolledPast){
message.classList.add('active');
} else {
message.classList.remove('active');
}
});
}
window.addEventListener('scroll', debounce(display));
var browse = document.getElementById('browse');
browse.addEventListener('mouseenter', function(){
$('#scroll2').addClass('active');
});
browse.addEventListener('mouseout', function(){
$('#scroll2').removeClass('active');
});
var table = document.getElementById('package');
table.addEventListener('mouseenter', () => $('#scroll1').addClass('active'));
table.addEventListener('mouseout', () => $('#scroll1').removeClass('active'));
});
</script>
</body>
</html>