Abfallkalender als iCal-Datei
Hier können Sie Ihre Abfalltermine in Ihren Outlook-Kalender importieren
Klicken Sie auf den unteren Button, um den Inhalt von merzig.mein-abfallkalender.online zu laden.
var guestDomain = 'merzig.mein-abfallkalender.online';
function onMessage(messageEvent) {
console.log('messageEvent = ' + messageEvent.data["height"] + ':' + messageEvent.origin)
if (messageEvent.origin == "https://" + guestDomain) {
if (messageEvent.data["height"]) {
el = document.getElementById("mein-abfallkalender");
//console.log(el)
el.setAttribute("height", messageEvent.data["height"] + "px");
};
if (messageEvent.data["scrollto"]) {
el = document.getElementById("mein-abfallkalender");
basic_offset = findPos(el);
transmitted_offset = parseInt(messageEvent.data["scrollto"],10);
full_offset = basic_offset + transmitted_offset;
//alert(full_offset);
window.scrollTo(0,full_offset);
};
}
}
var windowProxy;
window.onload=function(){
// Create a proxy window to send to and receive message from the guest iframe
windowProxy = new Porthole.WindowProxy('https://' + guestDomain + '/app/js/proxy.html', 'mein-abfallkalender');
windowProxy.addEventListener(onMessage);
};
function findPos(obj){
var posX = obj.offsetLeft, posY = obj.offsetTop;
while(obj.offsetParent){
posX=posX+obj.offsetParent.offsetLeft;
posY=posY+obj.offsetParent.offsetTop;
if(obj==document.getElementsByTagName('body')[0]){break}
else{obj=obj.offsetParent;}
}
return posY;
}