-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (39 loc) · 1.23 KB
/
index.html
File metadata and controls
42 lines (39 loc) · 1.23 KB
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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Image Filters</title>
<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> Image Filters </h1>
<div>
<canvas id="canv" class="cv"></canvas>
</div>
<h3> Load Image </h3>
<p>
<input id="finput" type="file" multiple="false" accept="image/*" onchange="loadImage()">
</p>
<h3> Choose Filters </h3>
<p>
<input class="btn" id="red" type="button" value="Red" onclick="makeRed()">
<input class="btn" id="gray" type="button" value="Grayscale" onclick="makeGray()">
<input class="btn" id="blur" type="button" value="Blur" onclick="makeBlur()">
<input class="btn" id="rainbow" type="button" value="Rainbow" onclick="makeRainbow()">
<a id="link"></a>
<input class="btn" id="download" type="button" value="Download" onclick="download()">
</p>
<h3> Make Your Own </h3>
<p>
<input id="clr" type="color" value="#ffffff" onchange="makeCustom()">
</p>
<h3> Reset the Image </h3>
<p>
<input type="button" class="btn" id="rst" value="Reset" onclick="reset()">
</p>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>