-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (101 loc) · 5.02 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<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">
<link rel="shortcut icon" href="src/imgs/logo.png" type="image/x-icon">
<link rel="stylesheet" href="styles/style.css">
<!-- Icons -->
<link rel="stylesheet" href="https://cdn-uicons.flaticon.com/uicons-bold-rounded/css/uicons-bold-rounded.css">
<link rel="stylesheet" href="https://cdn-uicons.flaticon.com/uicons-solid-rounded/css/uicons-solid-rounded.css">
<!-- google fonts -->
<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=Nunito:wght@400;600&display=swap" rel="stylesheet">
<!-- filters script js -->
<script defer src="app/editor.js"></script>
<title>PhotoLab</title>
</head>
<body>
<!-- Using Custom Elements to create Photolab web app -->
<photolab>
<lab>
<display>
<canvas></canvas>
</display>
<editor off>
<details open>
<summary>Filters:</summary>
<filters>
<div>
<h6>Brightness</h6>
<input brightness type="range" value="50" min="0" max="100" adjust>
<input type="number" value="50" min="0" max="100" filval>
</div>
<div>
<h6>Contrast</h6>
<input contrast type="range" value="50" min="0" max="100" adjust>
<input type="number" value="50" min="0" max="100" filval>
</div>
<div>
<h6>Saturation</h6>
<input saturation type="range" value="50" min="0" max="100" adjust>
<input type="number" value="50" min="0" max="100" filval>
</div>
<div>
<h6>Gray Scale</h6>
<input grayscale type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
<div>
<h6>Sepia</h6>
<input sepia type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
<div>
<h6>Inversion</h6>
<input invert type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
<div class="newfltr" title="swap red by green, green by blue, blue by red">
<h6>Swap</h6>
<input swap type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
<div class="newfltr" title="reflect is invert filter but in swap way">
<h6>Reflect</h6>
<input reflect type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
</filters>
</details>
<details>
<summary>RGB:</summary>
<channels>
<div>
<h6>Red</h6>
<input red type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
<div>
<h6>Green</h6>
<input green type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
<div>
<h6>Blue</h6>
<input blue type="range" value="0" min="0" max="100" adjust>
<input type="number" value="0" min="0" max="100" filval>
</div>
</channels>
</details>
<action>
<button reset-filters><i class="fi fi-br-refresh"></i></button>
<a save download="" href="canvas">save <i class="fi fi-sr-cloud-download-alt"></i></a>
</action>
</editor>
</lab>
</photolab>
</body>
</html>