1(function ($) { 2 ("use strict"); 3 4 5 $( window ).on( 'elementor:init', function() { 6 var LayoutControl = elementor.modules.controls.BaseData.extend( { 7 onReady: function() { 8 var self = this; 9 var options = this.ui.radio; 10 options.each(function(key, value){ 11 $(value).on("click", function(){ 12 options.each(function(key2, value2){ 13 if($(value2).parent().hasClass("selected")){ 14 $(value2).parent().removeClass("selected"); 15 } 16 }); 17 $(this).parent().addClass("selected"); 18 }); 19 }); 20 }, 21 22 saveValue: function() { 23 var self = this; 24 var options = this.ui.radio; 25 $.each(options, function(key, value){ 26 if($(value).is(':checked')){ 27 self.setValue( $(value).val() ); 28 } 29 }); 30 }, 31 32 onBeforeDestroy: function() { 33 this.saveValue(); 34 } 35 } ); 36 elementor.addControlView( 'elementor-layout-control', LayoutControl ); 37 } ); 38 39 40 })(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.