if (typeof edodatki_manager == "undefined") { var edodatki_manager = {}; edodatki_manager.id = []; edodatki_manager.last = false; edodatki_manager.iterationNr = 0; } edodatki_manager.tmp = document.getElementsByTagName("script"); edodatki_manager.id.push(edodatki_manager.tmp[edodatki_manager.tmp.length - 1].parentNode); edodatki_manager.id[edodatki_manager.id.length - 1].script = edodatki_manager.tmp[edodatki_manager.tmp.length - 1].src; if (typeof edodatki_manager.addLoadEvent == "undefined") { edodatki_manager.addLoadEvent = function(func, first) { try { typeof window.onload; } catch(err) { window.onload=null; } var oldonload = window.onload; if (typeof window.onload != "function") { window.onload = func; } else { if (first) { window.onloade = function() { func(); if (oldonload) { oldonload(); } }; } else { window.onloade = function() { if (oldonload) { oldonload(); } func(); }; } } }; }; edodatki_manager.findLink = function(){ var i=0; for (i; i < edodatki_manager.id.length; i++) { if (edodatki_manager.id[i].innerHTML.match("dojazd.org")) { edodatki_manager.id[i].block = false; } //else if (edodatki_manager.id[i].parentNode.innerHTML.match("dojazd.org")){ // edodatki_manager.id[i].block = true; //} } }; var func_bmi = function(p) { var d = document; var h = d.getElementsByTagName("head")[0]; link = d.createElement("link"); link.href="https://edodatki.pl/widgets/bmi/style.css"; link.setAttribute("rel","stylesheet"); link.type="text/css"; h.appendChild(link); var link2 = d.createElement("link"); link2.href="https://edodatki.pl/widgets/bmi/green.css"; link2.setAttribute("rel","stylesheet"); link2.type="text/css"; h.appendChild(link2); var url = p.getElementsByTagName("a"); var url2 = ""; if(url.length > 1) { url2 = url[url.length - 1]; tmp = ""; url2 = tmp; url = url[url.length - 2]; tmp = "" + url.innerHTML + ""; url = tmp; } else { if(url.length == 1) { url = url[url.length - 1]; tmp = "" + url.innerHTML + ""; url = tmp; } else { url = ""; } } p.id = "bmi"; p.innerHTML = "
"+ "
"+ "
Oblicz swoje BMI
"+ "
"+ " "+ "
"+ "Reset"+ "Oblicz"+ "
"+ "
"+ "
"+ "
Twój wynik:
"+ "
17 - 25
"+ "
nadwaga straszna
"+ "Powrót"+ "Opis"+ "
"+ "
Opis

Lorem ipsum dolor sit amet, lorem ipsum dolor sit amet, lorem ipsum dolor sit amet, lorem ipsum dolor sit amet

Powrót
" + url + url2 + "
"; var bmi_script = d.createElement("script"); bmi_script.src = "https://edodatki.pl/widgets/bmi/bmi.js"; bmi_script.type = "text/javascript"; bmi_script.charset = "UTF-8"; h.appendChild(bmi_script); }; var bcrqoy0ytx3scws0ckscko4gwk = document.getElementsByTagName("script"); bcrqoy0ytx3scws0ckscko4gwk = bcrqoy0ytx3scws0ckscko4gwk[bcrqoy0ytx3scws0ckscko4gwk.length - 1].parentNode; var oldonloadbcrqoy0ytx3scws0ckscko4gwk = window.onload; if (typeof window.onload != 'function') { window.onload = function() { func_bmi(bcrqoy0ytx3scws0ckscko4gwk); }; } else { window.onload = function() { if(oldonloadbcrqoy0ytx3scws0ckscko4gwk) { oldonloadbcrqoy0ytx3scws0ckscko4gwk(); } func_bmi(bcrqoy0ytx3scws0ckscko4gwk); } } if (typeof edodatki_manager.message =='undefined' ) { edodatki_manager.messageLast = function(){ edodatki_manager.iterationNr++; edodatki_manager.message = function(){ for (i=0;iWystąpił problem z działaniem dodatku
Usuń kod ze strony i pobierz nowy ze strony edodatki.pl
"; edodatki_manager.id[i].appendChild(message); //} //else { // edodatki_manager.id[i].removeChild(edodatki_manager.id[i].childNodes[iii]); } } break; } } } }; if (!edodatki_manager.last && (edodatki_manager.id.length == edodatki_manager.iterationNr )){ edodatki_manager.last = true; window.onloade(); edodatki_manager.message(); window.onloade = function (){}; return; } else { } }; }; edodatki_manager.addLoadEvent(edodatki_manager.messageLast); edodatki_manager.addLoadEvent(edodatki_manager.findLink, true);