🕑 Tag & Nacht
Erneuern oder ändern Sie Ihre Cookie-Einwilligung
function receiveMessage(event) {
var message = event.data.split(':');
var eventName = message[0];
var iframes, len, i = 0;
var senderDomains = ['https://www.taxirechner.de'];
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function(obj, start) {
for (var i = (start || 0), j = this.length; i < j; i++) {
if (this[i] === obj) { return i; }
}
return -1;
}
}
if ( senderDomains.indexOf(event.origin) !== -1 && eventName === 'resize' ) {
iframes = document.getElementsByTagName('iframe');
len = iframes.length;
for (; i < len; i++) {
if ( ( iframes[i].contentWindow || iframes[i].documentWindow ) == event.source) {
iframes[i].style.height = message[1] + "px";
return;
}
}
}
}
if ( window.addEventListener ) {
window.addEventListener('message', receiveMessage, false);
}
else if (window.attachEvent) {
window.attachEvent('onmessage', receiveMessage);
}