-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost.html
67 lines (61 loc) · 2.57 KB
/
host.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/host-style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">
<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script>
<script src="./scripts/vue.min.js"></script>
<script src="https://unpkg.com/peerjs@1.3.1/dist/peerjs.min.js"></script>
<script src="./scripts/host-peer.js" defer></script>
<script src="./scripts/host-app.js" defer></script>
<title>QB Practice</title>
</head>
<body>
<div id="app">
<div v-show="!join" @click="joinRoom" class="click-to-join">Click to open room!</div>
<div class="supreme-container">
<div class="main-container">
<div v-show="chatboxShow" class="chatbox-container">
<div class="chatbox">
<div class="chat-header">Chat</div>
<div class="divider"></div>
<div class="chat-messages"></div>
<div class="chat-controls">
<input v-on:keydown.enter="sendChat" type="text" name="chat-input" id="chat-input">
<button @click="sendChat" id="chat-send">Send</button>
</div>
</div>
</div>
<div class="frame-container">
<div id="frame-cover">
<div>
<div>BUZZ!</div>
<div id="who-buzzed"></div>
</div>
</div>
<iframe v-show="!tabTwo" src="https://collegiate.quizbowlpackets.com/" id="hsquizbowl"></iframe>
<iframe v-show="tabTwo" src="https://collegiate.quizbowlpackets.com/" id="hsquizbowl-2"></iframe>
<div class="frame-controls">
<button @click="switchTab" id="switch-frames">
<span v-show="!tabTwo">View Tab 2</span>
<span v-show="tabTwo">View Tab 1</span>
</button>
<button @click="resetFrame" id="reset-frames">QBPackets Home</button>
</div>
</div>
</div>
<div class="bottom-container">
<div><button @click="toggleChat">Chat</button></div>
<div><span id="room-info">{{ user }}'s Practice Room ({{ code }})</span></div>
<div><button @click="clearBuzzers" id="clear-buzzer">Clear Buzzer</button></div>
</div>
</div>
<audio style='display: none' id="team-1-buzzer" preload="auto">
<source src="./assets/buzzer-1.wav" type="audio/wav">
</audio>
</div>
</body>
</html>