-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
166 lines (155 loc) · 6.08 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
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
<!DOCTYPE html>
<!--
* Copyright (c) 2014, Intel Corporation, Jaguar Land Rover
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>DNA Voiceprint</title>
<meta name="viewport" content="width=1080, height=1920, user-scalable=no" />
<link rel="stylesheet" href="./DNA_common/css/style.css" />
<link rel="stylesheet" href="./css/voiceprint.css" />
<script type="text/javascript" src="./DNA_common/components/jQuery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="./DNA_common/js/init.js"></script>
<script type="text/javascript">
/*includeJs("./DNA_common/js/predefAppModel.js");
includeJs("./DNA_common/js/installedApps.js");
includeJs("./DNA_common/js/keyControl.js");
includeJs("./DNA_common/js/actionCatcher.js");
includeJs("./DNA_common/js/HomeScreenMain.js");*/
includeJs("./js/main.js");
</script>
<script type="text/javascript">
$(document).ready(function() {
function menuButton() {
$("#go-home").show();
}
$("#go-home").click(function() {
$("#mainMenu").show();
$('#new-profile-screen, #load-profile-screen, #delete-profile-screen, #new-profile-screen, #modal').hide();
$(this).hide();
$("#scanReveal").css('top: 0px');
});
$("#createNew").click(function() {
$("#new-profile-screen").show();
$('#mainMenu').hide();
menuButton();
});
$("#recallExisting").click(function() {
$("#load-profile-screen, #modal").show();
$('#mainMenu').hide();
menuButton();
});
$("#deleteExisting").click(function() {
$("#delete-profile-screen").show();
$('#mainMenu').hide();
menuButton();
});
$("#exit-modal").click(function() {
$("#modal").hide();
});
$('.male-avatar').click(function() {
$('.female-avatar').addClass('dim');
$('.male-avatar').removeClass('dim');
$('.female-avatar').val('');
});
$('.female-avatar').click(function() {
$('.male-avatar').addClass('dim');
$('.female-avatar').removeClass('dim');
$('.male-avatar').val('');
});
$(".female-avatar, .male-avatar").focusout(function() {
$('.female-avatar, .male-avatar').removeClass('dim');
$('.female-avatar, .male-avatar').val('');
$("#profile-message").text("Select an Avatar for your Profile");
});
$(".female-avatar, .male-avatar").click(function() {
$("#profile-message").text("Enter up to 12 Characters then select Create Profile");
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#exit-modal").click(function() {
$("#scanReveal").animate({
top: "+=1900px",
}, 6900);
});
});
</script>
</head>
<body>
<div id="top-bar"></div>
<div id="center-panel">
<div id="app">
<div id="clockElement"></div>
<div class="flex-item">
<button type="button" id="go-home" class="menu button-blue" style="display:hidden;">Menu</button>
<div id="mainMenu">
<h2>Voiceprint Options</h2>
<div id="menuButtons">
<button type="button" id="recallExisting" class="button-green">Open Profile</button>
<button type="button" id="createNew" class="button-yellow">Create New Profile</button>
<button type="button" id="deleteExisting" class="button-orange">Delete Profile</button>
</div>
</div>
<div id="new-profile-screen">
<div class="new-profile-message">
<p id="profile-message">Select an Avatar for your Profile</p>
</div>
<input type="text" maxlength="12" class="male-avatar">
<input type="text" maxlength="12" class="female-avatar">
<button type="button" id="create-profile" class="create-profile">Create Profile</button>
</div>
<div id="load-profile-screen">
<div class="begin-recording-message">
<p id="begin-recording-message">Press the Microphone Icon to begin Recording.</p>
</div>
<div id="voiceprint-visual">
<p>VISUAL REPRESENTATION OF AUDIO INPUT GOES HERE</p>
</div>
<div id="record-button"></div>
</div>
<div id="delete-profile-screen">
<div class="delete-profile-message">
<p id="delete-user-message">Select the Record You Wish to Delete or Select DELETE ALL to Clear All Voiceprint Profiles.</p>
</div>
<ul>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
<li>Name Here!</li>
</ul>
</div>
<!-- Modal Demo -->
<div id="modal" class="hidden">
<div class="modal-content box-out-orange">
<div class="close-button"></div>
<h6>ATTENTION!</h6>
<p>Press Continue</p>
<button type="button" id="exit-modal">Continue</button>
</div>
</div>
</div>
</div>
<div id="bottom-bar" class="bottomPanel bottomPanelImg"></div>
</body>
</html>