-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
97 lines (97 loc) · 3.31 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<script src="https://use.typekit.net/rvj6shm.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<link rel="stylesheet" href="/assets/css/bristolbronies.css">
<title>Severn Bronies Stream</title>
</head>
<body>
<section class="stream" data-stream>
<div class="stream__message">Awaiting input</div>
<iframe class="stream__iframe" data-stream-iframe allowfullscreen></iframe>
</section>
<section class="tweetstream" data-tweets>
<header class="tweetstream__header">
<h1 class="tweetstream__title">Tweets</h1>
<p class="tweetstream__subtitle">Tweet <strong>@severnbronies</strong> or <strong>#6Severn</strong> to appear here!</p>
</header>
<ul class="tweetstream__list" data-tweets-list>
<li class="tweetstream__item tweet tweet--faded">
<div class="tweet__container">
<div class="tweet__body">
<div class="tweet__content">
Any tweets mentioning <strong>@severnbronies</strong> or containing the hashtag <strong>#6Severn</strong> will appear here. Go on! Tweet! Do it right now!
</div>
<div class="tweet__metadata">
@severnbronies
</div>
</div>
</div>
</li>
</ul>
</section>
<section class="schedule" data-schedule>
<span class="schedule__label">Coming up</span>
<span class="schedule__content" data-schedule-content></span>
</section>
<script type="text/html" id="tmpl-tweet">
<li class="tweetstream__item tweet">
<img class="tweet__avatar" src="{{user.profile_image_url}}" alt="">
<div class="tweet__container">
<div class="tweet__body">
<div class="tweet__content">
{{text}}
</div>
<div class="tweet__metadata">
@{{user.screen_name}} · <time data-timeago datetime="{{created_at}}">{{created_at}}</time>
</div>
</div>
</div>
</li>
</script>
<script type="text/html" id="tmpl-tweet-legacy">
<li class="tweetstream__item tweet">
<img class="tweet__avatar" src="{{avatar}}" alt="">
<div class="tweet__container">
<div class="tweet__body">
<div class="tweet__content">
{{content}}
</div>
<div class="tweet__metadata">
@{{user}} · <time data-timeago datetime="{{time}}">{{time}}</time>
</div>
</div>
</div>
</li>
</script>
<script type="text/html" id="tmpl-schedule">
<span class="schedule__event"><strong><time data-timeago datetime="{{humanTime}}">{{humanTime}}</time></strong> · {{event}}</span>
</script>
<script type="text/html" id="tmpl-message">
<div class="message">{{message}}</div>
</script>
<script src="/assets/js/vendor.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.3.5.js"></script>
<script src="/assets/js/bristolbronies.min.js"></script>
<script>
var socket = io();
socket.on("command", function(cmd, params) {
switch(cmd) {
case "streamToggle": bb.stream.toggle(); break;
case "streamNavigate": bb.stream.url(params.url); break;
case "scheduleToggle": bb.schedule.toggle(); break;
case "scheduleUpdate": bb.schedule.update(); break;
}
});
socket.on("alert", function(msg) {
bb.message.display(msg);
});
socket.on("tweet", function(tweet) {
bb.tweetstream.update(tweet);
});
</script>
</body>
</html>