PageSourceSearch

https://www.roomsketcher.de/content/themes/rs-theme/build/scripts.js?ver=9ea6f3ef3423c39417e5

js roomsketcher.de collected 2026-10-05 18:03:24 UTC 11,130 bytes, 1 lines download raw bytes

1(()=>{var e={25:()=>{function e(){window.innerWidth<600||document.querySelectorAll('.wp-block-columns[class*="is-style-pricing-plans-"]').forEach(t)}function t(e){let t=0;e.querySelectorAll(".wp-block-column hr:first-of-type").forEach((e=>{e.removeAttribute("style"),t=e.offsetTop>t?e.offsetTop:t})),t>0&&e.querySelectorAll(".wp-block-column hr:first-of-type").forEach((e=>{const n=e.currentStyle||window.getComputedStyle(e);e.style.marginTop=`${t-e.offsetTop+parseInt(n.marginTop)}px`}))}function n(e){let t=e.target.parentElement;if(t.classList.contains("wp-block-button__link")&&(t=t.parentElement),t.classList.contains("selected"))return;document.querySelectorAll(".wp-block-buttons.is-style-pricing-tabs .wp-block-button.selected").forEach((e=>e.classList.remove("selected"))),t.classList.add("selected"),o(t.querySelector("a").attributes.href.textContent.replace("#",""));const n=t.parentElement.querySelector(".pricing-toggle");n&&n.setAttribute("aria-pressed","false"===n.getAttribute("aria-pressed"))}function o(e){["monthly","annual"].includes(e)&&("annual"===e?document.querySelectorAll(".toggle-subline").forEach((e=>e.classList.remove("hidden"))):document.querySelectorAll(".toggle-subline").forEach((e=>e.classList.add("hidden"))),document.querySelectorAll('.wp-block-columns[class*="is-style-pricing-plans-"]').forEach((e=>e.hidden=!0)),document.querySelectorAll(`.wp-block-columns.is-style-pricing-plans-${e}`).forEach((e=>{e.hidden=!1,t(e)})))}function r(e){const t=e.target,n=t.closest(".wp-block-column"),o="true"===n.getAttribute("aria-expanded");n.setAttribute("aria-expanded",!o),t.querySelector("span").textContent=t.getAttribute("data-text-"+(o?"default":"expanded"))}function c(e){const t=document.querySelectorAll(".rs-comparison-table__mobile-nav__button.active");t&&t.forEach((e=>{e.classList.remove("active")}));const n=e.currentTarget,o=document.querySelectorAll(".rs-comparison-table__mobile-nav__button"),r=Array.from(o).indexOf(n);n.classList.add("active");const c=document.querySelector(".wp-block-table.is-style-comparison-table");c&&-1!==r&&(c.dataset.activePlan=r+1)}document.addEventListener("DOMContentLoaded",(function(){document.addEventListener("roomsketcher:pricing-plan-change",(e=>o(e.detail?.plan))),document.querySelectorAll(".is-style-pricing-tabs .wp-block-button__link").forEach((e=>e.addEventListener("click",n)));const t=document.querySelector(`.is-style-pricing-tabs .wp-block-button__link[href="${window.location.hash||"#annual"}"]`);t&&t.click();const a=document.querySelector(".wp-block-rs-pricing-plans-switch");if(a){const e=window.location.hash.replace("#",""),t=a.querySelector('[role="tab"][aria-selected="true"]');o(["monthly","annual"].includes(e)?e:t?.dataset.pricingPlan)}!function(){var e;const t=null!==(e=roomsketcherTranslations)&&void 0!==e?e:{viewPlanFeatures:"View plan features",hidePlanFeatures:"Hide plan features"};document.querySelectorAll('.wp-block-columns[class*="is-style-pricing-plans"] .wp-block-column').forEach((e=>{const n=Array.from(e.querySelectorAll(":scope > ul"));if(n.length){const o=document.createElement("button");o.classList.add("toggle-pricing-plan-features","hide-for-small"),o.innerHTML=`\n\t\t\t\t\t<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t<rect x="4" y="11" width="16" height="2" />\n\t\t\t\t\t\t<rect x="11" y="4" width="2" height="16" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<span>${t.viewPlanFeatures}</span>\n\t\t\t\t`,o.setAttribute("data-text-default",t.viewPlanFeatures),o.setAttribute("data-text-expanded",t.hidePlanFeatures),o.addEventListener("click",r),e.insertBefore(o,n[0])}}))}(),e(),window.addEventListener("resize",e),function(){const e=document.querySelector(".wp-block-table.is-style-comparison-table");if(!e)return;const t=e.querySelectorAll("thead th:not(:first-child):not(:empty)");if(e.querySelectorAll("tr").forEach((e=>{if(e.querySelectorAll("td:not(:first-child):empty").length===t.length){const t=e.previousElementSibling;t&&"TR"===t.tagName&&(t.classList.add("is-divider"),e.remove())}})),t.length){const n=document.createElement("nav");n.classList.add("rs-comparison-table__mobile-nav"),t.forEach((e=>{const t=e.childNodes[0].textContent;if(t){const e=document.createElement("div");e.className="rs-comparison-table__mobile-nav__button";const o=document.createElement("div");o.className="plan-title",o.textContent=t,e.append(o),n.append(e)}})),e.prepend(n)}const n=document.querySelectorAll(".rs-comparison-table__mobile-nav__button");n.length&&(n.forEach((e=>{e.addEventListener("click",c)})),n[0].classList.add("active"))}()}))},58:()=>{const e={};function t(e){e.stopPropagation();const t=e.target.closest(".menu-item"),n=t.hasAttribute("aria-expanded");if(!d()&&!n)return c(t),e.preventDefault()}function n(e){e.stopPropagation();const t=e.target.closest(".menu-item");d()&&c(t)}function o(t){t.stopPropagation();const n=t.target.closest(".menu-item");d()&&(e[n]=setTimeout((()=>i(n)),300))}function r(e){return e.stopPropagation(),function(e,t=!1){if(e.hasAttribute("aria-expanded"))return i(e);c(e,t)}(e.target.closest(".menu-item"),!0),e.preventDefault()}function c(t,n=!1,o=!1){l(),t.setAttribute("aria-expanded",!0),document.querySelector(".site-nav").classList.add("has-open-submenu");const r=t.querySelector(":scope > a > .icon-trigger");r.setAttribute("aria-expanded",!0),r.setAttribute("aria-label",r.getAttribute("data-label-expanded")),clearTimeout(e[t]);const c=t.querySelectorAll(".sub-menu")[0],a=Array.from(c.querySelectorAll(".menu-item"));n&&setTimeout((()=>{a[0].querySelector("a").focus(),s(c)}),150),o&&setTimeout((()=>{a.pop().querySelector("a").focus(),s(c)}),150)}function a(){d()&&l()}function l(){document.querySelectorAll('.site-nav > .menu--primary .menu-item[aria-expanded="true"]').forEach((e=>i(e)))}function i(e){e.removeAttribute("aria-expanded");const t=e.querySelector(":scope > a > .icon-trigger");t.setAttribute("aria-expanded",!1),t.setAttribute("aria-label",t.getAttribute("data-label-unexpanded"));const n=document.querySelector(".site-nav");n.classList.contains("has-open-submenu")&&0===e.parentElement.querySelectorAll('.menu-item[aria-expanded="true"]').length&&n.classList.remove("has-open-submenu")}function s(e){const t=Array.from(e.querySelectorAll("a[href]:not([disabled])")),n=t[0],o=t[t.length-1];e.addEventListener("keydown",(function(r){if(40===r.keyCode){r.preventDefault();const e=t.indexOf(r.target);(r.target===o?n:t[e+1]).focus()}if(38===r.keyCode){r.preventDefault();const e=t.indexOf(r.target);(r.target===n?o:t[e-1]).focus()}27===r.keyCode&&(e.parentElement.removeAttribute("aria-expanded"),e.parentElement.querySelector(".icon-trigger").focus())}))}function u(){document.querySelectorAll(".site-nav > .menu--primary > .menu-item-has-children > .sub-menu").forEach((e=>{const t=e.parentElement.getBoundingClientRect(),n=e.getBoundingClientRect();e.classList.toggle("lefty",parseInt(t.x+n.width)>m())}))}function d(){return m()>=960&&document.body.classList.toString().includes("has-menu-style-line")}function m(){let e=window.innerWidth>0?window.innerWidth:screen.width;return screen.width<e&&(e=screen.width),e}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".site-nav > .menu--primary > .menu-item-has-children").forEach((l=>{const i=l.querySelector(":scope > a"),s=l.querySelector(":scope > a .icon-trigger"),u=l.querySelector(":scope .back-to-main-menu"),d=l.querySelector(":scope > .sub-menu");i.addEventListener("click",t),i.addEventListener("focus",a),i.addEventListener("mouseenter",n),d.addEventListener("mouseenter",n),i.addEventListener("mouseleave",o),d.addEventListener("mouseleave",o),s.addEventListener("click",r),u.addEventListener("click",r),e[l.id]=null,function(e){const t=e.closest(".menu-item");e.addEventListener("keydown",(function(e){40===e.keyCode&&(e.preventDefault(),c(t,!0)),38===e.keyCode&&(e.preventDefault(),c(t,!1,!0))}))}(s)})),document.addEventListener("click",a),document.querySelectorAll(".site-nav a").forEach((e=>{e.addEventListener("click",(e=>e.stopPropagation()))})),u(),window.onresize=u}))},700:()=>{function e(){document.body.classList.toggle("has-visible-menu")}let t=0,n=0;function o(){n=parseInt(getComputedStyle(document.body).getPropertyValue("--site-header-total-height"))}function r(){let e=(window.pageYOffset||document.scrollTop)-(document.clientTop||0);Number.isNaN(e)&&(e=0),document.body.classList.toggle("has-floating-header",t<e&&e>n),document.body.classList.toggle("has-sticky-header",t>e&&e>0),t=e}function c(e,t){let n=Date.now();return()=>{n+t-Date.now()<0&&(e(),n=Date.now())}}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".menu-toggle").forEach((t=>t.addEventListener("click",e))),r()})),document.addEventListener("DOMContentLoaded",o),window.addEventListener("scroll",c(r,20)
1),window.addEventListener("resize",c(o,20))},847:()=>{let e=0;function t(e){const{selector:t,eventCategory:n,includeElementType:o}=e;document.querySelectorAll(t).forEach((e=>{e.addEventListener("click",(function(){const e={link_text:this.textContent.trim(),link_url:this.href};if(o){const t=function(e){let t="";return t=e.classList.contains("wp-block-button__link")?e.parentElement.classList.contains("is-style-cta")?"Primary Button":"Secondary Button":e.querySelector("img")?"Image Link":"Text Link",t}(this);e.element_type=t}window.gtag("event",n,e)}))}))}document.addEventListener("DOMContentLoaded",(function n(){const o=new URL(window.location).host;if(["www.roomsketcher.com","ra.roomsketcher.com"].includes(o)){if("function"==typeof window.gtag)return function(e){let n=[];"www.roomsketcher.com"===e?n=[{selector:"nav ul#menu-main-menu a",eventCategory:"menu_click"},{selector:"ul#menu-header-menu a",eventCategory:"menu_cta_click",includeElementType:!0},{selector:"nav ul#menu-mobile-menu-additions a",eventCategory:"menu_cta_click",includeElementType:!0},{selector:"a.wp-block-button__link",eventCategory:"button_click",includeElementType:!0}]:"ra.roomsketcher.com"===e&&(n=[{selector:"nav a",eventCategory:"menu_click"},{selector:"div.rs-header-menu a.btn",eventCategory:"menu_cta_click",includeElementType:!0},{selector:"a.wp-block-button__link",eventCategory:"button_click",includeElementType:!0}]),n.forEach(t)}(o);e<5&&(e++,setTimeout(n,1e3))}}))}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var c=t[o]={exports:{}};return e[o](c,c.exports,n),c.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(847),n(700),n(58),n(25),document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll("#main-content .wp-social-link-facebook > a"),t=document.querySelectorAll("#main-content .wp-social-link-linkedin > a");e.forEach((e=>e.href="http://www.facebook.com/share.php?u="+encodeURIComponent(location.href))),t.forEach((e=>e.href="http://www.linkedin.com/shareArticle?url="+encodeURIComponent(location.href)))}))})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.