-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathteacher.ejs
109 lines (99 loc) · 4.16 KB
/
teacher.ejs
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Teacher - Room
<%= room.roomId %>
</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
<link href="/css/app.css" rel="stylesheet" type="text/css">
<link href="/css/teacher.css" rel="stylesheet" type="text/css">
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/fbjkpogjjhklbffmfooofjgablhmcnhn">
</head>
<body>
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
<a class="navbar-brand" href="/teacher/<%= room.roomId %>">Teacher</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/student/<%= room.roomId %>">Join as student</a>
</li>
</ul>
<a href="/" class="btn btn-outline-secondary">Exit</a>
</div>
</nav>
<div class="row controls-container">
<div class="col-3">
<h2>Controls</h2>
<div class="row">
<div class="col">
<form>
<div class="form-group">
<button id="camera-toggle" class="btn btn-outline-primary btn-block">Start Camera</button>
<button id="screen-toggle" class="btn btn-outline-primary btn-block">Share Screen</button>
<button id="chrome-ext-install" class="btn btn-outline-secondary btn-block">Install screenshare extension</button>
</div>
<div class="form-group">
<button id="join" class="btn btn-success btn-block" disabled="disabled">Join</button>
<button id="exit" class="btn btn-outline-danger btn-block" disabled="disabled">Exit</button>
</div>
</form>
</div>
</div>
</div>
<div class="col-9">
<h2>Stage</h2>
<div id="stage" class="row clearfix">
<div id="teacher-camera" class="col-4 clearfix">
<h3>Teacher's camera</h3>
</div>
<div id="teacher-screen" class="col-4 clearfix">
<h3>Teacher's screen</h3>
</div>
<div id="students-on-stage" class="col-4 clearfix">
<h3>Students on stage</h3>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<h2>Students</h2>
<div id="students" class="row"></div>
</div>
</div>
</div>
<div id="modal" class="modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var room = JSON.parse('<%- JSON.stringify(room) %>')
</script>
<script src="/vendor/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>
<script src="/js/teacher.js"></script>
</body>
</html>