function iecheck() { if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) { var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, ''); var iever = (rslt != null && Number(rslt[1]) >= 5.5 && Number(rslt[1]) <= 7 ); } return iever; } MyXssMagic = new function() { var WWW_URL = 'https://www.rzetelnyregulamin.pl/'; var BASE_URL = WWW_URL + 'pl/'; var STYLESHEET = WWW_URL + "assets/css/certyfikaty/certyfikat_r.css" var CONTENT_URL = BASE_URL + 'rr,html-1,kod-359a235aab026cf3552f68a523464889,e-Regulamin niedostępny z tego miejsca! .'; var ROOT = 'rr_xss_cert'; function requestStylesheet(stylesheet_url) { stylesheet = document.createElement("link"); stylesheet.rel = "stylesheet"; stylesheet.type = "text/css"; stylesheet.href = stylesheet_url; stylesheet.media = "all"; document.getElementsByTagName("head")[0].appendChild(stylesheet); } function requestContent( local ) { var script = document.createElement('script'); // How you'd pass the current URL into the request // script.src = CONTENT_URL + '&url=' + escape(local || location.href); script.src = CONTENT_URL; document.getElementsByTagName('head')[0].appendChild(script); } this.init = function() { this.serverResponse = function(data) { if (!data) return; if(!document.getElementById(ROOT)) { document.write(""); } var div = document.getElementById(ROOT); if(div === null) { //angular test var el = document.createElement("div"); el.setAttribute("id", ROOT); el.setAttribute("style", "display: none"); var terms = document.getElementById("terms-script"); terms.parentNode.insertBefore(el, terms); div = document.getElementById(ROOT); } var txt = ""; for (var i = 0; i < data.length; i++) { if (txt.length > 0) { txt += ", "; } txt += data[i]; } div.innerHTML = div.innerHTML + txt; // assign new HTML into #ROOT div.style.display = 'block'; // make element visible div.style.visibility = 'visible'; // make element visible div.style.padding = '5px'; div.style.clear = 'both'; var width_xss = document.getElementById('rr_xss_cert').offsetWidth; if(width_xss > 0 && 1) { if(width_xss < 500) { document.getElementById("rr_h1").style.fontSize="40px"; document.getElementById("rr_h1").style.marginTop="-20px"; document.getElementById("rr_h1").style.lineHeight="50px"; document.getElementById("rr_h2").style.fontSize="15px"; document.getElementById("rr_h2").style.lineHeight="15px"; document.getElementById("rr_h3").style.fontSize="12px"; document.getElementById("rr_h3").style.lineHeight="12px"; } if(width_xss < 400) { document.getElementById("rr_h1").style.fontSize="30px"; document.getElementById("rr_h1").style.marginTop="-30px"; document.getElementById("rr_h1").style.lineHeight="40px"; document.getElementById("rr_h2").style.fontSize="12px"; document.getElementById("rr_h2").style.lineHeight="12px"; document.getElementById("rr_h3").style.fontSize="11px"; document.getElementById("rr_h3").style.lineHeight="11px"; } if(width_xss < 315) { document.getElementById("rr_xss_cert").style.fontSize="10px"; } } } requestStylesheet(STYLESHEET); if(!document.getElementById(ROOT)) { document.write(""); } requestContent(); var no_script = document.getElementById('no_script'); if (no_script) { no_script.style.display = 'none'; } } } MyXssMagic.init();