-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (35 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Filtering is Fun</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"><link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'><link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<script
src="https://www.dukelearntoprogram.com/course1/common/js/image/SimpleImage.js" >
</script>
<h1>Filter Fun</h1>
<canvas id="can">
</canvas>
<h2>Load Image</h2>
<input class="i1" type="file" multiple="false" accept="image/*" id="image" onchange="upload()">
<h2>Choose Filter</h2>
<input class ="i" type= "button" value="GrayScale" id="gray" onclick="makeGray()">
<input class ="i" type= "button" value="Red Filter" id="red" onclick="makeRed()">
<input class ="i" type="button" id="green" value="Green filter" onclick="makeGreen()">
<input class ="i" type="button" id="blue" value="Blue Filter" onclick="makeBlue()">
<input class ="i" type="button" id="rainbow" value=" Rainbow effect" onclick="makeRainbow()">
<input class ="i" type="button" id="blur" value="Blur effect" onclick="makeBlur()">
<p>
<p><input class ="i" type="button" id="reset" value="Reset Image" onclick="upload()">
<input class ="i" type="button" id="clsClear" value="Clear Canvas" onclick="clearImage()">
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>