-
Notifications
You must be signed in to change notification settings - Fork 3
/
index2.html
163 lines (155 loc) · 6.44 KB
/
index2.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
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-150378045-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-150378045-4');
</script>
<title>Wave</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous"
/>
<script src="https://kit.fontawesome.com/2c97066e56.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="/assets/css/app.css" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js" integrity="sha512-v8ng/uGxkge3d1IJuEo6dJP8JViyvms0cly9pnbfRxT6/31c3dRWxIiwGnMSWwZjHKOuY3EVmijs7k1jz/9bLA==" crossorigin="anonymous"></script>
<script type="module" src="/assets/js/rtc.js"></script>
<script type="module" src="/assets/js/events.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/7.3.0/adapter.min.js"
integrity="sha256-2qQheewaqnZlXJ3RJRghVUwD/3fD9HNqxh4C+zvgmF4="
crossorigin="anonymous"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.min.js"></script>
<script src="https://cdn.rawgit.com/yahoo/xss-filters/master/dist/xss-filters.js"></script>
<script src="/assets/js/autolink.js"></script>
</head>
<body>
<nav class="navbar fixed-top bg-light rounded-0 d-print-none">
<div class="text-black font-weight-bold">Wave</div>
<div class="pull-right room-comm">
<button
class="btn btn-sm rounded-0 btn-no-effect"
id="toggle-video"
title="Hide Video"
>
<i class="fa fa-video text-black"></i>
</button>
<button
class="btn btn-sm rounded-0 btn-no-effect"
id="toggle-mute"
title="Mute"
>
<i class="fa fa-microphone-alt text-black"></i>
</button>
<button
class="btn btn-sm text-black pull-right btn-no-effect"
id="toggle-chat-pane"
>
<i class="fa fa-comment"></i>
<span
class="badge badge-danger very-small font-weight-lighter"
id="new-chat-notification"
hidden
>New</span
>
</button>
<button class="btn btn-sm rounded-0 btn-no-effect text-black" id="leave-chat">
<a
href="/dashboard"
class="text-black text-decoration-none"
><i class="fa fa-sign-out-alt text-black" title="Leave"></i
></a>
</button>
</div>
</nav>
</div>
</div>
<div class="container-fluid room-comm">
<div class="row">
<div class="col-md-12 main" id="main-section">
<div class="row mb-2" id="videos"></div>
</div>
<div
class="chat-col d-print-none mb-2 bg-dark chat-opened"
id="chat-pane"
>
<div class="row d-flex justify-content-center">
<div class = "col-6">
<div class="col-12 text-center h2 mb-3">
<span class="badge badge-success" id="name1"></span></span>
</div>
<div class="container">
<div class="row">
<div class="col-12 text-center">
<strong>Program: </strong>
<span class="badge badge-light" id="program1"></span>
</div>
</div>
</div>
</div>
<div class = "col-6">
<div class="col-12 text-center h2 mb-3">
<span class="badge badge-success" id="name2"></span></span>
</div>
<div class="container">
<div class="row">
<div class="col-12 text-center">
<strong>Program: </strong>
<span class="badge badge-light" id="program2"></span>
</div>
</div>
</div>
</div>
<div class="col-12 text-center" style= "margin-top: 1.2vh; font-size: 1.2rem;">
<strong> Common Interests:</strong>
<span class="badge badge-primary" id = "interest1"></span>
<span class="badge badge-primary" id = "interest2"></span>
<span class="badge badge-primary" id = "interest3"></span>
<span class="badge badge-primary" id = "interest4"></span>
<span class="badge badge-primary" id = "interest5"></span>
</div>
</div>
<div id="chat-messages"></div>
<div class="row">
<textarea
id="chat-input"
class="form-control rounded-0 chat-box border-info"
rows="3"
placeholder="Type here..."
></textarea>
</div>
</div>
</div>
<div class="row">
<video
class="local-video mirror-mode"
id="local"
volume="0"
autoplay
muted
></video>
</div>
</div>
<script>
window.addEventListener("beforeunload", function (e) {
e.preventDefault();
e.returnValue = "";
const rawResponse = fetch("/users/closeTab", {
method: "GET",
headers: {
Accept: "application/json",
},
});
});
</script>
</body>
</html>