-
Notifications
You must be signed in to change notification settings - Fork 0
/
lobby.html
49 lines (44 loc) · 1.46 KB
/
lobby.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VideoCall</title>
<link rel="icon" type="image/x-icon" href="icon/946370-removebg-preview-removebg-preview.png" >
<link rel="stylesheet" href="lobby.css">
</head>
<body onload="myFunction()">
<main id="lobby-container">
<div id="form-container">
<div id="form__container__header">
<p>Create OR join a Room</p>
</div>
<div id ="form__content__wrapper">
<form id="join-form">
<input type="text" name="invite_link" required/>
<input type="submit" value="Join Room">
<div id="loader">
<div class="spinner">
<div class="circle">
</div>
</div>
</div>
</form>
</div>
</div>
</main>
</body>
<script>
let form = document.getElementById('join-form')
form.addEventListener('submit', (e)=>{
e.preventDefault()
let inviteCode = e.target.invite_link.value
window.location = `index.html?room=${inviteCode}`
})
let preloader = document.getElementById("loader");
function myFunction(){
preloader.style.display = 'none'
}
</script>
</html>