Added pinhole to enhanced list

This commit is contained in:
KodeStar
2018-02-08 23:45:37 +00:00
parent bbd85d2516
commit 7229d32e8b
7 changed files with 88 additions and 4 deletions

4
public/js/app.js vendored
View File

@@ -20,6 +20,8 @@ $.when( $.ready ).then(function() {
if($('.livestats-container').length) {
$('.livestats-container').each(function(index){
var id = $(this).data('id');
var dataonly = $(this).data('dataonly');
var increaseby = (dataonly == 1) ? 20000 : 1000;
var container = $(this);
var max_timer = 30000;
var timer = 5000;
@@ -28,7 +30,7 @@ $.when( $.ready ).then(function() {
url: '/get_stats/'+id,
success: function(data) {
container.html(data);
if(data != '') timer = 1000;
if(data != '') timer = increaseby;
else {
if(timer < max_timer) timer += 2000;
}