Skip to content
Snippets Groups Projects
Commit 8c398c42 authored by Hotte's avatar Hotte
Browse files

config fix

parent 029a2c13
No related branches found
No related tags found
No related merge requests found
this.tabtime=20;
this.checkShowCondition = function() {
return 3*this.tabtime;
}
this.show = function() {
// switch tabs
this.interval=setInterval(function() {
......@@ -25,6 +27,7 @@ this.show = function() {
}, this.tabtime*1000);
}
this.hide = function() {
clearInterval(this.interval);
}
......
......@@ -9,7 +9,7 @@ this.loaded=function(panel,config) {
this.show=function() {
$(werbung_panel).find("#werbung_display").attr("src", "panels/werbung/img/"+werbung_config.files[nextWerbung].filename);
if(nextWerbung+1<config.files.length) {
if(nextWerbung+1<werbung_config.files.length) {
nextWerbung += 1;
} else {
nextWerbung = 0;
......@@ -19,6 +19,9 @@ this.show=function() {
this.resize=function() {
}
this.checkShowCondition=function() {
return 0;
this.hide = function() {
}
this.checkShowCondition = function() {
return 20;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment