-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
127 lines (115 loc) · 4.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width-device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/4/cerulean/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Filter Web App</title>
</head>
<body>
<nav class="navbar navbar-dark bg-info mb-5">
<div class="container">
<a class="navbar-brand">Online Image Filter</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" class="custom-file-input " id="upload-file">
<label for="upload-file" class="custom-file-label">Choose Image</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 margin">
<div class="btn-group btn-group-sm">
<button class=" brightness-remove btn btn-info">-</button>
<button class="btn btn-secondary btn-disabled" disabled>Brightness</button>
<button class=" brightness-add btn btn-info" >+</button>
</div>
<div class="slidecontainer">
<input type="range" min="0" max="200" value="100" class="custom-range " id="brightness">
</div>
</div>
<div class="col-md-3 margin">
<div class="btn-group btn-group-sm">
<button class=" contrast-remove btn btn-info">-</button>
<button class="btn btn-secondary" disabled> Contrast </button>
<button class=" contrast-add btn btn-info">+</button>
</div>
<div class="slidecontainer">
<input type="range" min="0" max="200" value="100" class="custom-range" id="contrast">
</div>
</div>
<div class="col-md-3 margin">
<div class="btn-group btn-group-sm">
<button class=" saturation-remove btn btn-info">-</button>
<button class="btn btn-secondary" disabled>Saturation</button>
<button class=" saturation-add btn btn-info">+</button>
</div>
<div class="slidecontainer">
<input type="range" min="0" max="200" value="100" class="custom-range" id="saturation">
</div>
</div>
<div class="col-md-3 margin">
<div class="btn-group btn-group-sm">
<button class="grayscale-remove btn btn-info">-</button>
<button class="btn btn-secondary" disabled> GrayScale </button>
<button class="grayscale-add btn btn-info">+</button>
</div>
<div class="slidecontainer">
<input type="range" min="0" max="100" value="0" class="custom-range" id="grayscale">
</div>
</div>
</div>
<!---End Row--->
<h4 class="text-center my-3">Effects</h4>
<!---------Effects OPtions------------>
<div class="row mb-3 ">
<div class="col-md-3">
<button class="filter-btn xpro2-add btn btn-dark btn-block emargin">X-PRO 2</button>
</div>
<div class="col-md-3">
<button class="filter-btn toaster-add btn btn-dark btn-block emargin">Toaster</button>
</div>
<div class="col-md-3">
<button class="filter-btn sutro-add btn btn-dark btn-block emargin">Sutro</button>
</div>
<div class="col-md-3">
<button class="filter-btn mayfair-add btn btn-dark btn-block emargin">Mayfair</button>
</div>
</div>
<!----EndRow---->
<div class="row mb-3 tmargin">
<div class="col-md-3">
<button class="filter-btn kelvin-add btn btn-dark btn-block emargin">Kelvin</button>
</div>
<div class="col-md-3">
<button class="filter-btn inkwell-add btn btn-dark btn-block emargin">Inkwell</button>
</div>
<div class="col-md-3">
<button class="filter-btn brannan-add btn btn-dark btn-block emargin">Brannan</button>
</div>
<div class="col-md-3">
<button class="filter-btn amaro-add btn btn-dark btn-block emargin">Amaro</button>
</div>
</div>
<!----End Row---->
<!------Download And Reset Buttons----->
<div class="row my-5">
<div class="col-md-6">
<button id="download-btn" class="btn btn-primary btn-block emargin">Download Image</button>
</div>
<div class="col-md-6">
<button id="revert-btn" class="btn btn-danger btn-block emargin">Remove Filter</button>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>