Skip to content
Snippets Groups Projects
Commit e2330167 authored by Rico van Endern's avatar Rico van Endern
Browse files

minimal reality werbung

parent 31141ae4
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
{ {
"type": "panel", "type": "panel",
"name": "mensaPlan" "name": "mensaPlan"
},
{
"type": "panel",
"name": "werbung"
} }
] ]
} }
......
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_img_display = null;
this.loaded=function(panel,config) {
werbung_display= $(panel).find("#werbung_display");
}
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() {
}
this.checkShowCondition=function() {
return 0;
}
#werbung_container{
height: 100%;
width: 100%;
position:relative;
}
#werbung_display{
height: 100%;
width: auto;
max-height: 100%;
max-width: 100%;
position: absolute;
left: 0;
right: 0;
margin: auto;
}
\ No newline at end of file
<div id="werbung_container">
<img id="werbung_display"/>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment