Forked from
FS Info TU Dortmund / Infoscreen / Infoscreen
273 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
script.js 516 B
var nextWerbung=0;
var werbung_config = null;
var werbung_img_display = null;
var werbung_panel = null;
this.loaded=function(panel,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() {
}
this.checkShowCondition=function() {
return 0;
}