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

Merge branch 'dev'

parents e8fb5918 b65936b7
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,12 @@
{
"type": "panel",
"name": "mensaPlan"
}
},
{
"type": "panel",
"name": "werbung",
"config": "ophase_party_1617.jpg"
}
]
}
}
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
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