-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (72 loc) · 3.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Document</title>
</head>
<body>
<div class="header">PhotoShop</div>
<form class="uploadSection">
<input type="file" id="inputFile" accept="image/*" onchange="loadFile(event)" />
</form>
<div id="controls">
<button id="brightness" class="buttonControl" value="brightness" onclick=handleBrightness(event)>Brightness</button>
<button id="contrast" class="buttonControl" value="contrast" onclick=handleContrast(event)>Contrast</button>
<button id="saturate" class="buttonControl" value="saturate" onclick=handleSaturate(event)>Saturation</button>
<button id="grayscale" class="buttonControl" value="grayscale" onclick=handleGrayscale(event)>GreyScale</button>
<button id="sepia" class="buttonControl" value="sepia" onclick=handleSepia(event)>Sepia</button>
<button id="hue-rotate" class="buttonControl" value="hue-rotate" onclick=handleHue(event)>Hue Rotate</button>
<button id="invert" class="buttonControl" value="invert" onclick=handleInvert(event)>Invert</button>
<button id="opacity" class="buttonControl" value="opacity" onclick=handleOpacity(event)>Opacity</button>
<button id="blur" class="buttonControl" value="blur" onclick=handleBlur(event)>Blur</button>
</div>
<div class="imageArea">
<div id="mainBody" id="mainImageArea">
<canvas id="mycanvas" width="800px" height="400px" onclick="showCoords(event)" onmousemove="showColor(event)"></canvas>
</div>
<div class="controlContainer">
<div id="imageData"></div>
<div id="upDownBrightness">
<button id="inc_upDownBrightness">↑</button>
<button id="dec_upDownBrightness">↓</button>
</div>
<div id="upDownContrast">
<button id="inc_upDownContrast">↑</button>
<button id="dec_upDownContrast">↓</button>
</div>
<div id="upDownSepia">
<button id="inc_upDownSepia">↑</button>
<button id="dec_upDownSepia">↓</button>
</div>
<div id="upDownGrayscale">
<button id="inc_upDownGrayscale">↑</button>
<button id="dec_upDownGrayscale">↓</button>
</div>
<div id="upDownHue">
<button id="inc_upDownHue">↑</button>
<button id="dec_upDownHue">↓</button>
</div>
<div id="upDownSaturate">
<button id="inc_upDownSaturate">↑</button>
<button id="dec_upDownSaturate">↓</button>
</div>
<div id="upDownInvert">
<button id="inc_upDownInvert">↑</button>
<button id="dec_upDownInvert">↓</button>
</div>
<div id="upDownOpacity">
<button id="inc_upDownOpacity">↑</button>
<button id="dec_upDownOpacity">↓</button>
</div>
<div id="upDownBlur">
<button id="inc_upDownBlur">↑</button>
<button id="dec_upDownBlur">↓</button>
</div>
<button id="reset" onclick=reset()>Reset</button>
</div>
</div>
<script src="javascript.js"></script>
</body>
</html>