1window.WP_Grid_Builder && WP_Grid_Builder.on('init', function(wpgb) { 2 3 wpgb.facets.on('appended', function(content) { 4 5 content.forEach((container,index) => { 6 7 /* Pro Accordion */ 8 if (typeof doExtrasAccordion == 'function') { 9 10 doExtrasAccordion(container) 11 12 /* targeting items inside accordion*/ 13 if ( ( ( content.length - 1 ) === index ) && container.closest('.x-accordion.wpgb-enabled') ) { 14 if ( container.parentNode && container.parentNode.parentNode ) { 15 doExtrasAccordion(container.parentNode.parentNode) 16 } 17 } 18 } 19 20 /* Pro Slider */ 21 if (typeof doExtrasSlider == 'function') { 22 doExtrasSlider(container) 23 } 24 25 /* Read More / Less */ 26 if (typeof doExtrasReadmore == 'function') { 27 setTimeout(() => { 28 doExtrasReadmore(container) 29 }, 100); 30 31 } 32 33 /* Dynamic Lightbox */ 34 if (typeof doExtrasLightbox == 'function') { 35 36 if ( container.parentElement ) { 37 38 /* destroy other lightboxes in loop first */ 39 container.parentElement.querySelectorAll('.brxe-xdynamiclightbox').forEach(otherLightbox => { 40 if ( undefined !== window.xDynamicLightbox.Instances[otherLightbox.dataset.xId] ) { 41 window.xDynamicLightbox.Instances[otherLightbox.dataset.xId].destroy() 42 43 } 44 45 }) 46 47 /* last element to load, init all in loop */ 48 if ( ( content.length - 1 ) === index ) { 49 setTimeout(() => { 50 doExtrasLightbox(container.parentElement, true) 51 }, 1000) 52 53 } 54 55 } 56 57 } 58 59 /* Social share */ 60 if (typeof doExtrasSocialShare == 'function') { 61 doExtrasSocialShare(container) 62 } 63 64 /* OffCanvas */ 65 if (typeof doExtrasOffCanvas == 'function') { 66 doExtrasOffCanvas(container) 67 } 68 69 /* modal */ 70 if (typeof doExtrasModal == 'function') { 71 doExtrasModal(container) 72 } 73 74 /* popover */ 75 if (typeof doExtrasPopover == 'function') { 76 doExtrasPopover(container) 77 } 78 79 /* timeline */ 80 if (typeof doExtrasTimeline == 'function') { 81 window.dispatchEvent(new Event('resize')) 82 } 83 84 /* tabs */ 85 if (typeof doExtrasTabs == 'function') { 86 doExtrasTabs(container) 87 } 88 89 /* lottie */ 90 if (typeof doExtrasLottie == 'function') { 91 doExtrasLottie(container, true) 92 } 93 94 /* media player */ 95 if (typeof doExtrasMediaPlayer == 'function') { 96 doExtrasMediaPlayer(container) 97 } 98 99 /* copy to clipboard */ 100 if (typeof doExtrasCopyToClipBoard == 'function') { 101 doExtrasCopyToClipBoard(container) 102 } 103 if (typeof doExtrasCopyToClipBoardPopover == 'function') { 104 doExtrasCopyToClipBoardPopover(container) 105 } 106 107 /* dynamic map */ 108 if (typeof doExtrasDynamicMap == 'function') { 109 if (container.closest('.brxe-section')) { 110 doExtrasDynamicMap(container.closest('.brxe-section')) 111 } 112 } 113 114 /* parallax */ 115 if (typeof doExtrasParallax == 'function') { 116 doExtrasParallax(container) 117 } 118 119 /* tilt */ 120 if (typeof doExtrasTilt == 'function') { 121 doExtrasTilt(container) 122 } 123 124 /* interactions */ 125 if (typeof doExtrasInteractions == 'function') { 126 doExtrasInteractions(container) 127 } 128 129 /* table */ 130 if (typeof doExtrasTable == 'function') { 131 doExtrasTable(container) 132 } 133 134 /* chart */ 135 if (typeof doExtrasChart == 'function') { 136 doExtrasChart(container) 137 } 138 139 /* before after */ 140 if (typeof doExtrasBeforeAfterImage == 'function') { 141 doExtrasBeforeAfterImage(container) 142 } 143 144 /* countdown */ 145 if (typeof doExtrasCountdown == 'function') { 146 doExtrasCountdown(container) 147 } 148 149 /* image hotspots */ 150 if (typeof doExtrasImageHotspots == 'function') { 151 doExtrasImageHotspots(container) 152 } 153 154 /* toggle switch */ 155 if (typeof doExtrasToggleSwitch == 'function') { 156 doExtrasToggleSwitch(container) 157 } 158 159 /* favorites */ 160 if (typeof doExtrasFavorite == 'function') { 161 doExtrasFavorite(container) 162 if (typeof doExtrasFavoritePopover == 'function') { 163 doExtrasFavoritePopover(container) 164 } 165 166 } 167 168 169 170 171 172 }) 173 174 }) 175 176})
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.