-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhearingtest.html
More file actions
383 lines (277 loc) · 11.2 KB
/
Copy pathhearingtest.html
File metadata and controls
383 lines (277 loc) · 11.2 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Hearing Test - Online Tone Generator 2.0 - Free, Quick, No Sign Up Required.</title>
<meta name="viewport" content="initial-scale=1">
<script async src="https://cdn.fuseplatform.net/publift/tags/2/3547/fuse.js"></script>
<link rel="shortcut icon" type="image/png" href="favicon.png">
<link href="css/main.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z8TTZXQT2S"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Z8TTZXQT2S');
</script>
<style>
/* Styles for publift */
body {
margin-bottom:100px;
}
#wrapper {
max-width: 1100px;
}
@media only screen and (max-width: 1868px) {
.fuse-sidebar {
width:160px!important;
}
}
@media only screen and (max-width: 1700px) {
.fuse-sidebar {
width:160px!important;
}
#wrapper {
max-width: 1000px;
}
}
@media only screen and (max-width: 1423px) {
#wrapper {
max-width: 1100px;
}
.fuse-sidebar {
display:none!important;
}
}
</style>
</head>
<body class="">
<div class="site-outer-wrapper" style="max-width: 1900px;margin: 0 auto;text-align:center;">
<div class="fuse-sidebar" style="width:200px;float:left;width: 300px;position: sticky;top:20px;margin:20px;display:inline-block;">
<div data-fuse="23080447251"></div>
</div>
<div id="wrapper" style="display: inline-block;text-align:left;">
<div id="navMenu">
<ul id="nav" class=''>
<li><a href="hearingtest.html#" class="js-menu-toggle">☰ Show menu</a></li>
<li>
<a class="" href="index.html">Home </a>
</li>
<li>
<a class="" href="multiple-tone-generator.html">Multiple Tone Generator </a>
</li>
<li>
<a class="" href="pitch-shifter.html">Pitch Shifter </a>
</li>
<li>
<a class="" href="time-stretcher.html">Time Stretcher </a>
</li>
<li>
<a class="" href="voice-generator.html">Voice Generator </a>
</li>
<li>
<a class="" href="voice-recorder.html">Voice Recorder <span class="new">NEW</span></a>
</li>
<li>
<a class="" href="frequency-sweep-generator.html">Sweep Generator </a>
</li>
<li>
<a class="" href="tuning.html">Instrument Tuning </a>
</li>
<li>
<a class="" href="subwoofer.html">Subwoofer Testing </a>
</li>
<li>
<a class="current" href="hearingtest.html">Hearing Test </a>
</li>
<li>
<a class="" href="noise.html">Noise Generator </a>
</li>
<li>
<a class="" href="binauralbeats.html">Binaural Beats </a>
</li>
<li>
<a class="" href="432Hz.html">432Hz Frequency </a>
</li>
<li>
<a class="" href="dtmf.html">DTMF Signals </a>
</li>
<li>
<a class="" href="metronome.html">Metronome </a>
</li>
<li>
<a class="" href="pips.html">The Pips </a>
</li>
<li>
<a class="" href="theory.html">Acoustic Theory </a>
</li>
<li class="">
<a class="" href="shop.html">Shop <span class="new">NEW</span></a>
</li>
<li class="">
<a class="" href="about.html">About </a>
</li>
<li>
<a target="_blank" rel="noreferrer" href="https://ko-fi.com/onlinetonegenerator" class="last">Support the developer <span style="font-family:sans-serif;">☕</span></a>
</li>
</ul>
<script>
$(".js-menu-toggle").click(function(e){
e.preventDefault();
$nav = $(this).parents("#nav");
if ($nav.hasClass("js-open")){
// $nav.height($(this).outerHeight());
$(this).html("☰ Show menu");
} else {
// $nav.height("auto");
$(this).html("☰ Close menu");
}
$nav.toggleClass("js-open");
});
</script>
</div>
<div id="mainContent">
<h1><a href='index.html'><!-- <img src="/img/Speaker_Icon-tilted.png" alt=""> -->Online Tone Generator 2.0</a></h1>
<p class="tagline"><strong>The 60 second online hearing test. It's free, simple and no sign up required.</strong></p>
<script src="js/jquery.simpleplayer.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
var settings = {
// progressbarWidth: '100%',
progressbarHeight: '5px',
progressbarColor: '#22ccff',
progressbarBGColor: '#ffffff',
defaultVolume: 1
};
jQuery(".player").player(settings);
$(".simpleplayer-play-control").click(function(){
doTimer();
});
$(".simpleplayer-stop-control").click(function(){
stopCount();
});
});
</script>
<p>
How high can you hear? This 60 second tone helps you determine the highest frequency
your ears can detect. The range of human hearing is typically quoted as being from 20-20,000Hz, but age
and prolonged exposure to loud sounds can significantly lower your ability to hear high frequencies.
For best results, perform the test at a comfortable volume in a quiet environment and using good quality headphones.
Feel free to add your result to the comments below, indicating your age and whether you've been exposed to
loud sounds over the course of your life.
</p>
<p>
Please note, due to the large number of uncontrollable variables involved here, this is not a scientifically rigorous test, but a rough indicator.
</p>
<!-- <p><a href="hearingtest-results.html">Click here</a> to visit the <a href="hearingtest-results.html">hearing test results page</a>.</p> -->
<p><strong>Attention!</strong> Always make sure headphones/speakers are set to a low volume to avoid damage to hearing or equipment.
When the tone becomes too faint to hear, stop the test: do not increase the volume of your headphones/speakers.
</p>
<div class="fuse-in-content" style="margin:20px 0;min-height: 250px;max-width:100%;">
<!-- GAM 71161633/OLGEN_onlinetonegenerator/incontent_1 -->
<div data-fuse="23080803961"></div>
</div>
<div style='max-width:750px;margin:0 auto;'>
<style type="text/css">
.ad-wrapper {
width: 320px;
height: 50px;
}
@media (min-width:500px) {
.ad-wrapper {
width: 468px;
height: 60px;
}
}
@media (min-width:980px) {
.ad-wrapper {
width: 728px;
height: 90px;
}
}
</style>
</div>
<div class="generator-ad-wrapper">
<div id="hearingTester">
<p style="text-align:center"> Click the play button to begin the test. <br/><br/> </p>
<!-- The container for the interface can go where you want to display it. Show and hide it as you need. -->
<audio class="player" id="sweep">
<source src="downloads/hearing_test/sweep.mp3" type="audio/mpeg" />
<source src="downloads/hearing_test/sweep.ogg" type="audio/ogg" />
Your browser is not compatible with the hearing test. Please download the latest
version and try again.
</audio>
<div id="result" style="display:block">
<p style="text-align:center"> The current frequency is: <br/> </p>
<form class="sweep-form">
<input type="text" class="input--frequency" id="txt" value="0"/><p id="units">Hertz</p>
</form>
<div class="clear"></div>
</div>
<script type="text/javascript">
var elapsed = '0.0';
var t;
var timer_is_on=0;
function timedCount() {
//var time = new Date().getTime() - start;
var time = document.getElementById('sweep').currentTime;
if (time < 0) {time=time*-1};
time = (Math.round(time*Math.pow(10,3))/Math.pow(10,3)).toFixed(3);
var freq = Math.round(time*333.325);
document.getElementById('txt').value= freq;
t=setTimeout('timedCount()',50);
}
function ended(){document.getElementById('txt').value= 20000}
function doTimer() {
if (timer_is_on==0) {
start = new Date().getTime();
timer_is_on=1;
timedCount();
}
}
function stopCount() {
clearTimeout(t);
timer_is_on=0;
}
function resetCount() {
document.getElementById('txt').value='0.0';
}
</script>
</div>
</div>
<div class="fuse-in-content" style="margin:20px 0;min-height: 250px;max-width: 100%;">
<!-- GAM 71161633/OLGEN_onlinetonegenerator/incontent_2 -->
<div data-fuse="23081403308"></div>
</div>
<p>How does your hearing compare to everyone else? Read the comments below or <a href="hearingtest-results.html">visit the hearing test results page</a>.</p>
</div>
<div id="footer">
Online Tone Generator utilises HTML5 and the Web Audio API. It is optimized for use with the latest versions of Chrome, Safari, Firefox and Microsoft Edge.
<br />
© onlinetonegenerator.github.io <a href="privacy-policy.html">Privacy Policy.</a>
</div>
</div><!-- End of main content wrapper -->
<div class="fuse-sidebar" style="display:inline-block;vertical-align:top;width: 300px;position: sticky;top:20px;margin:20px;">
<div data-fuse="23080803958"></div>
</div>
</div>
<p style="clear:both"></p>
</div>
<script src='js/tonegenerator.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
if (window.location.host != 'localhost:4000') {
ga('create', 'UA-17960919-2', 'onlinetonegenerator.github.io');
ga('send', 'pageview');
window.onerror = function(message, file, line){
ga('send', 'event', 'JavaScript Error', message, file + ": Line "+ line, { 'nonInteraction': 1 });
}
}
</script>
</body>
</html>