Skip to content
Snippets Groups Projects
Commit a149993a authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

lade werbung per config

parent ab80fed4
No related branches found
No related tags found
No related merge requests found
var lastWerbung=0;
var werbung_img = ["reality1.png", "reality2.png"];
var werbung = null;
var werbung_img_display = null;
this.loaded=function(panel,config) {
werbung_display= $(panel).find("#werbung_display");
$(panel).find("#werbung_display").attr("src", config);
}
this.show=function() {
if (lastWerbung+1==werbung_img.length) {
lastWerbung=0;
} else {
lastWerbung += 1;
}
var img = "/panels/werbung/img/" + werbung_img[lastWerbung];
werbung_display.attr("src", img);
}
this.resize=function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment