-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (36 loc) · 1.7 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image Filter Mini Project</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./style.css" />
<link rel="shortcut icon" href="./Logo.png" type="image/x-icon" />
</head>
<body>
<div class="container">
<h1>Image Filter</h1>
<canvas id="canvas"></canvas>
</div>
<div class="container">
<h2 class="nomarginbottom">Load Image:</h2>
<input id="file" type="file" multiple="false" accept="image/*" onchange="loadImage()" />
<h2 class="nomarginbottom">Choose Filter:</h2>
<div class="filters">
<input id="btnRed" type="button" value="Red Filter" onclick="makeRed()" />
<input id="btnRainbow" type="button" value="Rainbow Filter" onclick="makeRainbow()" />
<input id="btnGrey" type="button" value="Greyscale Filter" onclick="makeGrey()" />
</div>
<h2 class="nomarginbottom">Reset Image Filter</h2>
<input id="btnReset" type="button" value="Reset Image" onclick="resetImage()" />
</div>
<!-- Simple Image Library -->
<script src="https://www.dukelearntoprogram.com/course1/common/js/image/SimpleImage.js"></script>
<script src="script.js"></script>
</body>
</html>
<!-- Developed by Mohammad Kiaei & Duke university -->