-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (57 loc) · 2.1 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
<!DOCTYPE html>
<html>
<head>
<title>Peer it to me</title>
<link href="/bower_components/normalize.css/normalize.css" rel="stylesheet" type="text/css">
<link href="/css/skeleton.css" rel="stylesheet" type="text/css">
<link href="/css/utility.css" rel="stylesheet" type="text/css">
<link href="/css/spinner.css" rel="stylesheet" type="text/css">
<link href="/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="content" class="container"></div>
<script id="loading-template" type="text/x-handlebars-template">
<div id="loading" class="text-center">
<div class="loader"></div>
<h1>Loading...</h1>
</div>
</script>
<script id="room-template" type="text/x-handlebars-template">
<div class="text-center">
<h3>Room name: {{room.id}}</h3>
<button id="another-room" class="button-primary" onclick="peerittome.showRoomChangeForm();">Join another room</button>
<form id="room-form">
<div class="row">
<div class="nine columns">
<input id="room-name" class="u-full-width" type="text" placeholder="Type room name">
</div>
<div class="three columns">
<button class="button-primary" onclick="peerittome.changeRoom(); return false;">Join</button>
</div>
</div>
</form>
</div>
<div id="you" class="client text-center">
<img src="/img/avatar.jpg" class="avatar" alt="You">
<h6>{{room.you.id}}</h6>
</div>
<div class="row">
{{#each room.clients}}
<div class="four columns">
<div class="client text-center" data-peerjsid="{{peerjsId}}">
<img src="/img/avatar.jpg" class="avatar" alt="You">
<h6>{{id}}</h6>
<input type="file" id="file-{{id}}" name="file" onchange="peerittome.handleFileSelect(this);">
</div>
</div>
{{/each}}
</div>
</script>
<script src="/socket.io/socket.io.js"></script>
<script src="/bower_components/peerjs/peer.min.js"></script>
<script src="/bower_components/handlebars/handlebars.min.js"></script>
<script src="/js/client.js"></script>
<script src="/js/room.js"></script>
<script src="/js/peerittome.js"></script>
</body>
</html>