-
Notifications
You must be signed in to change notification settings - Fork 47
/
index.html
179 lines (157 loc) · 8.75 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
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Divanshu Singh - Thapar University" >
<link rel="icon" href="images/favicon.png">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Baloo" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<title>ISL : Avatar Page</title>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta http-equiv="Access-Control-Allow-Methods" content="GET">
<link rel="stylesheet" href="css/cwasa.css" />
<script type="text/javascript" src="js/allcsa.js"></script>
<script language="javascript">
// Initial configuration
var initCfg = {
"avsbsl" : ["luna", "siggi", "anna", "marc", "francoise"],
"avSettings" : { "avList": "avsbsl", "initAv": "marc" }
};
// global variable to store the sigmal list
var sigmlList = null;
// global variable to tell if avatar is ready or not
var tuavatarLoaded = false;
</script>
<script type="text/javascript">
function submit()
{
document.getElementById("startrunning").click(); // Simulates button click
document.submitForm.submit(); // Submits the form without the button
}
</script>
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
<script language="javascript" src="js/animationPlayer.js"></script>
<style type="text/css">
body {
overflow-y: hidden !important;
overflow-x: hidden !important;
}
</style>
</head>
<body onload="CWASA.init(initCfg);" >
<nav>
<div class="nav-wrapper" id="navbar">
<!-- <a href="https://pec.ac.in" class="brand-logo"><img src="images/peclogo.png" style="margin-top: 10%; padding: 2%; width: 70%; height:100%;"></a> -->
<!-- <img src="images/enchulettalogo.png" style="padding: 1%; width: 10%; height: 115%; margin-left: 47%;"> -->
<a href="https://pec.ac.in" class="brand-logo" style="position: absolute;left: 2%;"><img src="images/peclogo.png" style="margin-top: 10%;padding: 2%;height: 100%;"></a>
<img src="images/enchulettalogo.png" style="height: 100%; margin-left: auto;margin-right: auto;display: block">
</div>
</nav>
<div class="outer-container" style="position: relative; height: 100%; width: 100%;">
<div id="loading" class="container">
<div class="row text-center"><span style="background-color:#ebf8a4; padding: 8px 20px;">Loading ... Please wait...</span></div>
</div>
<!-- left side division starts here -->
<div style="position: absolute;top: 50%;-webkit-transform: translateY(-50%);-ms-transform: translateY(-50%);transform: translateY(-50%);width: 20%;padding:15px;">
<form id="inputText">
<input id="dom-target" type="text" name="firstname" hidden><br>
</form>
<div class="row center" >
<div id="speech_recognizer">
<a id="speech_recognizer" onclick="startDictation()" style="height: 45%;" class="btn-floating btn-large waves-effect red"><i class="large material-icons">mic</i></a>
<p class="text-center" style="margin-top: 15px; font-size: 20px;">Click to Speak</p>
</div>
<div id="speech_loader">
<img src="images/speechloader.gif" style="width: 80%; height:80%;">
<p class="text-center" style=" font-size: 18px;">Listening...</p>
</div>
<div id="loader">
<img src="images/loader.gif" class="text-center" style="width: 100%; height: 100%;">
<p class="text-center" style=" font-size: 18px;">Processing...</p>
</div>
</div>
</div>
<div style="position: absolute;top: 50%;left: 0;right: 0;margin: auto;-webkit-transform: translateY(-50%);-ms-transform: translateY(-50%);transform: translateY(-50%);box-sizing: border-box;width: 50%;height: 85%;padding: 15px;" >
<table align="center" style="width:100%; height:100%;" >
<tr align="center">
<!--================================================================-->
<!-- CWA signing avatar panel 0 -->
<!--================================================================-->
<!-- Replaced by an avatar panel -->
<!--================================================================-->
<td width="100%" height="90%" >
<div class="CWASAAvatar av0" align="center" ></div>
</td>
<!--================================================================-->
</tr>
<tr>
<td>
<p class="alert-warning text-center" style="padding:5px; font-size:20px; font-weight:bold;" id="textHint"></p>
</td>
</tr>
<tr style="display:none;">
<td align="center">
<span class="CWASAAvMenu av0" ></span>
<input type="button" value="Sign" class="bttnPlaySiGMLURL av0" />
<input type="button" value="Stop" class="bttnStop av0" />
<span class="CWASASpeed av0" ></span>
<br/>
<span style="font-size: 90%;" >
Sign/Frame:
<input class="txtSF av0" value="0/0" type="text">
Gloss:
<input class="txtGloss av0" value="[none]" type="text">
</span>
<!-- CachedSiGML URL -->
<input type="text" id="URLText" class="txtSiGMLURL av0 undisplayed" value="" />
<script language="text/javascript">
// Set default sign
setSiGMLURL("SignFiles/hello.sigml");
</script>
</td>
</tr>
</table>
</div>
<div style="width: 20%;right: 3%;position: absolute;top: 50%;-webkit-transform: translateY(-50%);-ms-transform: translateY(-50%);transform: translateY(-50%);">
<div id="speech" style="margin-top:10px; border-top:3px solid black;">
<br><strong><span id="speech_text" style="font-size: 18px;">Speech</span></strong></br>
<div><span id="speech_"></span></div>
</div>
<div class="row">
</div>
<br/>
<div style="margin-top:10px; border-top:3px solid black;">
<br><strong><span id="isl_text" style="font-size: 18px;">Indian Sign Language</span></strong></br>
<div id="isl"></div>
</div>
<br/>
<div id="debuggercontainer" style="margin-top:10px; border-top:3px solid black;" hidden>
<br><strong><span id="debugger_text">Debugger</span></strong></br>
<div id="debugger"></div>
</div>
</div>
<!-- left side division ends here -->
<script type="text/javascript" src="js/player.js"></script>
<script type="text/javascript" src="js/sigmlFiles.json"></script>>
<script type="text/javascript" src="js/handler.js"></script>
</div>
</body>
</html>