-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (78 loc) · 3.29 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
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>viri</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport"
content="width=device-width, height=device-height,user-scalable=no, initial-scale=1.0" />
<link rel="stylesheet" href="default.css"/>
<!-- PWA stuff -->
<!-- <link rel="manifest" href="./manifest.json" /> -->
<!-- <link rel="manifest" href="isolated-app://manifest.json" /> -->
<!-- <link rel="shorcut icon" href="./favicon.png" type="image/x-icon" /> -->
<!-- <link rel="apple-touch-icon" href="./favicon.png" /> -->
</head>
<body>
<div id="start">
<div id="create">
You can <button id="createRoom">Create a Room</button> for others to join.</div>
<div id="offer" style="display: none">
Now email the 'Offer' (on your `clipboard`) to your friend.<br/>
And once they respond,
<input id="answer_paste" placeholder="Paste their 'Answer' here."/><br/>
to <button id="joinRoomWithAnswer">Join the Room</button>
</div>
<div id="or">
<hr/>
OR
<hr/></div>
<div id="answer">
<input id="offer_paste" placeholder="Paste an Offer you received"/> to
<button id="joinRoomWithOffer">Join a Room</button>
<div id="email_answer" style="display: none">
Now email your clipboard back to the creator.</div>
</div>
<hr/>
<div id="clipper">
In case the clipboard is not working:
<input id="clip" placeholder="Waiting..."/>
<!-- <textarea id="clip" rows="10" cols="50" onclick="this.focus();this.select()" readonly="readonly"> -->
<!-- Waiting... -->
<!-- </textarea> -->
</div>
<a href="https://github.com/Patrick-T-Anderson/viri">Sources</a>
<div id="chat-room">
<div class="row">
<div class="column">
<video id="self-view" autoplay controls width="320" height="240"> </video>
</div>
<div class="column">
<video id="remote-view" autoplay controls width="320" height="240"></video>
</div>
</div>
<!-- <div id="view-buttons"> -->
<!-- <button class="view-button" id="share-button">share?</button> -->
<!-- <button class="view-button" style="display: none" id="stop-share-button"></button> -->
<!-- <button class="view-button" id="share-file-button">share file</button> -->
<!-- </div> -->
</div>
</div>
<!-- <div id="select-file-dialog" style="display: none;"> -->
<!-- <div id="dialog-content"> -->
<!-- <div id="select-file"> -->
<!-- <div id="label">Select a file:</div> -->
<!-- <input type="file" id="select-file-input"/> -->
<!-- </div> -->
<!-- <div id="dialog-footer"> -->
<!-- <button id="ok-button">Ok</button> -->
<!-- <button id="cancel-button" class="cancel-button">Cancel</button> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
<!-- <div id="installPWA">Install PWA</div> -->
<!-- <script src="./pwa-handler.js"></script> -->
<script src="./adapter.js"></script>
<script src="./index.js"></script>
</body>
</html>