mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Add Dwell Between Ranking Scroll Cycles
This commit is contained in:
@@ -24,7 +24,7 @@ function getData(callback){
|
||||
function populateView(){
|
||||
$('#container table').html(template(rankings));
|
||||
equalize(true);
|
||||
scroll();
|
||||
setTimeout(scroll, PAUSE_TIME);
|
||||
}
|
||||
|
||||
// Balance Column Widths
|
||||
@@ -48,7 +48,7 @@ function equalize(all){
|
||||
});
|
||||
}
|
||||
|
||||
var SCROLL_SPEED = 1000;
|
||||
var SCROLL_SPEED = 1000; // Smaller is Faster
|
||||
function scroll(){
|
||||
$('#container').scrollTop(0);
|
||||
|
||||
@@ -62,9 +62,10 @@ function scroll(){
|
||||
interval = setInterval(pollForUpdate, POLL_INTERVAL);
|
||||
}
|
||||
|
||||
var PAUSE_TIME = 5000;
|
||||
function reset(){
|
||||
$('#container table#old').html($('#container table#new').html());
|
||||
scroll();
|
||||
setTimeout(scroll, PAUSE_TIME);
|
||||
}
|
||||
|
||||
var POLL_INTERVAL = 1000;
|
||||
|
||||
@@ -25,14 +25,12 @@
|
||||
<table>
|
||||
<tr id='header'>
|
||||
<td class='rank'>Rank</td>
|
||||
<td class='team'></td>
|
||||
<td class='team'>Team</td>
|
||||
<td class='qs'>Record</td>
|
||||
<td class='team'>Name</td>
|
||||
<td class='qs'>QS</td>
|
||||
<td class='assist'>Assist</td>
|
||||
<td class='tc'>Auto</td>
|
||||
<td class='tc'>T/C</td>
|
||||
<td class='tc'>GF</td>
|
||||
<td class='qs'>W-L-T</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -53,12 +51,10 @@
|
||||
<td>{{this.Rank}}</td>
|
||||
<td>{{this.TeamId}}</td>
|
||||
<td class='left'>The Cheesy Poofs</td>
|
||||
<td>{{this.Wins}} - {{this.Losses}} - {{this.Ties}} ({{this.Played}})</td>
|
||||
<td>{{this.QualificationScore}}</td>
|
||||
<td>{{this.AssistPoints}}</td>
|
||||
<td>{{this.AutoPoints}}</td>
|
||||
<td>{{this.TrussCatchPoints}}</td>
|
||||
<td>{{this.GoalFoulPoints}}</td>
|
||||
<td>{{this.Wins}} - {{this.Losses}} - {{this.Ties}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user