-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
51 lines (45 loc) · 1.4 KB
/
demo.html
File metadata and controls
51 lines (45 loc) · 1.4 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
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Demo of opt-in Web Component" />
<title>opt-in Web Component Demo</title>
<script type="module" src="./src/opt-in.js"></script>
</head>
<body>
<h2>
General usage example
</h2>
<opt-in service="youtube">
<form data-dialog>
<h2>
We need your consent to embed YouTube videos!
</h2>
<p>
We use YouTube to embed videos which may collect data about your
activity. Please review the <a href="/privacy-policy">details</a>
and accept the service to see this content.
</p>
<label>
<input type="checkbox" name="remember">
Always show content from YouTube
</label>
<button type="submit">
Accept
</button>
</form>
<template data-content>
<iframe
src="https://www.youtube.com/embed/aqz-KE-bpKQ?si=FD-cXAd08ecXxx_F"
width="560"
height="315"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
></iframe>
</template>
</opt-in>
</body>
</html>