1jQuery(window).on("elementor/frontend/init", function () { 2 elementorFrontend.hooks.addAction( 3 "frontend/element_ready/rtm-offcanvas.default", 4 function ($scope, $) { 5 const $btn = $scope.find(".menu-button-rometheme"); 6 const $closeBtn = $scope.find(".rkit-offcanvas-close"); 7 const $overlay = $scope.find(".overlay-rometheme"); 8 9 $btn.click(function (e) { 10 e.preventDefault(); 11 $(this).closest(".rkit-offcanvas").addClass("offcanvas-show"); 12 $('body').css('overflow', 'hidden'); 13 }); 14 15 $closeBtn.click(function (e) { 16 e.preventDefault(); 17 $(this).closest(".rkit-offcanvas").removeClass("offcanvas-show"); 18 $('body').css('overflow', ''); 19 }); 20 21 $overlay.click(function (e) { 22 e.preventDefault(); 23 $(this).closest(".rkit-offcanvas").removeClass("offcanvas-show"); 24 $('body').css('overflow', ''); 25 }); 26 } 27 ); 28});
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.