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 BASE_URL = 'https://www.e-regulaminy.pl/'; var STYLESHEET = BASE_URL + "/wp-content/themes/twentythirteen/css/frame-document.css"; var CONTENT_URL = BASE_URL + 'docs/view/92Nx39_984dM9'; var ROOT = 'ereg_script_01_10_2016_eregulaminy_xss'; 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 requestScript(script_url) { var script = document.createElement('script'); script.src = script_url; document.getElementsByTagName('head')[0].appendChild(script); } 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; var div = document.getElementById(ROOT); var txt = ""; for (var i = 0; i < data.length; i++) { if (txt.length > 0) { txt += ", "; } txt += data[i]; } div.innerHTML = txt; // assign new HTML into #ROOT div.style.display = 'block'; // make element visible div.style.visibility = 'visible'; // make element visible }; requestStylesheet(STYLESHEET); requestStylesheet('https://fonts.googleapis.com/css?family=Roboto+Condensed'); requestScript('https://use.fontawesome.com/b81d0a55f7.js'); document.write("
"); requestContent(); var no_script = document.getElementById('no_script'); if (no_script) { no_script.style.display = 'none'; } }; }; MyXssMagic.init();