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

Merged in dev (pull request #32)

minimal reality werbung
parents 8c1da054 e2330167
Branches
No related tags found
No related merge requests found
......@@ -24,6 +24,10 @@
{
"type": "panel",
"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