main
Razmig Sarkissian 2 years ago
parent ecada3e6e1
commit ec8f1438fb
  1. 2
      scores/templates/scores/brackets.html
  2. 7
      scores/templates/scores/ranks.html
  3. 7
      scores/templates/scores/teams.html
  4. 65
      scores/templates/scores/tournament.html

@ -22,7 +22,7 @@
{% if tv %} {% if tv %}
<script> <script>
var iInterval = 2000; var iInterval = 4000;
var iScrollInterval = 10000; var iScrollInterval = 10000;
var iFadeInterval = 500; var iFadeInterval = 500;
var iScroll = $(document).height() - $(window).height(); var iScroll = $(document).height() - $(window).height();

@ -26,7 +26,7 @@
{% if tv %} {% if tv %}
<script> <script>
var iInterval = 2000; var iInterval = 4000;
var iScrollInterval = 10000; var iScrollInterval = 10000;
var iFadeInterval = 500; var iFadeInterval = 500;
var iScroll = $(document).height() - $(window).height(); var iScroll = $(document).height() - $(window).height();
@ -51,13 +51,14 @@
easing : "linear", easing : "linear",
complete : function() { complete : function() {
setTimeout(function(){ setTimeout(function(){
window.location.reload(); $(window).scrollTop(0);
window.location.reload();
}, iInterval); }, iInterval);
} }
}); });
}; };
setTimeout(loop, iInterval); setTimeout(loop, iInterval);
</script> </script>
{% endif %} {% endif %}
{% if tournament.club.header %} {% if tournament.club.header %}

@ -26,7 +26,7 @@
{% if tv %} {% if tv %}
<script> <script>
var iInterval = 2000; var iInterval = 4000;
var iScrollInterval = 10000; var iScrollInterval = 10000;
var iFadeInterval = 500; var iFadeInterval = 500;
var iScroll = $(document).height() - $(window).height(); var iScroll = $(document).height() - $(window).height();
@ -51,13 +51,14 @@
easing : "linear", easing : "linear",
complete : function() { complete : function() {
setTimeout(function(){ setTimeout(function(){
window.location.reload(); $(window).scrollTop(0);
window.location.reload();
}, iInterval); }, iInterval);
} }
}); });
}; };
setTimeout(loop, iInterval); setTimeout(loop, iInterval);
</script> </script>
{% endif %} {% endif %}
{% if tournament.club.header %} {% if tournament.club.header %}

@ -22,38 +22,39 @@
{% if tv %} {% if tv %}
<script> <script>
var iInterval = 2000; var iInterval = 4000;
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 loop = function() { var loop = function() {
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;
} }
$("html, body").animate({ $("html, body").animate({
scrollTop: iScroll scrollTop: iScroll
}, { }, {
duration : iScrollInterval, duration : iScrollInterval,
easing : "linear", easing : "linear",
complete : function() { complete : function() {
setTimeout(function(){ setTimeout(function(){
window.location.reload(); $(window).scrollTop(0);
}, iInterval); window.location.reload();
} }, iInterval);
}); }
}; });
setTimeout(loop, iInterval); };
</script> setTimeout(loop, iInterval);
</script>
{% endif %} {% endif %}
{% if tournament.club.header %} {% if tournament.club.header %}

Loading…
Cancel
Save