Skip to content

Commit 2690334

Browse files
committed
Add broadcast page
1 parent f19544d commit 2690334

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

‎broadcast.html‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: default
3+
title: Broadcast
4+
description: Broadcasting Hackatron's meetings
5+
---
6+
7+
<div id="broadcast">
8+
<h2>Meeting broadcast</h2>
9+
10+
<p>
11+
Broadcast will start at <span id="next_broadcast"></span>.
12+
</p>
13+
</div>
14+
15+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
16+
<script>
17+
$(document).ready(function() {
18+
$.ajax({
19+
type: 'GET',
20+
dataType: 'jsonp',
21+
cache: false,
22+
url: 'http://hackatron-hubot.herokuapp.com/hubot/topic/hackatron',
23+
success: function(topic) {
24+
time = topic.replace(/[^\:]+\: /, '').replace(/ @.+/, '');
25+
$('#next_broadcast').html(time);
26+
}
27+
});
28+
});
29+
</script>

0 commit comments

Comments
 (0)