e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf(‘__vwo_disable__’)>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){w._vwo_code.finish();stT.removeItem(cK)},e);var t;if(this.hide_element()!==’body’){t=d.createElement(‘style’);var n=this.hide_element(),i=n?n+this.hide_element_style():”,r=d.getElementsByTagName(‘head’)[0];t.setAttribute(‘id’,’_vis_opt_path_hides’);v&&t.setAttribute(‘nonce’,v.nonce);t.setAttribute(‘type’,’text/css’);if(t.styleSheet)t.styleSheet.cssText=i;else t.appendChild(d.createTextNode(i));r.appendChild(t)}else{t=d.getElementsByTagName(‘head’)[0];var i=d.createElement(‘div’);i.style.cssText=’z-index:2147483647!important;position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;background:white!important;’;i.setAttribute(‘id’,’_vis_opt_path_hides’);i.classList.add(‘_vis_hide_layer’);t.parentNode.insertBefore(i,t.nextSibling)}var o=window._vis_opt_url||d.URL,s=’https://dev.visualwebsiteoptimizer.com/j.php?a=’+account_id+’&u=’+encodeURIComponent(o)+’&vn=’+version;if(w.location.search.indexOf(‘_vwo_xhr’)!==-1){this.addScript({src:s})}else{this.load(s+’&x=true’)}}};w._vwo_code=code;code.init()})();(function(){var i=window;function t(){if(i._vwo_code){var e=t.hidingStyle=document.getElementById(‘_vis_opt_path_hides’)||t.hidingStyle;if(!i._vwo_code.finished()&&!_vwo_code.libExecuted&&(!i.VWO||!VWO.dNR)){if(!document.getElementById(‘_vis_opt_path_hides’)){document.getElementsByTagName(‘head’)[0].appendChild(e)}requestAnimationFrame(t)}}}t()});]]> { chunkedScripts.map((script) => { if (!script || !script.props) return; try { var scriptTag = document.createElement(‘script’); scriptTag.src = script.props.src; scriptTag.async = script.props.async; scriptTag.defer = script.props.defer; if (script.props.id) scriptTag.id = script.props.id; if (script.content) scriptTag.innerHTML = script.content; document.body.appendChild(scriptTag); } catch(err) { console.log(err); } }); }, 2000); ]]>
Source
Leave a comment