PageSourceSearch

https://solbaaden.dk/static/editor-loadable-scripts/common.js?v=1787499224766

js solbaaden.dk collected 2026-09-28 15:18:30 UTC 1,148 bytes, 46 lines download raw bytes

1(() => {
2  const documentContext = this.documentContext;
3
4  if (!window.brickSite) {
5    window.brickSite = {};
6  }
7
8  window.brickSite.common = {
9    document: documentContext || document,
10    apiUrls: {
11      base: 'https://gateway.bricksite.com',
12      forms: {
13        base: 'forms',
14        contact: 'contact',
15      },
16      cms: {
17        base: 'cms/api',
18      },
19    },
20    getBricksContext: (elementSelector) => {
21      return documentContext
22        ? documentContext.querySelectorAll(elementSelector)
23        : document.querySelectorAll(elementSelector);
24    },
25    getElementById: (id) => {
26      if (documentContext) {
27        return documentContext.getElementById(id);
28      }
29      return document.getElementById(id);
30    },
31    clonedElement: (oldElement) => {
32      if (documentContext) {
33        var newElement = oldElement.cloneNode(true);
34
35        oldElement.parentNode.replaceChild(newElement, oldElement);
36
37        return newElement;
38      }
39
40      return oldElement;
41    },
42    isTouchDevice: () => {
43      return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
44    },
45  };
46})();

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.