PageSourceSearch

https://pranaresortsamui.com/wp-content/plugins/milenia-theme-func…/js/milenia-js-composer-front.js?ver=1.0.0

js pranaresortsamui.com collected 2026-10-07 06:54:29 UTC 3,135 bytes, 108 lines download raw bytes

1;(function($){
2    'use strict';
3
4    if(!$) return;
5    if(!$.Milenia) $.Milenia = {};
6    if(!$.Milenia.helpers) $.Milenia.helpers = {};
7
8    if(!$.Milenia.helpers.VCFrontEndEditor) $.Milenia.helpers.VCFrontEndEditor = {};
9
10    /**
11     * The 'fullPageReBuilderListener' helper
12     */
13    $.Milenia.helpers.fullPageReBuilderListener = {};
14
15    $.Milenia.helpers.fullPageReBuilderListener.init = function(selector) {
16        if(!selector) return;
17        this.$runtimeElems = $(selector);
18        this.selector = selector;
19        this.$w = $(window);
20
21        if(!this.$runtimeElems.length) return;
22
23        this.intervalID = setInterval(this.checkElems.bind(this), 100);
24    };
25
26    $.Milenia.helpers.fullPageReBuilderListener.checkElems = function() {
27        var $nowExistingElements = $(this.selector);
28
29        if($nowExistingElements.length != this.$runtimeElems.length) {
30            this.$w.trigger('vc_reload', {fromMileniaHelper: true});
31            this.$runtimeElems = $(this.selector);
32        }
33    };
34
35
36    /**
37     * The 'composerRTLFix' helper
38     */
39    $.Milenia.helpers.composerRTLFix = {};
40
41    $.Milenia.helpers.composerRTLFix._collection = $();
42
43    $.Milenia.helpers.composerRTLFix.init = function(collection) {
44        var _self = this;
45
46        if(!collection || !collection.length) return;
47
48        this.$w = $(window);
49
50        if(!this.bindedOnceEvents) this._bindOnceEvents();
51
52        collection.each(function(index, row){
53            var $row = $(row);
54            if(_self._collection.filter($row).length) return;
55
56            _self._collection = _self._collection.add($row);
57        });
58
59        this.$w.trigger('resize.MileniacomposerRTLFix');
60
61        return collection;
62    };
63
64    $.Milenia.helpers.composerRTLFix._bindOnceEvents = function() {
65        var _self = this;
66
67        this.$w.on('resize.MileniacomposerRTLFix', function() {
68            if(_self.resizeTimeOutId) clearTimeout(_self.resizeTimeOutId);
69
70            _self.resizeTimeOutId = setTimeout(function(){
71                _self.setOffset();
72            }, 100);
73        });
74    };
75
76    $.Milenia.helpers.composerRTLFix.setOffset = function() {
77        return this._collection.each(function(index, row){
78            var $row = $(row),
79                left = parseInt($row.css('left'), 10);
80
81            $row.css({
82                'right': left,
83                'left': 'auto'
84            });
85
86        });
87    };
88
89    $.Milenia.helpers.composerFlexibleGrid = {};
90
91    $.Milenia.helpers.composerFlexibleGrid.init = function($columns) {
92        if($columns.length) {
93            $columns.each(function(index, column){
94                var $column = $(column),
95                    classes = $column.data('compose-mode-col-classes'),
96                    $parentCol;
97
98                if(classes) {
99                    $parentCol = $column.parent('.vc_vc_milenia_flexible_grid_column');
100                    if($parentCol.length) $parentCol.addClass(classe
100s);
101                }
102
103                $column.data('compose-mode-col-classes', null).attr('data-compose-mode-col-classes', '');
104            });
105        }
106    };
107
108})(window.jQuery);

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.