Merge pull request #88 from Absurdon/master

fixed gathercount not getting loaded immediatly
This commit is contained in:
Absurdon 2017-02-13 00:03:29 +01:00 committed by GitHub
commit dab26d0759

View file

@ -80,16 +80,16 @@
</div>
</nav>
<script>
$(function () {
var gatherInterval = setInterval(function() {
$((function gather () {
$.ajax({
datatype: "json",
url: "<%= gathers_url %>/gathers/current",
success: function (data) {
$("#gathercount").html(data.gatherers.length + "/12");
},
complete: function() {
setTimeout(gather, 10000);
}
});
},10000);
});
})());
</script>