PageSourceSearch

https://www.ostelsheim.de/cache-buster-1787147097/assets/bundles/hitcomfrontend/js/layouts/default.min.js

js ostelsheim.de collected 2026-09-25 04:09:15 UTC 4,649 bytes, 1 lines download raw bytes

1((e,t)=>{t.addEventListener("DOMContentLoaded",()=>{t.querySelectorAll("a:is(.arrow, .pdf):not(:has(span))").forEach(e=>{let t=e.innerHTML.trim().split(" ");if(t.length>1){let n=t.pop();e.innerHTML=`${t.join(" ")} <span class="last">${n}</span>`}}),t.querySelectorAll(".content--editor table, .accordion-body table").forEach(e=>{if(e.parentNode?.classList.contains("table-responsive-lg"))return;const n=t.createElement("div");n.classList.add("table-responsive-lg"),e.parentNode?.insertBefore(n,e),n.appendChild(e),e.classList.add("table")});class n{constructor(e,t){this.element=e,this.maxLength=t,this.wrapper=null,this.lastValidHTML=e.innerHTML,this.init()}init(){this.wrapper=this.wrapElement(this.element,"div","pimcore_editable_wrapper"),this.element.addEventListener("focus",e=>this.handleFocus(e)),this.element.addEventListener("input",e=>this.handleInput(e)),this.element.addEventListener("paste",e=>this.handlePaste(e),!0),this.updateCounter()}getVisibleTextLength(){return this.element.textContent.length}handleFocus(e){this.updateCounter()}handleInput(e){const t=void 0;this.getVisibleTextLength()>this.maxLength?this.restoreLastValidState():this.lastValidHTML=this.element.innerHTML,this.updateCounter()}handlePaste(n){n.preventDefault(),n.stopPropagation();const a=(n.clipboardData||e.clipboardData).getData("text"),s=this.getVisibleTextLength(),i=this.maxLength-s;if(i>0){const n=a.substring(0,i),s=e.getSelection();if(s.rangeCount>0){const e=s.getRangeAt(0);e.deleteContents(),e.insertNode(t.createTextNode(n)),e.collapse(!1)}setTimeout(()=>{this.getVisibleTextLength()<=this.maxLength?this.lastValidHTML=this.element.innerHTML:this.restoreLastValidState(),this.updateCounter()},0)}}restoreLastValidState(){const t=e.getSelection(),n=void 0;let a=0;(t.rangeCount>0?t.getRangeAt(0):null)&&(a=this.getCursorPosition()),this.element.innerHTML=this.lastValidHTML,this.setCursorPosition(Math.min(a,this.maxLength))}getCursorPosition(){const t=e.getSelection();if(0===t.rangeCount)return 0;const n=t.getRangeAt(0),a=n.cloneRange();return a.selectNodeContents(this.element),a.setEnd(n.endContainer,n.endOffset),a.toString().length}setCursorPosition(n){const a=e.getSelection(),s=t.createRange();try{const e=t.createTreeWalker(this.element,NodeFilter.SHOW_TEXT,null,!1);let i=0,r;for(;r=e.nextNode();){const e=r.textContent.length;if(i+e>=n){s.setStart(r,n-i),s.collapse(!0);break}i+=e}a.removeAllRanges(),a.addRange(s)}catch(e){s.selectNodeContents(this.element),s.collapse(!1),a.removeAllRanges(),a.addRange(s)}}wrapElement(e,n="div",a=null){const s=t.createElement(n);return a&&(s.className=a),e.parentNode.insertBefore(s,e),s.appendChild(e),s}updateCounter(){if(this.wrapper){const e=this.element.textContent.length;this.wrapper.setAttribute("date-text-length",`${e} / ${this.maxLength}`)}}}const a=t.querySelectorAll('.pimcore_editable_input:is(.has-counter), .pimcore_editable_input:is([class*="has-counter-"]), .pimcore_editable_textarea:is(.has-counter), .pimcore_editable_textarea:is([class*="has-counter-"])');if(a.length>0){let e=t.querySelector("style.pimcore-editables-wrapper");e||(e=t.createElement("style"),e.className="pimcore-editables-wrapper",e.textContent='\n                    .pimcore_editable_wrapper:has(.has-counter),\n                    .pimcore_editable_wrapper:has([class*="has-counter-"]) {\n                        position: relative;\n                    }\n                    .pimcore_editable_wrapper:has(.has-counter):focus-within,\n                    .pimcore_editable_wrapper:has([class*="has-counter-"]):focus-within {\n                        outline: none;\n                        box-shadow: 0 0 0 2px var(--color-primary);\n                    }\n                    .pimcore_editable_wrapper:has(.has-counter):focus-within::after,\n                    .pimcore_editable_wrapper:has([class*="has-counter-"]):focus-within::after {\n                        content: attr(date-text-length);\n                        position: absolute;\n                        top: calc(100% + 2px);\n                        right: -2px;\n                        padding: 4px;\n                        font-size: 0.875rem;\n                        line-height: 1;\n                        white-space: nowrap;\n                        color: var(--color-white);\n                        background-color: var(--color-primary);\n                    }
1\n                ',t.head.appendChild(e)),a.forEach(e=>{const t=Array.from(e.classList).find(e=>e.startsWith("has-counter-")),a=t?parseInt(t.replace("has-counter-",""),10):e.classList.contains("pimcore_editable_textarea")?100:50;new n(e,a)})}})})(window,document);

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.