-
Notifications
You must be signed in to change notification settings - Fork 14
/
breakout.ejs
73 lines (67 loc) · 3.1 KB
/
breakout.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Breakout 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/breakout.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
<a class="navbar-brand" href="/breakout/<%= room.roomId %>">Breakout Room</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="/teacher/<%= room.roomId %>">Join as teacher</a>
</li>
</ul>
<a href="/" class="btn btn-outline-secondary">Exit</a>
</div>
</nav>
<div class="row">
<div class="col">
<form id="join-form" class="form-inline">
<div class="input-group mb-2 mr-sm-2 mb-sm-0">
<div class="input-group-addon">Name</div>
<input id="user-name" type="text" class="form-control" placeholder="Your name here" autofocus>
</div>
<button id="join-room" type="submit" class="btn btn-primary">Join Breakout</button>
</form>
</div>
</div>
<div class="row">
<div id="controls" class="col-2 mb-4">
<div id="self-view" class="mb-1">
<!-- Own video is shown here -->
</div>
<div class="mb-2 mt-2"><img src="/dummy-chatbox.png" alt="Chatbox"></div>
<div class="mb-2 mt-2"><span id="elapsed-time"></span></div>
<a href="/student/<%= room.roomId %>" class="btn btn-outline-primary btn-block">← Return</a>
</div>
<div id="subscribers" class="col-10">
<!-- Subscribed videos appear here -->
</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="/vendor/opentok-layout.js"></script>
<script src="/js/breakout.js"></script>
</body>