-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
74 lines (65 loc) · 2.6 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!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">
<title>Lola's Web Phone!</title>
<meta property="og:title" content="Teleprompter!">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@lady_ada_king">
<meta name="twitter:creator" content="@lady_ada_king">
<meta property="og:url" content="https://teleprompter.glitch.me">
<meta property="og:description" content="Cast your computer to your phone or tablet to use it in a teleprompter">
<meta name="description" content="Cast your computer to your phone or tablet to use it in a teleprompter"/>
<!-- <meta property="og:image" content="https://cdn.glitch.com/1695682e-08d3-41c8-a322-1e235b5782e1%2Fimage.png?v=1561449954420"> -->
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/index.css">
<link rel="manifest" href="/manifest.webmanifest">
<!-- import the webpage's javascript file -->
<script src="https://unpkg.com/[email protected]/dist/peerjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/qrcode.min.js"></script>
<script src="script.js" defer></script>
</head>
<body>
<div class="container">
<h1>Phone a friend</h1>
<p id="caststatus" class="big">
Connecting...
</p>
<p>
Please use headphones!
</p>
<button class="call-btn">
Call
</button>
<section class="call-container" hidden>
<div class="audio-container">
<p>You're automatically muted, unmute yourself!</p>
<audio controls id="remoteAudio" muted="true"></audio>
<audio controls id="localAudio" muted="true"></audio>
</div>
<button class="hangup-btn">
Hang up
</button>
</section>
</div>
<section class="modal" hidden>
<div id="close">
close
</div>
<div class="inner-modal">
<label>Give us your friend's device ID</label>
<input placeholder="Enter your friend's device ID" aria-colcount="10">
<button class="connect-btn" >
Connect
</button>
</div>
</section>
<script type="module">
import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate';
const el = document.createElement('pwa-update');
document.body.appendChild(el);
</script>
</body>
</html>