-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
104 lines (101 loc) · 2.9 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RSAS Status</title>
<style>
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap; /* Added to prevent the content from wrapping */
border: 0;
}
body {
font-family: Arial, sans-serif;
background-color: #222;
color: #eee;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
header {
text-align: center;
margin: 20px;
}
.stats, .mounts {
background: #333;
padding: 20px;
border-radius: 10px;
margin: 10px;
width: 90%;
max-width: 600px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.mount {
margin-top: 10px;
padding: 10px;
border-top: 1px solid #555;
transition: background-color 0.3s ease; /* Smooth transition for background color */
}
.mount.selected {
background-color: #007BFF; /* Highlight selected stream */
color: white;
}
button {
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
margin: 10px;
cursor: pointer;
font-size: 16px;
}
button:disabled {
background-color: #555;
cursor: not-allowed;
}
/* Accessibility notice */
.accessibility-note {
background: #444;
color: #fff;
padding: 10px;
text-align: center;
width: 100%;
font-size: 14px;
position: fixed;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<header>
<h1>RSAS Status Dashboard</h1>
</header>
<!-- ARIA Live Region for Announcements -->
<div id="aria-live-region" class="sr-only" aria-live="polite" aria-atomic="true"></div>
<div class="stats">
<h2 role="alert">Total Listeners: <span id="total-listeners">0</span></h2>
<h2 role="alert">Total Sources: <span id="total-sources">0</span></h2>
</div>
<div class="mounts" id="mounts-container">
<!-- Dynamic content will go here -->
</div>
<!-- Accessibility note for users about keyboard input -->
<div class="accessibility-note">
This interface uses keyboard input. Use arrow keys to select streams. Left/Right to play/stop.
</div>
<script src="script.js"></script>
</body>
</html>