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 = '

Księgowość - znajdź wykonawcę

Wybierz lokalizację, wypełnij krótki formularz i znajdź Biur Rachunkowych i Księgowych

'; iframe = document.createElement('iframe'); iframe.setAttribute("frameborder","0"); iframe.setAttribute("scrolling","no"); iframe.setAttribute("allowTransparency","true"); iframe.setAttribute("width","640px"); 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 hash821 = ''; var _id821 = ''; hash821 = 'ofe-1788645-821'; _id821 = 'ofe-1788645-821'; var elements821 = getElementsByClassName(document, hash821); if (elements821 == null || elements821.length == 0) { hash821 = '1788645-72752'; elements821 = getElementsByClassName(document, hash821); } if (elements821 == null || elements821.length == 0) { hash821 = 'ofe-1788645-72752'; elements821 = getElementsByClassName(document, hash821); } if (elements821 == null || elements821.length == 0) { hash821 = '72752'; elements821 = getElementsByClassName(document, hash821); } if (elements821 == null || elements821.length == 0) { hash821 = '821'; elements821 = getElementsByClassName(document, hash821); } if (elements821 && elements821.length > 0) { for (var i = 0; i < elements821.length; i++) { var e821 = elements821[i]; var id821 = 'ofe_' + i + '_' + hash821; e821.id = id821; addStyle('.ofeWidgetCities {background: #fff;padding-bottom: 1em;font-family: "Roboto:", sans-serif;font-size: 15px; line-height: 1.47;text-align: left;}.ofeWidgetCities__heading {margin: 0.83em 0;font-family: "Roboto:", sans-serif;font-size: 22px;font-weight: 600;line-height: 1.47;}.ofeWidgetCities__container {display: flex;}.ofeWidgetCities__text {margin: 1em 0 0.5em;}.ofeWidgetCities__urlImg {margin-right: 1em;width: 100%;max-width: 180px;}img.ofeWidgetCities__img {margin-bottom: 0;margin-right: 1em;width: 177px;height: 177px;object-fit: cover;}.ofeWidgetCities__list {display: flex;flex-wrap: wrap;justify-content: space-between;margin: 0 0 0.8em !important; padding: 0;list-style: none;}.ofeWidgetCities__item {flex-basis: 33%;margin: 0;font-size: 15px;line-height: 1.8;}.widgetCities__firstItem { display: none;}.widgetCities__firstItem a::after { content: ""; background-color: #3363E4; width: 100%; height: 1px; display: block; margin-top: -2px;}.widgetCities__firstItem.true { display: flex;}.widgetCities__lastItem.false { display: none;}a.ofeWidgetCities__itemUrl {text-decoration: none;}.ofeWidgetCities__itemUrl:hover .ofeWidgetCities__city {color: #3363E4; text-decoration: underline;}.ofeWidgetCities__city {padding-right: 0.3em;font-weight: 600;color: #3363E4;}.ofeWidgetCities__count, .ofeWidgetCities__raquo {padding-right: 0.3em;font-weight: 500;color: #000;}a.ofeWidgetCities__btn {display: block;padding: 8px 20px;border-radius: 3px;background: #FDDA50;text-align: center; font-family: "Roboto:", sans-serif; font-size: 16px;font-weight: 700; line-height: 1.6;text-decoration: none;color: #000 !important;}.ofe-btn-text-all.true { display: none;}.ofe-btn-text.true { display: none;}@media (max-width: 1280px) {.ofeWidgetCities__urlImg {display: none;}.ofeWidgetCities__list {padding-left: 0;}}@media (max-width: 968px) {.ofeWidgetCities__item {flex-basis: 50%;}.hideItemOnMobile {display: none;}}@media (max-width: 840px) { .ofeWidgetCities { line-height: 1.8; } .ofeWidgetCities__text { line-height: 1.47; } .ofeWidgetCities__item { line-height: 1.8; } .ofeWidgetCities__heading { line-height: 1.47; }}@media (max-width: 480px) {.ofeWidgetCities__item {flex-basis: 100%;}}', 's_ofe-1788645-72752'); addClassCreationPool(id821, 'ofe-1788645-72752'); var creationDiv = document.getElementById(id821); creationDiv.innerHTML = '

Księgowość - znajdź wykonawcę

Wybierz lokalizację, wypełnij krótki formularz i znajdź Biur Rachunkowych i Księgowych

'; var jscriptUrl = 'https://www.oferteo.pl/scripts/widget.js'; addScript(jscriptUrl, 'js-' + hash821); includejQuery(function($){ //includejQueryUI(); document.querySelectorAll(".widgetCities__list") .forEach((widgetElement) => { widgetElement.addEventListener('click', (e) => { if(e.target.classList.value === 'widgetCities__count' || e.target.classList.value === 'widgetCities__arrow' ) { window.open(e.target.parentElement.children[0].href, '_blank'); } }); }); }); } } processAnchors('a0', hash821); processAnchors('a1', hash821); processAnchors('a2', hash821); processAnchors('a3', hash821);