-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (29 loc) · 1.16 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
<!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>Aria Roles test</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Using Aria Roles to keep the user updated when JavaScript is running</h1>
<p aria-live="polite">This area of the page will change every second <span id="counter"></span></p>
<p>This part of the page will be read out after the counter? (No, it isn't on NVDA) And then the counter will start <strong>again</strong> or <em>will it?</em>.<p>
<p>This text in <b>bold</b> and this text in <i>italics</i> is presentational only.</p>
<p lang="fr">zut alors!</p>
<p>Hello there. This is another change from the command line.</p>
<script>
let counter = 0;
const counterNumber = document.getElementById('counter');
updateCounter = () => {
counter++;
if(counter == 60){window.document.location = "http://www.google.com";}
counterNumber.innerHTML = counter + " seconds";
}
setInterval(updateCounter, 1000);
updateCounter();
</script>
</body>
</html>