diff --git a/panels/werbung/img/Grillen2016_0.png b/panels/werbung/img/Grillen2016_0.png new file mode 100644 index 0000000000000000000000000000000000000000..4b6d3c3e54daa961e2b68c54e08eb75d1dbf9e05 Binary files /dev/null and b/panels/werbung/img/Grillen2016_0.png differ diff --git a/panels/werbung/img/itour2016_0.png b/panels/werbung/img/itour2016_0.png new file mode 100644 index 0000000000000000000000000000000000000000..f65a36ac418863ba216c9fc3adeb262cf1110142 Binary files /dev/null and b/panels/werbung/img/itour2016_0.png differ diff --git a/panels/werbung/img/ophase_party_1617.jpg b/panels/werbung/img/ophase_party_1617.jpg deleted file mode 100644 index 9cbf077c07ac57b5fa77d36308c2b8e2cb057e92..0000000000000000000000000000000000000000 Binary files a/panels/werbung/img/ophase_party_1617.jpg and /dev/null differ diff --git a/panels/werbung/script.js b/panels/werbung/script.js index 9845c126e4b79072c1af6c800b28e7982707567f..4fd8488b37e162776bc8ec0949d6d45f7580b753 100644 --- a/panels/werbung/script.js +++ b/panels/werbung/script.js @@ -1,11 +1,19 @@ -var lastWerbung=0; -var werbung = null; +var nextWerbung=0; +var werbung_config = null; var werbung_img_display = null; +var werbung_panel = null; this.loaded=function(panel,config) { - $(panel).find("#werbung_display").attr("src", "panels/werbung/img/"+config); + werbung_panel = panel; + werbung_config = 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) { + nextWerbung += 1; + } else { + nextWerbung = 0; + } } this.resize=function() {