-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (97 loc) · 3.95 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
<!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" />
<title>FilterJS</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
</head>
<body>
<main class="container">
<div class="d-flex flex-column align-items-center">
<h1 class="center">FILTERS JS</h1>
<div class="row my-3">
<div class="col-5">
<video class="w-100 border" id="video">
Video stream not available.
</video>
</div>
<div
class="
col-2
d-flex
flex-column
justify-content-center
align-items-center
"
>
<button class="btn btn-success m-1" id="toggleButton">
Toggle Filter
</button>
</div>
<div class="col-5">
<canvas class="w-100 border" id="canvas"></canvas>
</div>
</div>
<div class="row my-3">
<select
class="form-select mb-5"
name="filter"
id="filterSelector"
>
<option value="">--- SELECT A FILTER ---</option>
<option value="grey">grey (vert)</option>
<option value="dark">dark (vert)</option>
<option value="negative">negative (vert)</option>
<option value="redCanal">redCanal (vert)</option>
<option value="greenCanal">greenCanal (vert)</option>
<option value="blueCanal">blueCanal (vert)</option>
<option value="purpleCanal">purpleCanal (vert)</option>
<option value="extrude">extrude (orange)</option>
<option value="glitch">glitch (noir)</option>
</select>
<label for="sensibilityRange" class="form-label"
>Sensibility</label
>
<input
type="range"
class="form-range"
min="0"
max="5"
id="sensibilityRange"
/>
<label for="brightnessRange" class="form-label"
>Brightness (noir)</label
>
<input
type="range"
class="form-range"
min="-100"
max="100"
id="brightnessRange"
/>
<label for="contrastRange" class="form-label"
>Contrast (noir)</label
>
<input
type="range"
class="form-range"
min="-100"
max="100"
id="contrastRange"
/>
<div class="my-3">
<button id="horizontalFlipButton" class="btn btn-primary">horizontalFlip (vert)</button>
<button id="verticalFlipButton" class="btn btn-primary">verticalFlip (vert)</button>
</div>
</div>
</div>
</main>
<!-- SCRIPT -->
<script src="main.js"></script>
</body>
</html>