1jQuery(window).on("elementor/frontend/init", function () { 2 elementorFrontend.hooks.addAction( 3 "frontend/element_ready/rkit-tabs.default", 4 function ($scope, $) { 5 var container = $scope.find(".rkit-tab-container"); 6 var tabBtn = container.find(".rkit-tab-btn-item"); 7 var tabContent = container.find(".rkit-tab-content"); 8 9 tabBtn.click(function () { 10 var tabContentId = $(this).data("tab"); 11 tabBtn.removeClass("active"); 12 tabContent.removeClass("active"); 13 var tabContentTarget = container.find("#" + tabContentId); 14 tabContentTarget.addClass("active"); 15 $(this).addClass("active"); 16 }); 17 18 // jQuery(".edit-template-btn").on("click", function (e) { 19 // e.preventDefault(); 20 21 // const modal = parent.jQuery("#saved-template-editor-modal"); 22 // if (!modal.length) { 23 // console.warn("Modal not found in parent."); 24 // return; 25 // } 26 27 // const targetUrl = 28 // jQuery(this).attr("href") || jQuery(this).data("href"); 29 // if (!targetUrl) { 30 // console.warn("No URL found on edit button."); 31 // return; 32 // } 33 34 // modal.fadeIn(); 35 36 // const iframe = modal.find(".ifr-editor"); 37 // iframe.attr("src", targetUrl); 38 39 // iframe[0].addEventListener("load", () => { 40 // console.log("Iframe content has loaded!"); 41 // iframe 42 // .contents() 43 // .find("#elementor-editor-wrapper-v2") 44 // .css("display", "none"); 45 // iframe 46 // .contents() 47 // .find("#elementor-editor-wrapper") 48 // .css("height", "100vh"); 49 // }); 50 // }); 51 52 jQuery(document).on("click", ".tabs-edit-template-btn", function (e) { 53 e.preventDefault(); 54 55 const targetUrl = 56 jQuery(this).attr("href") || jQuery(this).data("href"); 57 if (!targetUrl) return console.warn("No target URL found."); 58 59 window.parent.postMessage( 60 { 61 action: "open-saved-template-editor", 62 url: targetUrl, 63 }, 64 "*" 65 ); 66 }); 67 } 68 ); 69});
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.