-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
64 lines (62 loc) · 3.16 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Image Filter</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap" rel="stylesheet">
</head>
<!-- Palette used : https://coolors.co/30292f-393442-413f54-504d7b-5f5 aa2-4a589a-355691-3a4b6b-3f4045 -->
<body>
<!-- Custom scripts -->
<script src="js/script.js"></script>
<script src="js/filter.js"></script>
<!-- SimpleImage Library from "https://www.dukelearntoprogram.com/" used for image manuplation-->
<script src="js/SimpleImage.js" >
</script>
<!--
--Structure of HTML
--Header// -->
<div class="header"> <!-- Header division -->
<a id="head" href="index.html"><h1>Filter Paper</h1></a>
</div>
<div class="canvas">
<!-- canvas div -->
<canvas id="canvas"></canvas>
</div>
<div class="buttons">
<!-- Adjusting buttons inside buttons tab -->
<div class="filter-button">
<span>Chose your Image file :<input type="file" multiple="false" accept="image/*" id="finput" onchange="upload()" ></span>
<hr>
<!-- Add filter buttons below -->
<!-- Template to add filter :
<span class="filter"> <input type="button"
value="FilterName" onclick="Function in filter.js to Apply filter and show image to canvas"
</span>-->
<span class="filter"> <input type="button" value="Grayscale" onclick="makeGray()" ></span>
<span class="filter"> <input type="button" value="Reddish "onclick="makeRed()" ></span>
<span class="filter"> <input type="button" value="Greeenify" onclick="makeGreen()" ></span>
<span class="filter"> <input type="button" value="Bluish " onclick="makeBlue()" ></span>
<span class="filter"> <input type="button" value="Aqua" onclick="makeAqua()" ></span>
<span class="filter"> <input type="button" value="Yellow" onclick="makeYellow()" ></span>
<span class="filter"> <input type="button" value="Magenta" onclick="makeMagenta()" ></span>
<span class="filter"> <input type="button" value="Make Dull" onclick="makeDull()" ></span>
<span class="filter"> <input type="button" value="Make Bright" onclick="makeBright()" ></span>
<span class="filter"> <input type="button" value="RedBlueRight" onclick="makediag('r','b')"> </span>
<span class="filter"> <input type="button" value="BlueGreenRight" onclick="makediag('b','g')"> </span>
<span class="filter"> <input type="button" value="GreenRedRight" onclick="makediag('g','r')"> </span>
<span class="filter"> <input type="button" value="BlueRedRight" onclick="makediag('b','r')"> </span>
<span class="filter"> <input type="button" value="GreenBlueRight" onclick="makediag('g','b')"> </span>
<span class="filter"> <input type="button" value="RedGreenRight" onclick="makediag('r','g')"> </span>
<!-- To Do , Add digonal filter of all variants -->
</div>
<div class="other-button">
<hr>
<span class="filter"> <input type="button" value="Reset" onclick="showOriginal()" ></span>
<span class="filter"> <input type="button" value="Apply filter over this image" onclick="makeChange()" ></span>
<span class="filter"> <input type="button" value="Save Image" onclick="download()" ></span>
</div>
</div>
</body>
</html>