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

config fix

parent 029a2c13
Branches
No related tags found
No related merge requests found
this.tabtime=20; this.tabtime=20;
this.checkShowCondition = function() { this.checkShowCondition = function() {
return 3*this.tabtime; return 3*this.tabtime;
} }
this.show = function() { this.show = function() {
// switch tabs // switch tabs
this.interval=setInterval(function() { this.interval=setInterval(function() {
...@@ -25,6 +27,7 @@ this.show = function() { ...@@ -25,6 +27,7 @@ this.show = function() {
}, this.tabtime*1000); }, this.tabtime*1000);
} }
this.hide = function() { this.hide = function() {
clearInterval(this.interval); clearInterval(this.interval);
} }
......
...@@ -9,7 +9,7 @@ this.loaded=function(panel,config) { ...@@ -9,7 +9,7 @@ this.loaded=function(panel,config) {
this.show=function() { this.show=function() {
$(werbung_panel).find("#werbung_display").attr("src", "panels/werbung/img/"+werbung_config.files[nextWerbung].filename); $(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; nextWerbung += 1;
} else { } else {
nextWerbung = 0; nextWerbung = 0;
...@@ -19,6 +19,9 @@ this.show=function() { ...@@ -19,6 +19,9 @@ this.show=function() {
this.resize=function() { this.resize=function() {
} }
this.checkShowCondition=function() { this.hide = function() {
return 0; }
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