2016-07-15 16:28:03 -04:00
|
|
|
$(document).ready(function() {
|
|
|
|
|
// will call refreshCurrentEvents every 15 minutes
|
2016-07-27 17:02:40 -04:00
|
|
|
setInterval(refreshCurrentEvents, 900000)
|
|
|
|
|
// To cycle through tweets
|
|
|
|
|
var tweets = $('div[id^="tweet"]').hide();
|
|
|
|
|
var i = 0;
|
|
|
|
|
|
|
|
|
|
(function cycle() {
|
|
|
|
|
tweets.eq(i).show(0)
|
|
|
|
|
.delay(5000)
|
|
|
|
|
.hide(0, cycle);
|
|
|
|
|
i = ++i % tweets.length;
|
|
|
|
|
})();
|
|
|
|
|
|
2016-07-15 16:28:03 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function refreshCurrentEvents(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "conference_wide_screen.js"
|
|
|
|
|
});
|
|
|
|
|
};
|