1(function ($) { 2 var WidgetElements_RellaxHandlerFront = function ($scope, $) { 3 var elementSettings = dceGetElementSettings($scope); 4 var rellax = null; 5 6 $(window).on("resize", function () { 7 if (rellax) { 8 rellax.destroy(); 9 initRellax(); 10 } 11 }); 12 13 var initRellax = function () { 14 if (!elementSettings.enabled_rellax) { 15 return; 16 } 17 18 let currentDevice = elementorFrontend.getCurrentDeviceMode(); 19 let setting_speed = 20 currentDevice === "desktop" 21 ? "speed_rellax" 22 : "speed_rellax_" + currentDevice; 23 let value_speed = elementSettings[setting_speed] 24 ? elementSettings[setting_speed].size 25 : 0; 26 let rellaxId = "#rellax-" + $scope.data("id"); 27 28 if ($(rellaxId).length) { 29 rellax = new Rellax(rellaxId, { speed: value_speed }); 30 } 31 }; 32 33 initRellax(); 34 }; 35 36 $(window).on("elementor/frontend/init", function () { 37 elementorFrontend.hooks.addAction( 38 "frontend/element_ready/global", 39 WidgetElements_RellaxHandlerFront, 40 ); 41 }); 42})(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.