-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathindex.html
More file actions
249 lines (218 loc) · 7.48 KB
/
index.html
File metadata and controls
249 lines (218 loc) · 7.48 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Azure Speed Test 2.0 - Measure the latency to your nearest Microsoft Azure Data Center">
<meta name="author" content="Richard Astbury">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<title>Azure Speed Test 2.0</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/favicon.png" />
<style>
:root {
--bg-color: #ffffff;
--text-color: #212529;
--jumbotron-bg: #e9ecef;
--table-bg: #ffffff;
--table-hover-bg: #f8f9fa;
--table-header-bg: #e9ecef;
--table-border-color: #dee2e6;
--progress-bg: #e9ecef;
--badge-bg: #dc3545;
--sparkline-color: #B8BABC;
--row-gradient-color: #e9ecef;
}
[data-theme="dark"] {
--bg-color: #212529;
--text-color: #f8f9fa;
--jumbotron-bg: #343a40;
--table-bg: #2b3035;
--table-hover-bg: #343a40;
--table-header-bg: #24282d;
--table-border-color: #495057;
--progress-bg: #495057;
--badge-bg: #dc3545;
--sparkline-color: #6c757d;
--row-gradient-color: #343a40;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg-color: #212529;
--text-color: #f8f9fa;
--jumbotron-bg: #343a40;
--table-bg: #2b3035;
--table-hover-bg: #343a40;
--table-header-bg: #24282d;
--table-border-color: #495057;
--progress-bg: #495057;
--badge-bg: #dc3545;
--sparkline-color: #6c757d;
--row-gradient-color: #343a40;
}
}
body {
background-color: var(--bg-color);
color: var(--text-color);
transition: background-color 0.3s ease, color 0.3s ease;
}
.jumbotron {
background-color: var(--jumbotron-bg);
color: var(--text-color);
}
.table {
background-color: var(--table-bg);
color: var(--text-color);
}
.table thead th {
background-color: var(--table-header-bg);
color: var(--text-color);
border-color: var(--table-border-color);
}
.table .thead-light th {
background-color: var(--table-header-bg) !important;
color: var(--text-color) !important;
border-color: var(--table-border-color) !important;
}
.table td, .table th {
border-color: var(--table-border-color);
}
.table-hover tbody tr:hover {
background-color: var(--table-hover-bg);
color: var(--text-color);
}
.progress {
background-color: var(--progress-bg);
}
.theme-toggle {
position: absolute;
top: 20px;
right: 20px;
z-index: 1000;
background: transparent;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
padding: 0;
color: var(--text-color);
}
.theme-toggle svg {
display: block;
}
.theme-toggle:hover {
transform: scale(1.1);
}
.pause-toggle {
position: absolute;
top: 20px;
right: 60px;
z-index: 1000;
background: transparent;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
padding: 0;
color: var(--text-color);
}
.pause-toggle svg {
display: block;
}
.pause-toggle:hover {
transform: scale(1.1);
}
.icon {
width: 25px;
margin-right: 8px;
}
.results-table {
margin-bottom: 75px;
}
tr {
display: flex;
width: 100%;
}
td,
th {
flex: 1;
}
svg {
width: 200px;
height: 100%;
}
@media screen and (max-width:770px) {
.no-mobile {
display: none;
}
}
</style>
</head>
<body>
<div class="jumbotron">
<div class="container">
<h1 class="display-4">Azure Speed Test 2.0</h1>
<p class="lead">Measuring the latency from your web browser to the Blob Storage Service in each of the
Microsoft Azure Data Centers.</p>
</div>
</div>
<div class="container">
<div id="content">
<div class="text-center mt-5">
<div class="spinner-border text-primary mb-3" role="status">
<span class="sr-only">Loading...</span>
</div>
<h4>Initializing Azure Speed Test</h4>
<p class="text-muted">Loading test infrastructure...</p>
</div>
</div>
</div>
<noscript>You need to enabled JavaScript for this web application to work.</noscript>
<script>
// Initialize theme before content loads to prevent flash
(function() {
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
document.documentElement.setAttribute('data-theme', savedTheme);
} else {
// Check system preference
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.setAttribute('data-theme', 'dark');
}
}
})();
</script>
<script>
// Suppress network error messages in console for cleaner output during latency testing
// Save original console.error for debugging purposes if needed
window.originalConsoleError = console.error;
console.error = function() {
const args = Array.from(arguments);
const message = args.join(' ');
// Suppress common network errors that are expected during latency testing
if (message.includes('404') ||
message.includes('The requested content does not exist') ||
message.includes('Failed to fetch') ||
message.includes('NetworkError') ||
message.includes('CORS')) {
return; // Don't log these expected errors
}
// Log all other errors normally
window.originalConsoleError.apply(console, arguments);
};
</script>
<script src="index.min.js"></script>
</body>
</html>