-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
32 lines (31 loc) · 808 Bytes
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>simple-live-announcer</title>
<style>
.screen-reader-text {
border: 0;
clip: rect(1px,1px,1px,1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
}
</style>
</head>
<body>
<button onclick="announce('Lorem ipsum')">Lorem ipsum (polite)</button>
<button onclick="announce('Foo bar')">Foo bar (polite)</button>
<script type="module">
import { announce, createInstance } from '/dist/index.js';
createInstance();
window.announce = announce;
</script>
</body>
</html>