-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 1.8 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
<html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="Description" content="Web Meetings for Durham IT that use Jitsi">
<title>Web Conference for Durham IT</title>
<style>
#meeting_id {
display: inline-block;
width: 90%; height: 75px;
line-height: 75px; font-size: 25px;
text-align: center;
margin: 15px;
}
#join_now {
display: inline-block;
font-size: 25px; line-height: 75px;
font-weight: bold;
height: 75px; width: 90%;
margin: 15px;
}
</style>
</head>
<body>
<div id="setup_box" style="display: none; width: 100%; text-align: center;">
<img src="bull_logo.png" style="max-width: 25%" alt="Durham IT">
<h1>Welcome to your Durham IT Web Meeting</h1>
<form onsubmit="location.assign('?meeting='+document.getElementById('meeting_id').value.replace(/\s/g, '')); return false;">
<label for="meeting_id">Please Input a Meeting ID</label><br>
<input type="text" id="meeting_id" placeholder="Your Meeting ID">
<input type="submit" id="join_now" value="Join Now">
</form>
</div>
<script src="https://meet.jit.si/external_api.js"></script>
<script>
const meeting_url = new URL(window.location.href);
const meeting_string = meeting_url.searchParams.get("meeting");
if(meeting_string) {
var domain = "meet.jit.si";
var options = {
roomName: "Durham-IT-"+meeting_string,
}
var api = new JitsiMeetExternalAPI(domain, options);
api.executeCommand('subject', 'Durham IT Web Conference (Powered by Jitsi)');
} else {
document.getElementById('setup_box').style.display = 'block';
}
</script>
</body>
</html>