-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
99 lines (81 loc) · 2.79 KB
/
editor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> EDITOR</title>
<link rel="stylesheet" href="editor.css">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<div class="main">
<div class="Tools">
<ul>
<li>
<i class='bx bxs-brightness-half'></i>
<p>BrightNess</p>
</li>
<li>
<i class='bx bxs-brush' ></i>
<p>Blur</p>
</li>
<li>
<i class='bx bxs-collection' ></i>
<p>GreyScale</p>
</li>
<li>
<i class='bx bxs-color-fill' ></i>
<p>Hue Rotate</p>
</li>
<li>
<i class='bx bxs-magic-wand' ></i>
<p>Saturation</p>
</li>
<li onclick="Download_btn()">
<i class='bx bx-export' ></i>
<p>Export</p>
</li>
</ul>
</div>
<div class="content">
<p id="logo">Editor</p>
<div class="choose_image">
<div class="upload_img_box">
<i class='bx bxs-image-add' ></i><br>
<input type="file" name="selectedImage" id="selectedImage" accept="image/jpeg, image/png">
<p id="hint">Choose Image from folder</p>
</div>
</div>
<canvas id="image_canvas"></canvas>
<div class="image_holder">
<button id="remove_img_btn"><i class='bx bxs-message-square-x' ></i></button>
<img src="" alt="img" id="image">
</div>
<div class="options">
<div class="option">
<input type="range" max="200" min="0" value="100" id="brightness" class="slider">
<p id="brightVal" class="show_value">100</p>
</div>
<div class="option">
<input type="range" max="40" min="0" value="0" id="blur" class="slider">
<p id="blurVal" class="show_value">0</p>
</div>
<div class="option">
<input type="range" max="100" min="0" value="0" id="greyScale" class="slider">
<p id="greyVal" class="show_value">0</p>
</div>
<div class="option">
<input type="range" max="100" min="0" value="0" id="hue" class="slider">
<p id="hueVal" class="show_value">0</p>
</div>
<div class="option">
<input type="range" max="100" min="1" value="1" id="saturation" class="slider">
<p id="saturationVal" class="show_value">1</p>
</div>
</div>
<button id="clearAll"><span>Reset</span><i class='bx bx-reset' ></i></button>
</div>
</div>
<script src="main.js"></script>
</body>
</html>