PageSourceSearch

https://www.daltile.com/-/media/Base-Themes/Editing-Components/Scripts/component-overlay-edit.js

js daltile.com collected 2026-09-24 19:04:08 UTC 1,452 bytes, 42 lines download raw bytes

1XA.component.overlay && XA.component.overlay.initInstance && (XA.component.overlay.initInstance = (function (func, $) {
2    function isEditMode() {
3        if (window.location.href.indexOf("sc_mode=edit") > -1) {
4            return true;
5        }
6        var $hdPageMode = $('#hdPageMode');
7        return $hdPageMode.length > 0 && $hdPageMode.attr('value') == 'edit';
8    }
9	
10    return function (component, prop) {
11        var answer
12        if (!isEditMode()) {
13             answer = func.apply(this, [component,_prop]);
14        }
15        return answer;
16    }
17})(XA.component.overlay.initInstance, jQuery))
18XA.component.overlay && XA.component.overlay.resizeOverlay && (XA.component.overlay.resizeOverlay = (function (func, $) {
19	var beforeInitScript = function (inner, content, options) {
20        if (options.percent) {
21            if (isEditMode()) {
22                inner.addClass("edit")
23            }
24        } else {
25            if (isEditMode()) {
26                inner.removeClass("edit")
27            }
28        }
29    }
30    return function (inner, content, options) {
31        try {
32            var _prop = beforeInitScript(component, prop);
33        } catch (e) {
34            // eslint-disable-next-line no-console
35            console.log(e)
36        }
37        var answer = func.apply(this, [inner, content, options]);
38        return answer;
39    }
40
41})(XA.component.overlay.resizeOverlay, jQuery))
42

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.