-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
760 lines (692 loc) · 49.1 KB
/
index.html
File metadata and controls
760 lines (692 loc) · 49.1 KB
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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- http://getbootstrap.com/docs/5/ -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- https://icons.getbootstrap.com -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<title>Edit</title>
<!-- Custom CSS File -->
<link rel="stylesheet" href="static\styles.css">
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar navbar-expand-md navbar-light bg-light border-bottom">
<!-- NavBar Brand-->
<a class="navbar-brand mx-2" href="#editor">
<span class="blue ">Photo</span>
<span class="green fw-bold">Editor</span>
</a>
<!-- NavBar mobile toggler-->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- NavBar Items-->
<div class="collapse navbar-collapse mx-2" id="navbarSupportedContent">
<div class="container-fluid">
<div class="d-flex justify-content-end">
<ul class="navbar-nav">
<li class="nav-item">
<a class="btn btn-outline-primary mx-1" href="#editor">Editor</a>
</li>
<li class="nav-item">
<a class="btn btn-outline-primary mx-1" href="#doc">How To Use</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
<main>
<!-- Photo Editor -->
<section>
<div class="display-5 text-muted ms-5 mb-3" id="editor">Editor</div>
<div class="container py-3 px-5 border border-3 rounded text-center shadow bg-light">
<!-- Nav pills -->
<ul class="nav nav-pills mb-3 justify-content-center d-inline-flex rounded border border-2" id="pills-tab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#pills-tools" type="button">Tools</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-profile-tab" data-bs-toggle="pill" data-bs-target="#pills-filters" type="button">Filters</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-contact-tab" data-bs-toggle="pill" data-bs-target="#pills-effects" type="button" onclick="carouselBtnDist()">Effects</button>
</li>
</ul>
<div class="tab-content" id="pills-tabContent" style="pointer-events: none; opacity: 0.4;">
<!-- Tools -->
<div class="tab-pane fade show active" id="pills-tools">
<div class="justify-content-center align-items-center d-inline rounded">
<form class="row g-3 justify-content-center align-items-center" action="javascript:void(0);">
<!-- Select a tool-->
<div class="col-auto">
<div class="input-group">
<span class="input-group-text">Tool:</span>
<select id="tools" class="form-select bg-light">
<option selected value="crop">Crop</option>
<option value="rotate">Rotate</option>
<option value="flip">Flip</option>
<option value="text">Text</option>
<option value="watermark">Watermark</option>
</select>
</div>
</div>
<!-- Crop -->
<div id="crop_tool" class="tool crop col-lg-5">
<div class="input-group">
<span class="input-group-text">Rectangle:</span>
<input class="form-control" type="number" min="0" id="crop_left" placeholder="Left">
<input class="form-control" type="number" min="0" id="crop_top" placeholder="Top">
<input class="form-control" type="number" min="0" id="crop_right" placeholder="Right">
<input class="form-control" type="number" min="0" id="crop_bottom" placeholder="Bottom">
</div>
</div>
<!-- Rotate -->
<div id="rotate_tool" class="col-lg-2 rotate tool">
<input class="form-control" type="number" min="-360" max="360" id="rot_angle" placeholder="Angle">
</div>
<!-- Flip -->
<div id="flip_tool" class="col-md-auto flip tool">
<div class="input-group">
<span class="input-group-text">Axis:</span>
<select id="flip_axis" class="form-select bg-light">
<option selected value="0">Horizontal</option>
<option value="1">Vertical</option>
</select>
</div>
</div>
<!-- text -->
<div id="text_tool" class="col-md-2 text tool">
<input class="form-control" type="text" id="text_string" placeholder="text">
</div>
<div class="col-md-1 text tool">
<input class="form-control" type="text" id="text_font" placeholder="Font">
</div>
<div class="col-md-1 text tool">
<input class="form-control" type="text" id="text_size" placeholder="Size">
</div>
<div class="col-4 col-lg-2 text tool">
<div class="input-group">
<span class="input-group-text">Color:</span>
<input type="color" class="form-control form-control-color" id="text_color" value="#000000" title="Text color?">
</div>
</div>
<div class="col-md-auto text tool">
<div class="input-group">
<span class="input-group-text">Position:</span>
<select id="text_position" class="form-select bg-light">
<option selected value="top-left">Top-Left</option>
<option value="top-center">Top-Center</option>
<option value="top-right">Top-Right</option>
<option value="middle-left">Middle-Left</option>
<option value="middle-center">Middle-Center</option>
<option value="middle-right">Middle-Right</option>
<option value="bottom-left">Bottom-Left</option>
<option value="bottom-center">Bottom-Center</option>
<option value="bottom-right">Bottom-Right</option>
</select>
</div>
</div>
<!-- Watermark -->
<div id="watermark_tool" class="col-auto watermark tool">
<input class="form-control" type="file" id="watermark_file">
</div>
<div class="col-sm-2 watermark tool">
<input class="form-control" type="number" id="watermark_opacity" min="0" max="100" placeholder="Opacity">
</div>
<div class="col-sm-auto watermark tool">
<div class="input-group">
<span class="input-group-text">Position:</span>
<select id="watermark_position" class="form-select bg-light">
<option selected value="top-left">Top-Left</option>
<option value="top-center">Top-Center</option>
<option value="top-right">Top-Right</option>
<option value="middle-left">Middle-Left</option>
<option value="middle-center">Middle-Center</option>
<option value="middle-right">Middle-Right</option>
<option value="bottom-left">Bottom-Left</option>
<option value="bottom-center">Bottom-Center</option>
<option value="bottom-right">Bottom-Right</option>
</select>
</div>
</div>
<!-- Submit Button -->
<div class="col-1">
<button class="btn btn-outline-primary" onclick="useTool()" type="submit">Apply</button>
</div>
</form>
</div>
</div>
<!-- Filters-->
<div class="tab-pane fade" id="pills-filters">
<div class="justify-content-center align-items-center d-inline rounded">
<form class="row g-3 justify-content-center align-items-center" action="javascript:void(0);">
<!-- Select a Filter-->
<div class="col-auto">
<div class="input-group">
<span class="input-group-text">Filter:</span>
<select id="filters" class="form-select bg-light">
<option selected value="brightness">Brightness</option>
<option value="contrast">Contrast</option>
<option value="saturation">Saturation</option>
<option value="vibrance">Vibrance</option>
</select>
</div>
</div>
<!-- brightness -->
<div class="filter brightness col-auto">
<span class="tt" data-bs-placement="bottom" title="Value">
<div class="input-group border rounded">
<button class="btn btn-primary" onclick="brightness('-')">-</button>
<input type="text" class="form-control text-center" style="width: 50px;" value="0" id="brightness_value">
<button class="btn btn-primary" onclick="brightness('+')">+</button>
</div>
</span>
</div>
<!-- contrast -->
<div class="filter contrast col-auto">
<span class="tt" data-bs-placement="bottom" title="Value">
<div class="input-group border rounded">
<button class="btn btn-primary" onclick="contrast('-')">-</button>
<input type="text" class="form-control text-center" style="width: 50px;" value="0" id="contrast_value">
<button class="btn btn-primary" onclick="contrast('+')">+</button>
</div>
</span>
</div>
<!-- saturation -->
<div class="filter saturation col-auto">
<span class="tt" data-bs-placement="bottom" title="Value">
<div class="input-group border rounded">
<button class="btn btn-primary" onclick="saturation('-')">-</button>
<input type="text" class="form-control text-center" style="width: 50px;" value="0" id="saturation_value">
<button class="btn btn-primary" onclick="saturation('+')">+</button>
</div>
</span>
</div>
<!-- vibrance -->
<div class="filter vibrance col-auto">
<span class="tt" data-bs-placement="bottom" title="Value">
<div class="input-group border rounded">
<button class="btn btn-primary" onclick="vibrance('-')">-</button>
<input type="text" class="form-control text-center" style="width: 50px;" value="0" id="vibrance_value">
<button class="btn btn-primary" onclick="vibrance('+')">+</button>
</div>
</span>
</div>
</form>
</div>
</div>
<!-- Effects-->
<div class="tab-pane fade" id="pills-effects">
<div id="effectsList" class="carousel carousel-dark slide" data-bs-interval="false">
<div id="carousel-body" class="carousel-inner">
<div class="carousel-item active">
<div class="row justify-content-center my-0 py-0">
<!-- stackBlur -->
<figure class="figure col-auto my-0 py-0" onclick="stackBlur()">
<img src="static\assets\effects_thumbnails\blur.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Blur</figcaption>
</figure>
</div>
</div>
<div class="carousel-item">
<div class="row justify-content-center my-0 py-0">
<!-- Sepia -->
<figure class="figure col-auto my-0 py-0" onclick="sepia()">
<img src="static\assets\effects_thumbnails\sepia.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Sepia</figcaption>
</figure>
<!-- vintage -->
<figure class="figure col-auto my-0 py-0" onclick="vintage()">
<img src="static\assets\effects_thumbnails\vintage.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Vintage</figcaption>
</figure>
<!-- Lomo -->
<figure class="figure col-auto my-0 py-0" onclick="lomo()">
<img src="static\assets\effects_thumbnails\lomo.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Lomo</figcaption>
</figure>
<!-- greyscale -->
<figure class="figure col-auto my-0 py-0" onclick="greyscale()">
<img src="static\assets\effects_thumbnails\grayscale.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Greyscale</figcaption>
</figure>
<!-- clarity -->
<figure class="figure col-auto my-0 py-0" onclick="clarity()">
<img src="static\assets\effects_thumbnails\clarity.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Clarity</figcaption>
</figure>
<!-- sinCity -->
<figure class="figure col-auto my-0 py-0" onclick="sinCity()">
<img src="static\assets\effects_thumbnails\sin city.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Sin City</figcaption>
</figure>
<!-- crossProcess -->
<figure class="figure col-auto my-0 py-0" onclick="crossProcess()">
<img src="static\assets\effects_thumbnails\cross process.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Cross Process</figcaption>
</figure>
<!-- pinhole -->
<figure class="figure col-auto my-0 py-0" onclick="pinhole()">
<img src="static\assets\effects_thumbnails\pinhole.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Pinhole</figcaption>
</figure>
<!-- nostalgia -->
<figure class="figure col-auto my-0 py-0" onclick="nostalgia()">
<img src="static\assets\effects_thumbnails\nostalgia.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Nostalgia</figcaption>
</figure>
<!-- herMajesty -->
<figure class="figure col-auto my-0 py-0" onclick="herMajesty()">
<img src="static\assets\effects_thumbnails\her majesty.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Her Majesty</figcaption>
</figure>
</div>
</div>
<div class="carousel-item">
<div class="row justify-content-center my-0 py-0">
<!-- grungy -->
<figure class="figure col-auto my-0 py-0" onclick="grungy()">
<img src="static\assets\effects_thumbnails\grungy.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Grungy</figcaption>
</figure>
<!-- orangePeel -->
<figure class="figure col-auto my-0 py-0" onclick="orangePeel()">
<img src="static\assets\effects_thumbnails\orange peel.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Orange Peel</figcaption>
</figure>
<!-- love -->
<figure class="figure col-auto my-0 py-0" onclick="love()">
<img src="static\assets\effects_thumbnails\love.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Love</figcaption>
</figure>
<!-- jarques -->
<figure class="figure col-auto my-0 py-0" onclick="jarques()">
<img src="static\assets\effects_thumbnails\jarques.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Jarques</figcaption>
</figure>
<!-- oldBoot -->
<figure class="figure col-auto my-0 py-0" onclick="oldBoot()">
<img src="static\assets\effects_thumbnails\old boot.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Old Boot</figcaption>
</figure>
<!-- glowingSun -->
<figure class="figure col-auto my-0 py-0" onclick="glowingSun()">
<img src="static\assets\effects_thumbnails\glowing sun.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Glowing Sun</figcaption>
</figure>
<!-- hazyDays -->
<figure class="figure col-auto my-0 py-0" onclick="hazyDays()">
<img src="static\assets\effects_thumbnails\hazy days.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Hazy Days</figcaption>
</figure>
<!-- hemingway -->
<figure class="figure col-auto my-0 py-0" onclick="hemingway()">
<img src="static\assets\effects_thumbnails\heming way.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Hemingway</figcaption>
</figure>
<!-- concentrate -->
<figure class="figure col-auto my-0 py-0" onclick="concentrate()">
<img src="static\assets\effects_thumbnails\concentrate.jpg" width="50" class="figure-img img-fluid rounded my-0 py-0">
<figcaption class="figure-caption my-0 py-0">Concentrate</figcaption>
</figure>
</div>
</div>
</div>
<!-- carousel controls-->
<button id="carousel-btn-prev" class="carousel-control-prev" style="width: 50px; height: 50px;" type="button" data-bs-target="#effectsList" data-bs-slide="prev">
<i class="bi bi-caret-left text-black" style="font-size: 30px;"></i>
</button>
<button id="carousel-btn-next" class="carousel-control-next" style="width: 50px; height: 50px;" type="button" data-bs-target="#effectsList" data-bs-slide="next">
<i class="bi bi-caret-right text-black" style="font-size: 30px;"></i>
</button>
</div>
</div>
</div>
<hr/> <!-- Horizontal Line -->
<!-- Preview uploaded/edited photo -->
<div class="row g-3 my-3 justify-content-center align-items-center">
<div class="col-6 m-2 d-block" id="preview_img">
<input id="upload-btn" hidden type="file">
<canvas id="canvas" class="img-thumbnail" onclick="upload()"></canvas>
</div>
</div>
<hr/> <!-- Horizontal Line -->
<!-- Control Buttons -->
<div class="row mt-3 justify-content-between align-items-center">
<div class="col-sm-auto m-2">
<!-- Revert Button-->
<span class="tt" data-bs-placement="bottom" title="Revert">
<div>
<button id="revert-btn" disabled class="btn btn-outline-primary">
<i class="bi bi-arrow-counterclockwise"></i>
</button>
</div>
</span>
</div>
<!-- Zoom In/Out Buttons-->
<div class="col-sm-auto m-2" id="zoomBtns" style="pointer-events: none; opacity: 0.4;">
<span class="tt" data-bs-placement="bottom" title="Zoom">
<div class="input-group border rounded">
<button id="zoomOutBtn" class="btn btn-primary" onclick="zoomOut()">
<i class="bi bi-zoom-out"></i>
</button>
<input type="text" disabled class="form-control text-center" size="1" value="0" id="zoom_value">
<button id="zoomInBtn" class="btn btn-primary" onclick="zoomIn()">
<i class="bi bi-zoom-in"></i>
</button>
</div>
</span>
</div>
<!-- Download Button-->
<div class="col-sm-auto m-2">
<span class="tt" data-bs-placement="bottom" title="Download">
<div>
<button class="btn btn-outline-primary" id="download_sidebar" type="button" data-bs-toggle="offcanvas" data-bs-target="#download_menu" aria-controls="offcanvasExample">
<i class="bi bi-download"></i>
</button>
</div>
</span>
</div>
</div>
</div>
<!-- Download menu (offcanvas) -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="download_menu" aria-labelledby="offcanvasExampleLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasExampleLabel">Download</h5>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body m-2">
<!-- Download form -->
<div class="input-group m-auto">
<span class="input-group-text">File Name:</span>
<input type="text" id="download_filename" class="form-control">
</div>
<hr class="m-2"/>
<div class="input-group m-auto">
<span class="input-group-text">Format:</span>
<select id="download_filetype" class="form-select bg-light">
<option selected value="image/jpeg">JPG</option>
<option value="image/png">PNG</option>
<option value="image/webp">WebP</option>
</select>
</div>
<div class="m-2 p-2 rounded text-white bg-secondary">
<b>  Note:</b>
<ul>
<li><p class="my-0">Use "PNG" for transparent background</p></li>
<li><p class="my-0">Use "JPG" for a smaller file size</p></li>
</ul>
</div>
<hr class="m-2"/>
<button id="download-btn" class="btn btn-primary mx-auto d-flex">
Download
</button>
</div>
</div>
</section>
<!-- How To Use Section -->
<section id="doc" class="bg-light mt-5">
<div class="display-5 text-muted ms-5">How To Use</div>
<div class="container-xxl py-3">
<div class="row" id="theight">
<div class="col-md-2 mb-2 mb-md-auto bg-white shadow me-4 py-2" id="tableOfContents">
<p class="fw-bold border-bottom mb-1 fs-5">Table Of Contents</p>
<ul class="list-unstyled ps-0">
<li class="mb-1">
<a class="btn btn-toggle-no align-items-center rounded" href="#upload_HTU" aria-expanded="false">
Upload Image
</a>
</li>
<li class="mb-1">
<a class="btn btn-toggle-no align-items-center rounded" href="#controls_HTU" aria-expanded="false">
Controls
</a>
</li>
<li class="mb-1">
<a class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse" data-bs-target="#tools-collapse" aria-expanded="false">
Tools
</a>
<div class="collapse" id="tools-collapse">
<ul class="btn-toggle-nav list-unstyled small">
<li><a href="#crop_tools_HTU" class="link-dark rounded">Crop</a></li>
<li><a href="#rotate_tools_HTU" class="link-dark rounded">Rotate</a></li>
<li><a href="#flip_tools_HTU" class="link-dark rounded">Flip</a></li>
<li><a href="#text_tools_HTU" class="link-dark rounded">Text</a></li>
<li><a href="#watermark_tools_HTU" class="link-dark rounded">Watermark</a></li>
</ul>
</div>
</li>
<li class="mb-1">
<a class="btn btn-toggle-no align-items-center rounded" href="#filters_HTU" aria-expanded="false">
Filters
</a>
</li>
<li class="mb-1">
<a class="btn btn-toggle-no align-items-center rounded" href="#effects_HTU" aria-expanded="false">
Effects
</a>
</li>
<li class="mb-1">
<a class="btn btn-toggle-no align-items-center rounded" href="#download_HTU" aria-expanded="false">
Download
</a>
</li>
</ul>
</div>
<div class="col bg-white shadow py-2 px-4">
<!-- Upload Image | How to use -->
<div class="fw-bold display-5 mb-2" id="upload_HTU">Upload Image</div>
<p class="fs-5">To upload an image click on the white canvas at the middle of the editor</p>
<div class="callout callout-info">
<p class="fs-6 fw-bold mb-0">Supported Formats:</p>
<ul>
<li><p class="fs-6">JPG</p></li>
<li><p class="fs-6">PNG</p></li>
<li><p class="fs-6">GIF</p></li>
<li><p class="fs-6">WebP</p></li>
</ul>
</div>
<hr class="mx-5">
<!-- Controls | How to use -->
<div class="fw-bold display-5 mb-2" id="controls_HTU">Controls</div>
<p class="fs-5">At the bottom of the editor section, There are 3 buttons:</p>
<ul>
<li>
<p class="fs-5 mb-0">Revert</p>
<p class="fs-6">Click this button to revert the edited image to it's original state</p>
</li>
<li>
<p class="fs-5 mb-0">Zoom In/Out</p>
<p class="fs-6">Use these buttons to Zoom In/Out</p>
</li>
<li>
<p class="fs-5 mb-0">Download</p>
<p class="fs-6">Click this button to open the download menu</p>
</li>
</ul>
<hr class="mx-5">
<!-- Tools | How to use -->
<div class="fw-bold display-5 mb-2">Tools</div>
<div class="my-1"></div>
<!-- Crop | Tools | How to use-->
<div class="fw-bold display-6 mb-2" id="crop_tools_HTU">Crop</div>
<p class="fs-5">Use this tool to crop the image</p>
<p class="fs-5 mb-0">Tool requirements:</p>
<ul>
<li>
<p class="fs-5 mb-0">Rectangle</p>
<p class="fs-6">Specify a rectangle coordinates to crop the image</p>
<ul>
<li>
<p class="fs-6 mb-0">Left: The left Column </p>
</li>
<li>
<p class="fs-6 mb-0">Top: The top Row </p>
</li>
<li>
<p class="fs-6 mb-0">Right: The right column</p>
</li>
<li>
<p class="fs-6 mb-0">Bottom: The bottom Row</p>
</li>
</ul>
</li>
</ul>
<div class="callout callout-info">
<ul>
<li>Left and Right values can't be greater than the image width</li>
<li>Right value must be greater than the Left value</li>
<li>Top and Bottom values can't be greater than the image height</li>
<li>Bottom value must be greater than the Top value</li>
</ul>
</div>
<!-- Rotate | Tools | How to use -->
<div class="fw-bold display-6 mb-2" id="rotate_tools_HTU">Rotate</div>
<p class="fs-5">Use this tool to rotate the image</p>
<p class="fs-5 mb-0">Tool requirements:</p>
<ul>
<li>
<p class="fs-5 mb-0">Angle</p>
<p class="fs-6">Specify an angle to rotate the image</p>
</li>
</ul>
<div class="callout callout-info">
<ul>
<li>To rotate the image clockwise, use a negative value</li>
<li>To rotate the image anticlockwise, use a positive value</li>
</ul>
</div>
<!-- Flip | Tools | How to Use -->
<div class="fw-bold display-6 mb-2" id="flip_tools_HTU">Flip</div>
<p class="fs-5">Use this tool to flip the image</p>
<p class="fs-5 mb-0">Tool requirements:</p>
<ul>
<li>
<p class="fs-5 mb-0">Axis</p>
<p class="fs-6">Specify an axis to flip the image on</p>
</li>
</ul>
<!-- Text | Tools | How to use -->
<div class="fw-bold display-6 mb-2" id="text_tools_HTU">Text</div>
<p class="fs-5">Use this tool to add text to the image</p>
<p class="fs-5 mb-0">Tool requirements:</p>
<ul>
<li>
<p class="fs-5 mb-0">Text</p>
<p class="fs-6">A string for the text you want to add</p>
</li>
<li>
<p class="fs-5 mb-0">Font</p>
<p class="fs-6">Specify a font for the text</p>
</li>
<li>
<p class="fs-5 mb-0">Size</p>
<p class="fs-6">Specify a size for the text</p>
</li>
<li>
<p class="fs-5 mb-0">Color</p>
<p class="fs-6">Choose a color for the text</p>
</li>
<li>
<p class="fs-5 mb-0">Position</p>
<p class="fs-6">choose a position for the text</p>
</li>
</ul>
<div class="callout callout-info">
<p class="fs-6 fw-bold mb-0">Supported Fonts:</p>
<ul>
<li>arial</li>
<li>comic sans ms</li>
<li>serif</li>
<li>cursive</li>
<li>monospace</li>
<li>For more Fonts, visit <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family" target="_blank">CSS Font-Family</a></li>
</ul>
</div>
<!-- Watermark | Tools | How to use -->
<div class="fw-bold display-6 mb-2" id="watermark_tools_HTU">Watermark</div>
<p class="fs-5">Use this tool to add a watermark to the image</p>
<p class="fs-5 mb-0">Tool requirements:</p>
<ul>
<li>
<p class="fs-5 mb-0">Watermark File</p>
<p class="fs-6">An image file of the watermark</p>
</li>
<li>
<p class="fs-5 mb-0">Opacity</p>
<p class="fs-6">Specify a value for the opacity of the watermark</p>
</li>
<li>
<p class="fs-5 mb-0">Position</p>
<p class="fs-6">choose a position for the watermark</p>
</li>
</ul>
<hr class="mx-5">
<!-- Filters | How to use -->
<div class="fw-bold display-5 mb-2" id="filters_HTU">Filters</div>
<p class="fs-5">There are 4 filters. Which are</p>
<ul>
<li>Brightness</li>
<li>Contrast</li>
<li>Saturation</li>
<li>Vibrance</li>
</ul>
<p class="fs-5">Each filter has 2 buttons, A button <code>"+"</code> to increase it's value and another button <code>"-"</code> to decrease it</p>
<hr class="mx-5">
<!-- Effects | How to use -->
<div class="fw-bold display-5 mb-2" id="effects_HTU">Effects</div>
<p class="fs-5">Effects are just a combination of multiple filters with specific values</p>
<p class="fs-5">Click on an effect to apply it</p>
<hr class="mx-5">
<!-- Download | How to use -->
<div class="fw-bold display-5 mb-2" id="download_HTU">Download</div>
<p class="fs-5">To open the download menu click on the download button at the bottom right corner of the editor</p>
<p class="fs-5">After opening the menu, Specify a "File Name" And a "File Format"</p>
<div class="callout callout-info">
<ul>
<li><p class="my-0">Use "PNG" for transparent background</p></li>
<li><p class="my-0">Use "JPG" for a smaller file size</p></li>
</ul>
</div>
<p class="fs-5">Then click on the download button</p>
</div>
</div>
</div>
</section>
</main>
<!-- toasts -->
<section>
<!-- warning notification -->
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
<div id="warning_toast" class="toast" role="alert" data-bs-delay="10000">
<div class="toast-header">
<i class="bi bi-exclamation-diamond text-warning"></i>
<div class="vr mx-1"></div>
<strong class="me-auto">Warning</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
Warning
</div>
</div>
</div>
</section>
<!-- Back to top -->
<div class="fixed-bottom my-5" style="margin-right: 50px;">
<span class="tt" style="padding-left: 100%;" data-bs-placement="top" title="Back To Top">
<a href="#" class="btn btn-outline-primary"><i class="bi bi-arrow-up"></i></a>
</span>
</div>
<!-- http://getbootstrap.com/docs/5/ -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<!-- CamanJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/camanjs/4.0.0/caman.full.min.js"></script>
<!-- Custom JS File-->
<script src="static\script.js"></script>
</body>
</html>