-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathidentify-and-treat.html
113 lines (95 loc) · 3.93 KB
/
identify-and-treat.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
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Identify Tinnitus Frequency</title>
<meta name="description" content="Allows users to locate their tinnitus frequency.">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css" />
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="javascripts/identify-and-treat.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Home</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<!--
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active">
<a href="identify.html">Identify</a>
</li>
<li>
<a href="treat.html">Treat</a>
</li>
</ul>
</div>
-->
</div>
</nav>
<div class="container">
<header>
<h1>Identify and Treat</h1>
</header>
<section>
<h2>Instructions for use</h2>
<p>
First, use the tone generator to identify the frequency of your tinnitus.
Try to find a tone that matches as close as possible and then switch to treatment mode.
You will hear sets of 12 tones followed by short silences; both the tones and the silences are important parts of the treatment.
The tones should be evenly distributed above and below your tinnitus' frequency.
</p>
<p>
This page automatically stores your settings on your computer.
</p>
</section>
<section>
<div>
<button id="toneGenButton" onclick="app.switchMode('tone')">Switch to tone generator</button>
<button id="treatButton" onclick="app.switchMode('acrn')">Switch to treatment mode</button>
<button id="offButton" onclick="app.switchMode('off')">Switch off</button>
</div>
<div>
<label for="toneFrequencySlider">Frequency</label>
<input id="toneFrequencySlider" name="toneFrequencySlider" type="range" max="20000" min="0" value="440" step="10" onchange="app.updateFrequency()"/>
<p>Selected frequency: <span id="selectedFrequencySpan">440</span>Hz</p>
<label for="volumeSlider">Volume</label>
<input id="volumeSlider" name="volumeSlider" type="range" max="1" min="0" value="0.05" step="0.01" onchange="app.updateVolume()"/>
</div>
</section>
<footer>
<p>
</p>
</footer>
</div>
<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');
ga('create', 'UA-71489802-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>