function getElementsByClassName(node,classname){if(node.getElementsByClassName){return node.getElementsByClassName(classname);}else{return(function getElementsByClass(searchClass,node){if(node==null)node=document; var classElements = [], els = node.getElementsByTagName("*"), elsLen = els.length, pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j; for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; })(classname, node);}} function processAnchors(prefix, hashTmp) { var anchors = getElementsByClassName(document, prefix + '-' + hashTmp); if (anchors && anchors.length > 0) { var a0 = 0; for (var ii = 0; ii < anchors.length; ii++) { var a = anchors[ii]; if (a.href && a.href.indexOf('an=') < 0) { a.href = a.href + '&an=' + a0; a0 = a0 + 1; } } } } function addClassCreationPool(id, cssClassNew) { var divPool = document.getElementById(id); if (divPool) { if (divPool.className.indexOf(cssClassNew) < 0) { divPool.className += ' ' + cssClassNew; } } } function addStyle(styleText, idStyle) { var createStyle = true; if (idStyle) { var styleExist = document.getElementById(idStyle); if (styleExist) { createStyle = false; } } if (createStyle && styleText) { var cssstyle = document.createElement("style"); if (cssstyle) { if (idStyle) { cssstyle.setAttribute('id', idStyle); } cssstyle.setAttribute('type', 'text/css'); var styles = document.createTextNode(styleText); if (cssstyle.styleSheet) { cssstyle.styleSheet.cssText = styles.nodeValue; } else { cssstyle.appendChild(styles); } var head = document.getElementsByTagName('head')[0]; if (head) { head.appendChild(cssstyle); } } } } function ofeOnLoad() { } function addScript(scriptHref, idScript) { var createScript = true; if (idScript) { var scriptExist = document.getElementById(idScript); if (scriptExist) { createScript = false; } } if (createScript && scriptHref) { var script = document.createElement("script"); if (script) { if (idScript) { script.setAttribute('id', idScript); } script.setAttribute('type', 'text/javascript'); script.setAttribute('src', scriptHref); script.onload=ofeOnLoad; var head = document.getElementsByTagName('head')[0]; if (head) { head.appendChild(script); } } } } function includejQueryUI() { var script = document.createElement('script'); script.setAttribute('id', 'ofe-jquery-ui'); script.src = 'https://www.oferteo.pl/scripts/jquery/jquery-ui-1.10.3.custom.min.js'; document.getElementsByTagName('head')[0].appendChild(script); } function includejQuery(callback) { if(window.jQuery) { if (callback) { setTimeout(function() { callback(jQuery); }, 1000); } } else { var script = document.createElement('script'); script.onload = function() { jQuery.noConflict(); if (callback) { callback(jQuery); } }; script.setAttribute('id', 'ofe-jquery'); script.src = 'https://www.oferteo.pl/scripts/jquery/jquery-1.9.1.min.js'; document.getElementsByTagName('head')[0].appendChild(script); } } function creationframe(id, node, styleText, idStyle, idDiv, classDiv) { var content = '
Remonty mieszkań - komu zlecić?

Poniżej przedstawiamy ranking 156 313 Specjalistów od Remontów Mieszkań najlepszych w 2025 roku w poszczególnych miastach powiatowych:

'; iframe = document.createElement('iframe'); iframe.setAttribute("frameborder","0"); iframe.setAttribute("scrolling","no"); iframe.setAttribute("allowTransparency","true"); iframe.setAttribute("width","650px"); iframe.setAttribute("height","310px"); src = 'data:text/html;charset=utf-8'; iframe.setAttribute("src", src ); //node.parentNode.insertBefore(iframe, node.nextSibling); node.appendChild(iframe); iframe.onload = function() { var y = (iframe.contentWindow || iframe.contentDocument); if (y.document)y = y.document; var createStyle = true; if (idStyle) { var styleExist = y.getElementById(idStyle); if (styleExist) { createStyle = false; } } if (createStyle) { if (styleText) { var cssstyle = document.createElement("style"); if (cssstyle) { if (idStyle) { cssstyle.setAttribute('id', idStyle); } cssstyle.setAttribute('type', 'text/css'); var styles = document.createTextNode(styleText); if (cssstyle.styleSheet) { cssstyle.styleSheet.cssText = styles.nodeValue; } else { cssstyle.appendChild(styles); } var iHead = y.getElementsByTagName('head')[0]; if (iHead) { iHead.appendChild(cssstyle); } } } } y.body.innerHTML = y.body.innerHTML = '
' + content + '
'; } } var hash302 = ''; var _id302 = ''; hash302 = 'ofe-1659014-302'; _id302 = 'ofe-1659014-302'; var elements302 = getElementsByClassName(document, hash302); if (elements302 == null || elements302.length == 0) { hash302 = '1659014-54616'; elements302 = getElementsByClassName(document, hash302); } if (elements302 == null || elements302.length == 0) { hash302 = 'ofe-1659014-54616'; elements302 = getElementsByClassName(document, hash302); } if (elements302 == null || elements302.length == 0) { hash302 = '54616'; elements302 = getElementsByClassName(document, hash302); } if (elements302 == null || elements302.length == 0) { hash302 = '302'; elements302 = getElementsByClassName(document, hash302); } if (elements302 && elements302.length > 0) { for (var i = 0; i < elements302.length; i++) { var e302 = elements302[i]; var id302 = 'ofe_' + i + '_' + hash302; e302.id = id302; addStyle('.widgetCities__container { display: flex; justify-content: space-between;}.oferteo-content div.item .title-item { display: inline-block;}.widgetCities__p { border-bottom: medium none; line-height: 19px !important; margin: 0; font-size: 13px !important; font-family: Arial,​Georgia,​Tahoma, sans-serif; padding: 10px 0 20px;}.widgetCities__left { max-width: 160px; width: 100%; margin-right: 10px;}.widgetCities__right { width: 100%;}.widgetCities__img { width: 160px; height: 160px; object-fit: cover;}.widgetCities__list { display: flex; flex-wrap: wrap; list-style: none;}.widgetCities__listItem { flex-basis: 33%; display: flex; margin-left: 0;}.widgetCities__listItem span { line-height: 1; font-size: 11px !important; cursor: pointer; font-weight: 600;}.widgetCities__listItem .widgetCities__arrow { color: #0a467e;}.oferteo-content .content-right a.widgetCities__url { color: rgb(20, 108, 180) !important; display: flex; font-weight: 500; line-height: 24px; text-decoration: none !important;}.oferteo-content a.widgetCities__url:hover { text-decoration: none !important;}.widgetCities__url:hover .widgeteCities__cityName { text-decoration: none;}.widgetCities__url span { line-height: 1; font-size: 12px;text-decoration: underline;}.widgetCities__count { color: #333; font-weight: normal;}.widgetCities__arrow { margin-left: 5px; color: #cb0f30;}.widgetCities__arrow--btn { position: absolute; right: 20px;color: #fff;}.widgetCities__button { height: 32px; border-radius: 32px; width: 100%; display: flex; align-items: center; justify-content: center; background: #cb0f30; font-size: 14px; color: #fff; font-weight: 600; margin-top: 8px; outline: none; transition: all 0.3s; position: relative; max-width: 70%; border: none; cursor: pointer;}.widgetCities__button:hover { opacity: 0.75;}.item .w-3 h2 { font-size: 20px !important; margin-top: 0 !important; margin-bottom: 0 !important; font-weight: 700 !important;line-height: 25px;}.item .w-3 p { font-size: 14px; line-height: 20px; font-weight: 400; margin-top: 10px;}@media (max-width: 1220px) { .widgetCities__container, .item .w-3 p { max-width: 650px; width: 100%; } .widgetCities__left { display: none; } .widgetCities__list { padding-left: 15px; } .widgetCities__button { max-width: 100%; }}@media (max-width: 550px) { .widgetCities__list { padding-left: 0; } .hideCityOnMobile { display: none; } .widgetCities__listItem { flex-basis: 50%; } .widgetCities__listItem { flex-basis: 50%; }}@media (max-width: 360px) { .widgetCities__listItem { flex-basis: 100%; }}.item .w-3 .h2 { font-size: 20px !important; margin-top: 0 !important; margin-bottom: 0 !important; font-weight: 700 !important; line-height: 25px;}', 's_ofe-1659014-54616'); addClassCreationPool(id302, 'ofe-1659014-54616'); var creationDiv = document.getElementById(id302); creationDiv.innerHTML = '
Remonty mieszkań - komu zlecić?

Poniżej przedstawiamy ranking 156 313 Specjalistów od Remontów Mieszkań najlepszych w 2025 roku w poszczególnych miastach powiatowych:

'; var jscriptUrl = 'https://www.oferteo.pl/scripts/widget.js'; addScript(jscriptUrl, 'js-' + hash302); includejQuery(function($){ //includejQueryUI(); var pictureOnWidget = document.querySelector('#hrefOnImg'); document.querySelector(".widgetCities__button").addEventListener("click", function() { window.location = pictureOnWidget ; }); document.querySelector(".widgetCities__list").addEventListener("click", function(e) { if(e.target.classList.value === 'widgetCities__count' || e.target.classList.value === 'widgetCities__arrow' ) { console.log(e.target); window.location = e.target.parentElement.children[0].href; } }) }); } } processAnchors('a0', hash302); processAnchors('a1', hash302); processAnchors('a2', hash302); processAnchors('a3', hash302);