-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (122 loc) · 5.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Look Here</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/styles.css" type="text/css" media="all">
</head>
<body>
<div class="modal fade in" id="myModalHorizontal" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div id="dialogBox" class="modal-dialog">
<div id="contenting" class="modal-content">
<h4 class="modal-title"> <b>Hi! This is a demo of how our app can help you track the attention levels
<br>
of your audience. For presentations (group tracking), select pdf option,
<br>
and for MOOC videos(individual tracking), select video option. </b>
</h4>
<br>
<label for="mode">Input Type</label><select id="mode" onchange="showDiv(this)">
<option value="pdf" class="bolden"> PDF </option>
<option value="video" class="bolden"> Video </option>
</select>
<br>
<input type="file" class="form-control" id="inputFile" placeholder="file"/>
<!--<label for="videosrc">Video Source</label>-->
<input type="text" class="form-control" placeholder="Enter Video Embed Code Here" id="videosrc"/>
<div class="modal-footer">
<button type="button" class="btn btn-success" id="startSession" data-dismiss="modal">
Start Session
</button>
</div>
</div>
</div>
</div>
<div class="modal fade in" id="myModalHorizontal2" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div id="dialogBox2" class="modal-dialog">
<div id="contenting2" class="modal-content">
<h4 class="modal-title">Results</h4>
<br>
<div id="results"></div>
<br/>
<div id="resultsBar"></div>
<br/>
<div class="modal-footer">
<button type="button" class="btn btn-success" id="dismissButton" data-dismiss="modal">
Dismiss
</button>
</div>
</div>
</div>
</div>
<div id="wholeContainer" class="container">
<div class="row">
<div class="col-md-4 customCol">
<div id="content2">
<div id="containerGraph">
<div id="graph"></div>
<br/>
Graph Will Appear After Collecting Minimum Number of Data Points
</div>
<br/>
<div class="contentArea">
<div class="camera">
<video autoplay="true" id="video" class="videoFeed" >Video stream not available.</video>
</div>
<canvas id="canvas"></canvas>
<br/>
<br/>
<!--<button type="button" class="btn btn-success" id="startButton">Click Here To Start Observation</button>-->
<button type="button" class="btn btn-danger" id="stopSession" >Click Here To Stop Observation</button>
<!-- <p id="timestamp"></p> -->
</div>
</div>
</div>
<div class="col-md-8 customCol">
<div id="pdfDiv">
<a href="#" id="prev" class="previous round">‹</a>
<a href="#" id="next" class="next round">›</a>
<a href="#" id="zoomIn" class="standard round">+</a>
<a href="#" id="zoomOut" class="standard round">-</a>
<span>Page: <span id="page_num"></span> / <span id="page_count"></span></span>
<br/>
<canvas id="the-canvas"></canvas>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js"> </script>
<script type="text/javascript" src=" https://npmcdn.com/pdfjs-dist/build/pdf.js"></script>
<script type="text/javascript" src="static/lib/plotly-latest.min.js"></script>
<script type="text/javascript" src="static/js/processFace.js"></script>
<script type="text/javascript" src="static/js/pdfMeta.js"></script>
<script type="text/javascript" src="static/js/plot.js"></script>
<script type="text/javascript" src="static/js/main.js"></script>
<script type="text/javascript">
// $(window).load(function() {
// $('#wholeContainer').hide();
var mode='pdf';;
$('#myModalHorizontal').modal('show');
document.getElementById('videosrc').style.display='none';
function showDiv(elem){
//console.log(elem.value);
mode=elem.value;
if(elem.value == 'pdf'){
document.getElementById('inputFile').style.display='block';
document.getElementById('videosrc').style.display='none';
// console.log("pdf");
}
else {
document.getElementById('inputFile').style.display='none';
document.getElementById('videosrc').style.display='block';
// console.log("video");
}
};
</script>
</body>
</html>