-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (144 loc) · 6.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Procccing</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.5.0/flatly/bootstrap.min.css"
integrity="sha384-mhpbKVUOPCSocLzx2ElRISIORFRwr1ZbO9bAlowgM5kO7hnpRBe+brVj8NNPUiFs" crossorigin="anonymous">
<link rel="stylesheet" href="./src/style/style.css">
<script src="./src/script/script.js" defer></script>
</head>
<body>
<nav class="navbar navbar-dark bg-primary mb-5">
<div class="container">
<a href="#" class="navbar-brand">Image Filters</a>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-10 m-auto">
<div class="custom-file mb-3">
<input type="file" id="upload-file" class="custom-file-input">
<label for="upload-file" class="custom-file-label">
Choose Image For Proccing
</label>
</div>
<canvas id="canvas"></canvas>
<h4 class="text-center my-3">Filters</h4>
<div class="row text-center my-4">
<div class="col-md-3">
<div class="btn-group btn-group-sm">
<button class="filter-btn brightness-remove btn btn-info">
-
</button>
<button disabled class=" btn btn-success btn-disabled">
Brightness
</button>
<button class="filter-btn brightness-add btn btn-info">
+
</button>
</div>
</div>
<div class="col-md-3">
<div class="btn-group btn-group-sm">
<button class="filter-btn vibrance-remove btn btn-info">
-
</button>
<button disabled class=" btn btn-success btn-disabled">
vibrance
</button>
<button class="filter-btn vibrance-add btn btn-info">
+
</button>
</div>
</div>
<div class="col-md-3">
<div class="btn-group btn-group-sm">
<button class="filter-btn saturation-remove btn btn-info">
-
</button>
<button disabled class=" btn btn-success btn-disabled">
saturation
</button>
<button class="filter-btn saturation-add btn btn-info">
+
</button>
</div>
</div>
<div class="col-md-3">
<div class="btn-group btn-group-sm">
<button class="filter-btn contrast-remove btn btn-info">
-
</button>
<button disabled class=" btn btn-success btn-disabled">
contrast
</button>
<button class="filter-btn contrast-add btn btn-info">
+
</button>
</div>
</div>
</div>
<h4 class="text-center my-3">Effect</h4>
<div class="row mb-3">
<div class="col-md-3">
<button class="filter-btn vintage-add btn btn-dark btn-block">
Vintage
</button>
</div>
<div class="col-md-3">
<button class="filter-btn lomo-add btn btn-dark btn-block">
lomo
</button>
</div>
<div class="col-md-3">
<button class="filter-btn clarity-add btn btn-dark btn-block">
clarity
</button>
</div>
<div class="col-md-3">
<button class="filter-btn sincity-add btn btn-dark btn-block">
sincity
</button>
</div>
</div>
<div class="row mb-3">
<div class="col-md-3">
<button class="filter-btn crossprocess-add btn btn-dark btn-block">
crossprocess
</button>
</div>
<div class="col-md-3">
<button class="filter-btn pinhole-add btn btn-dark btn-block">
pinhole
</button>
</div>
<div class="col-md-3">
<button class="filter-btn nostalgia-add btn btn-dark btn-block">
nostalgia
</button>
</div>
<div class="col-md-3">
<button class="filter-btn hermajesty-add btn btn-dark btn-block">
hermajesty
</button>
</div>
</div>
<div class="row my-5">
<div class="col-md-6">
<button id="download-btn" class="btn btn-primary btn-block">Download Image</button>
</div>
<div class="col-md-6">
<button id="revert-btn" class="btn btn-danger btn-block"> Remove Effect </button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/camanjs/4.1.2/caman.full.min.js"
integrity="sha512-JjFeUD2H//RHt+DjVf1BTuy1X5ZPtMl0svQ3RopX641DWoSilJ89LsFGq4Sw/6BSBfULqUW/CfnVopV5CfvRXA=="
crossorigin="anonymous"></script>
</body>
</html>