forked from oddbird/popover-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (41 loc) · 1.71 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
<!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>Popover Attribute Polyfill</title>
<script src="./dist/popover.js"></script>
<link rel="stylesheet" href="./dist/popover.css" />
</head>
<body>
<h1>Popover Attribute Polyfill</h1>
<div id="popovers">
<div id="popover1" popover>Popover 1</div>
<div id="popover2" popover="">Popover 2</div>
<div id="popover3" popover="auto">Popover 3</div>
<div id="popover4" popover="hint">Invalid Popover ("hint")</div>
<div id="popover5" popover="manual">Popover 5</div>
<div id="popover6" popover="invalid">Invalid Popover ("invalid")</div>
<div id="popover7" popover="auto">Popover 7 (auto)</div>
<div id="popover8" popover="auto">Popover 8 (auto)</div>
<div id="popover9" popover="manual">Popover 9 (manual)</div>
<div id="popover10" popover="manual">Popover 10 (manual)</div>
</div>
<div id="buttons">
<button popovertoggletarget="popover1">Click to toggle Popover 1</button>
<button popovertoggletarget="popover2">Click to toggle Popover 2</button>
<button popovershowtarget="popover3">Click to show Popover 3</button>
<button popovershowtarget="popover5">
<span>Click to show Popover 5</span>
</button>
<button popoverhidetarget="popover5">Click to hide Popover 5</button>
<button popovertoggletarget="popover9">
<span>Click to toggle Popover 9</span>
</button>
<button popovertoggletarget="popover10">
Click to toggle Popover 10
</button>
</div>
</body>
</html>