generated from daviddarnes/component-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
24 lines (22 loc) · 608 Bytes
/
demo.html
File metadata and controls
24 lines (22 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!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 play-button Web Component" />
<title>play-button Web Component Demo</title>
<style>
play-button:defined audio,
play-button:not(:defined) button {
display: none;
}
</style>
<script type="module" src="play-button.js"></script>
</head>
<body>
<play-button>
<audio controls src="https://darn.es/sounds/daviddarnes.m4a"></audio>
<button>Play</button>
</play-button>
</body>
</html>