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

WerbungsfixNshit

parent 386845f0
No related branches found
No related tags found
No related merge requests found
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 = 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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment