Original source (on modern site) | Article images: [1]
`;
const base64Content = btoa(unescape(encodeURIComponent(completeContent)));
const iframe = document.createElement('iframe');
iframe.id = 'wiwoBlurryIframe';
iframe.src = `data:text/html;base64,${base64Content}`;
iframe.width = "100%"; // Breite des Iframes anpassen
node.parentNode.insertBefore(iframe, node.nextSibling);
}else{
node.parentNode.insertBefore(newDiv, node.nextSibling);
}
})(document.querySelector('.o-paywall'));
(function (node) {
if(!node){
return false;
}
function isOneApp() {
if(window.location.host.indexOf("boerse.wiwo.de") > -1) {
return false;
}
return true;
}
let hasLocalStorage = false;
const mod = 'storageTest';
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
hasLocalStorage = true;
} catch(e) {}
if (typeof JSON === 'undefined'){
hasLocalStorage = false;
}
const body = document.getElementsByTagName( 'body' )[0];
const html = document.getElementsByTagName( 'html' )[0];
const close = node.querySelector('.c-app-install__close');
const storage = 'closeAppInst';
if(hasLocalStorage && localStorage.getItem(storage)){
const future = new Date();
future.setDate(future.getDate() + 10);
let clickTime = localStorage.getItem(storage);
clickTime = new Date(clickTime);
if(clickTime < future){
return false;
}
}
if(
html.classList.contains('mobile') && isOneApp() ||
html.classList.contains('tablet') )
{
node.classList.add('active')
body.classList.add('c-app-install--active')
}else{
body.classList.add("c-app-install--hidden");
return false;
}
if(close){
close.addEventListener('click', function (){
node.classList.remove('active')
body.classList.remove('c-app-install--active')
body.classList.add("c-app-install--hidden");
if(document.location.pathname !== '/'){
body.classList.add("c-app-install--hidde-now");
}
if(hasLocalStorage){
const time = new Date().toString();
localStorage.setItem(storage,time)
}
})
}
})(document.querySelector(".c-app-install--new"));
if ($('.c-clipgallery__slick').length) {
if (!window.WiwoPulse) {
return false;
}
function addNorkon(id, location, period, div) {
if (period == '') {
period = '1y';
}
WiwoPulse.articleWidget(div, {
"id": id,
"period": period,
"location": location
});
}
function lazyNorkon(_this_params, _this_container) {
addNorkon(_this_params.id, _this_params.location, _this_params.period, _this_container);
}
function searchTheSlider(_this, _number) {
var slider = _this.parents().children().find('.slick-slide:eq(' + _number + ') .c-clipgallery__image').find('div');
var thisID = slider.attr('id');
var norkon_params = slider.data('param');
if (typeof norkon_params === 'object') {
slider.data('param', 'ready');
lazyNorkon(norkon_params, thisID);
}
}
$('.c-clipgallery__slick').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
var preSlide = currentSlide - 1;
var _this = $(this);
searchTheSlider(_this, preSlide);
var nextSlide = nextSlide + 1;
searchTheSlider(_this, nextSlide);
})
var start_norkon = $('.slick-active .c-clipgallery__image').find('div');
var norkon_container = start_norkon.attr('id');
var norkon_params = start_norkon.data('param');
if (typeof norkon_params === 'object') {
lazyNorkon(norkon_params, norkon_container);
start_norkon.data('param', 'ready');
}
var start_eq = $('.slick-active').data('slick-index');
var next_eq = start_eq + 1;
var next_norkon = $('.c-clipgallery__slick').children().find('.slick-slide:eq(' + next_eq + ') .c-clipgallery__image').find('div');
norkon_container = next_norkon.attr('id');
norkon_params = next_norkon.data('param');
if (typeof norkon_params === 'object') {
next_norkon.data('param', 'ready');
lazyNorkon(norkon_params, norkon_container);
}
}
/*
(function (button) {
// Abort if no button was found
if (!button) return;
const updateServiceUrl = () => {
// Generate short url
const updatePathname = window.location.pathname.replace('.html/', '.html')
const serviceUrl =
"https://www.wiwo.de/" +
updatePathname.split("/").pop() +
window.location.search;
// Update button url
const buttonUrl = new URL(button.href);
buttonUrl.searchParams.set("service", serviceUrl);
button.href = buttonUrl.toString();
};
// Create mutation observer to the href attribute of the button
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.attributeName !== "href") return;
// Disconnect observer to prevent an infinite loop
observer.disconnect();
// Update service url
updateServiceUrl();
// Reconnect observer
observer.observe(button, { attributes: true });
});
});
// Update service url
updateServiceUrl();
// Connect observer
observer.observe(button, { attributes: true });
})(document.querySelector(".o-paywall .c-button--red"));
*/
/*
setTimeout(function(){
(function(adTile8){
if (!adTile) return;
if(!~document.querySelector('.o-paywall')){
return false;
}
const observer2 = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
observer2.disconnect();
document.body.classList.add('hasBannerForPaywall');
observer2.observe(adTile8, {childList: true, subtree: true});
});
});
observer2.observe(adTile8, {childList: true, subtree: true});
if(document.querySelector('#iqadtile8')){
document.body.classList.add('hasBannerForPaywall');
}
})(document.querySelector('#ad-iqadtile8'));
}, 3000);
*/
function removeAppInstallBanner(){
const doc = document.querySelectorAll('.c-app-install');
if(doc[0] && doc[0].innerHTML === ''){
document.body.classList.remove('c-app-install--active');
}
}
newObserver('.c-app-install', removeAppInstallBanner);
function isBottomLayer(){
const doc = document.querySelector('.piano_app_install_footer');
if(doc && doc.innerHTML !== ''){
document.body.classList.remove('c-app-install--active');
}
}
newObserver('.piano_app_install_footer', isBottomLayer)
function addPaywallClass(){
if(document.querySelector('#iqadtile8')){
document.body.classList.add('hasBannerForPaywall');
}
}
if(document.querySelector('.o-paywall')){
newObserver('#iqadtile8', addPaywallClass);
}
if (window.hcf_userconfig && window.hcf_userconfig.logged && document.querySelector('.o-paywall') && document.querySelector("#js-login")) {
const jsLogin = document.querySelector("#js-login");
jsLogin.innerText = 'Infos zum WiWo-Abo';
jsLogin.setAttribute('href','https://www.wiwo.de/plus/')
}
((node) => {
!function(e){if("undefined"!=typeof window){var n,i=0,t=!1,o=!1,r=7,a="[iFrameSizer]",s=a.length,f=null,c=window.requestAnimationFrame,l={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},d={},u=null,m={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){w("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&(n=window.jQuery,n.fn?n.fn.iFrameResize||(n.fn.iFrameResize=function e(n){function i(e,i){H(i,n)}return this.filter("iframe").each(i).end()}):$("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],L):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=L()),window.iFrameResize=window.iFrameResize||L()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,i){e.addEventListener(n,i,!1)}function b(e,n,i){e.removeEventListener(n,i,!1)}function y(e){return d[e]?d[e].log:t}function v(e,n){_("log",e,n,y(e))}function $(e,n){_("info",e,n,y(e))}function w(e,n){_("warn",e,n,!0)}function _(e,n,i,t){if(!0===t&&"object"==typeof window.console){var o,r,s;console[e](a+"["+(s="Host page: "+(r=o=n),window.top!==window.self&&(s=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+r:"Nested host page: "+r),s)+"]",i)}}function x(e){function n(){i("Height"),i("Width"),E(function e(){O(A),I(B),h("onResized",A)},A,"init")}function i(e){var n=Number(d[B]["max"+e]),i=Number(d[B]["min"+e]),t=e.toLowerCase(),o=Number(A[t]);v(B,"Checking "+t+" is in range "+i+"-"+n),on&&(o=n,v(B,"Set "+t+" to max value")),A[t]=""+o}function t(e){return L.slice(L.indexOf(":")+r+e)}function o(e,n){var i,t,o=32;i=function i(){var t,o;T("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(o=A.iframe.getBoundingClientRect()).height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-t.top,10),offsetLeft:parseInt(o.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},t=n,g[t]||(g[t]=setTimeout(function(){g[t]=null,i()},32))}function c(e){var n=e.getBoundingClientRect();return z(B),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function l(e){var n=e?c(A.iframe):{x:0,y:0},i={x:Number(A.width)+n.x,y:Number(A.height)+n.y};v(B,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):w(B,"Unable to scroll to requested position, window.parentIFrame not found"):(f=i,u(),v(B,"--"))}function u(){!1!==h("onScroll",f)?I(B):R()}function m(e){var n={};if(0===Number(A.width)&&0===Number(A.height)){var i=t(9).split(":");n={x:i[1],y:i[0]}}else n={x:A.width,y:A.height};h(e,{iframe:A.iframe,screenX:Number(n.x),screenY:Number(n.y),type:A.type})}function h(e,n){return k(B,e,n)}var y,_,x,F,H,S,P,j,L=e.data,A={},B=null;"[iFrameResizerChild]Ready"===L?!function e(){for(var n in d)T("iFrame requested init",C(n),d[n].iframe,n)}():a===(""+L).slice(0,s)&&L.slice(s).split(":")[0]in d?(d[B=(A=(_=(y=L.slice(s).split(":"))[1]?parseInt(y[1],10):0,F=getComputedStyle(x=d[y[0]]&&d[y[0]].iframe),{iframe:x,id:y[0],height:_+function e(n){if("border-box"!==n.boxSizing)return 0;var i=n.paddingTop?parseInt(n.paddingTop,10):0,t=n.paddingBottom?parseInt(n.paddingBottom,10):0;return i+t}(F)+function e(n){if("border-box"!==n.boxSizing)return 0;var i=n.borderTopWidth?parseInt(n.borderTopWidth,10):0,t=n.borderBottomWidth?parseInt(n.borderBottomWidth,10):0;return i+t}(F),width:y[2],type:y[3]})).id]&&(d[B].loaded=!0),(H=A.type in{true:1,false:1,undefined:1})&&v(B,"Ignoring init message from meta parent page"),!H&&(P=!0,d[S=B]||(P=!1,w(A.type+" No settings for "+S+". Message was: "+L)),P)&&(v(B,"Received: "+L),j=!0,null===A.iframe&&(w(B,"IFrame ("+A.id+") not found"),j=!1),j&&function n(){var i,t=e.origin,o=d[B]&&d[B].checkOrigin;if(o&&""+t!="null"&&!(o.constructor===Array?function e(){var n=0,i=!1;for(v(B,"Checking connection is from allowed list of origins: "+o);nd[c]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),i("maxHeight"),i("minHeight"),i("maxWidth"),i("minWidth")}(),("number"==typeof(d[c]&&d[c].bodyMargin)||"0"===(d[c]&&d[c].bodyMargin))&&(d[c].bodyMarginV1=d[c].bodyMargin,d[c].bodyMargin=""+d[c].bodyMargin+"px"),s=C(c),(f=h())&&(a=f,n.parentNode&&new a(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===n&&M(n)})})}).observe(n.parentNode,{childList:!0})),p(n,"load",function i(){var t,o;T("iFrame.onload",s,n,e,!0),t=d[c]&&d[c].firstRun,o=d[c]&&d[c].heightCalculationMethod in l,!t&&o&&W({iframe:n,height:0,width:0,type:"init"})}),T("init",s,n,e,!0),d[c]&&(d[c].iframe.iFrameResizer={close:M.bind(null,d[c].iframe),removeListeners:F.bind(null,d[c].iframe),resize:T.bind(null,"Window resize","resize",d[c].iframe),moveToAnchor:function(e){T("Move to anchor","moveToAnchor:"+e,d[c].iframe,c)},sendMessage:function(e){T("Send Message","message:"+(e=JSON.stringify(e)),d[c].iframe,c)}})}}function S(e,n){null===u&&(u=setTimeout(function(){u=null,e()},n))}function P(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visibility change"),S(function e(){j("Tab Visible","resize")},16))}function j(e,n){Object.keys(d).forEach(function(i){var t;d[t=i]&&"parent"===d[t].resizeFrom&&d[t].autoResize&&!d[t].firstRun&&T(e,n,d[i].iframe,i)})}function L(){var n;function i(e,i){i&&(!function e(){if(i.tagName){if("IFRAME"!==i.tagName.toUpperCase())throw TypeError("Expected