-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
dom-019.html
71 lines (59 loc) · 1.73 KB
/
dom-019.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo DOM 019</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
<style>
.controls {
grid-template-columns: 1fr 2fr 1fr 2fr;
}
body {
margin: 1rem 0;
}
.canvas-hold {
width: 100%;
height: 100vh;
}
</style>
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - DOM test 019</h1>
<h2>Screen Capture API - apply a filter to a browser web page</h2>
<p>Demo will show a web page opened in a separate browser tab; this page will request access to the other page before displaying it.</p>
<div class="controls">
<div class="yellow label">Filter</div>
<div class="yellow">
<select class="controlItem" id="backgroundFilter">
<option value="">None</option>
<option value="grayscale">Grayscale</option>
<option value="sepia">Sepia</option>
<option value="invert">Invert</option>
<option value="red">Red</option>
<option value="background-blur">Blur</option>
<option value="pixelate">Pixelate</option>
</select>
</div>
</div>
<div class="canvas-hold">
<canvas
id="mycanvas"
data-scrawl-canvas
data-is-responsive="true"
></canvas>
</div>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<ul>
<li>...</li>
</ul>
<p><b>Touch test:</b> not required</p>
<p><a href="../docs/demo/dom-019.html">Annotated code</a></p>
</div>
<script src="dom-019.js" type="module"></script>
</body>
</html>