Commit 6fc1ce4d authored by fred's avatar fred

Revert "remove obsolete ticker stuff"

This reverts commit d243652c; this is actually
used for the focus items on the homepage...
parent 01b2c095
......@@ -172,6 +172,7 @@ $(function() {
var timer = null;
var refresh_onair_interval = 25000;
var ticker_interval = null;
/*
//TODO: mini icon version for player, (playpause only)
$('#togglePlayer').on('click',function(e) {
......@@ -418,6 +419,21 @@ $(function() {
$('input#id_q').focus();
}
$('#ticker li:not(:first)');
if (ticker_interval) clearInterval(ticker_interval);
function tick(){
$('#ticker li:first').animate({'opacity':0}, 200, function () {
$(this).appendTo($('#ticker')).css('opacity', 1);
});
}
$("#roller button").on('click',function(e){
clearInterval(ticker_interval);
e.preventDefault();
$($(this).attr('data-about')).prependTo('#ticker');
return false;
});
ticker_interval = setInterval(function(){tick(); }, 20000);/**/
function navsearch_click(event) {
event.preventDefault();
var query = $('#nav-search input').val();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment