|
|
|
@ -22,47 +22,38 @@ |
|
|
|
{% if tv %} |
|
|
|
{% if tv %} |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
|
|
|
|
var iInterval = 2000; |
|
|
|
var iInterval = 2000; |
|
|
|
var iScrollInterval = 10000; |
|
|
|
var iScrollInterval = 10000; |
|
|
|
var iFadeInterval = 500; |
|
|
|
var iFadeInterval = 500; |
|
|
|
var iScroll = $(document).height() - $(window).height(); |
|
|
|
var iScroll = $(document).height() - $(window).height(); |
|
|
|
|
|
|
|
|
|
|
|
if (iScroll * 10 + 4000 < 15000) { |
|
|
|
if (iScroll * 10 + 4000 < 15000) { |
|
|
|
iScrollInterval = 10000; |
|
|
|
iScrollInterval = 10000; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
iScrollInterval = iScroll * 10; |
|
|
|
iScrollInterval = iScroll * 10; |
|
|
|
} |
|
|
|
} |
|
|
|
var fade = function() { |
|
|
|
|
|
|
|
$("body").fadeOut(iFadeInterval, function(){ |
|
|
|
var loop = function() { |
|
|
|
$("html, body").scrollTop(0); |
|
|
|
var iScroll = $(document).height() - $(window).height(); |
|
|
|
$("body").fadeIn(iFadeInterval,function(){ |
|
|
|
if (iScroll * 10 + 4000 < 15000) { |
|
|
|
setTimeout(loop, iInterval); |
|
|
|
iScrollInterval = 10000; |
|
|
|
}); |
|
|
|
} else { |
|
|
|
}); |
|
|
|
iScrollInterval = iScroll * 10; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$("html, body").animate({ |
|
|
|
var loop = function() { |
|
|
|
scrollTop: iScroll |
|
|
|
var iScroll = $(document).height() - $(window).height(); |
|
|
|
}, { |
|
|
|
if (iScroll * 10 + 4000 < 15000) { |
|
|
|
duration : iScrollInterval, |
|
|
|
iScrollInterval = 10000; |
|
|
|
easing : "linear", |
|
|
|
} else { |
|
|
|
complete : function() { |
|
|
|
iScrollInterval = iScroll * 10; |
|
|
|
setTimeout(function(){ |
|
|
|
} |
|
|
|
window.location.reload(); |
|
|
|
$("html, body").animate({ |
|
|
|
}, iInterval); |
|
|
|
scrollTop: iScroll |
|
|
|
} |
|
|
|
}, { |
|
|
|
}); |
|
|
|
duration : iScrollInterval, |
|
|
|
}; |
|
|
|
easing : "linear", |
|
|
|
setTimeout(loop, iInterval); |
|
|
|
complete : function() { |
|
|
|
</script> |
|
|
|
setTimeout(fade, iInterval); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
setTimeout(function(){ |
|
|
|
|
|
|
|
window.location.reload(); |
|
|
|
|
|
|
|
}, Math.max(iScrollInterval * 10 + 2000, 15000)); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
setTimeout(loop, iInterval); |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if tournament.club.header %} |
|
|
|
{% if tournament.club.header %} |
|
|
|
|