1/* 2 3[Main Script] 4 5Project: Frutin 6Version: 1.0 7Author : Themeholy 8 9*/ 10;(function($){ 11 "use strict"; 12 13 jQuery(window).on( 'elementor/frontend/init', function() { 14 // console.log( elementorFrontend); 15 if( typeof elementor != "undefined" && typeof elementor.settings.page != "undefined" ) { 16 17 elementor.settings.page.addChangeCallback( 'frutin_header_style', function ( newValue ) { 18 if( newValue == 'prebuilt' ) { 19 elementor.saver.update({ 20 onSuccess: function() { 21 elementor.reloadPreview(); 22 elementor.once( 'preview:loaded', function() { 23 elementor.getPanelView().setPage( 'page_settings' ).activateTab('settings'); 24 } ); 25 } 26 }); 27 } 28 } ); 29 30 31 elementor.settings.page.addChangeCallback( 'frutin_header_builder_option', function ( newValue ) { 32 elementor.saver.update({ 33 onSuccess: function() { 34 elementor.reloadPreview(); 35 elementor.once( 'preview:loaded', function() { 36 elementor.getPanelView().setPage( 'page_settings' ).activateTab('settings'); 37 } ); 38 } 39 }); 40 } ); 41 42 elementor.settings.page.addChangeCallback( 'frutin_footer_style', frutinFooterStyle ); 43 function frutinFooterStyle ( newValue ) { 44 elementor.saver.update({ 45 onSuccess: function() { 46 elementor.reloadPreview(); 47 elementor.once( 'preview:loaded', function() { 48 elementor.getPanelView().setPage( 'page_settings' ).activateTab('settings'); 49 } ); 50 } 51 }); 52 } 53 elementor.settings.page.addChangeCallback( 'frutin_footer_choice', frutinFooterChoice ); 54 function frutinFooterChoice ( newValue ) { 55 elementor.saver.update({ 56 onSuccess: function() { 57 elementor.reloadPreview(); 58 elementor.once( 'preview:loaded', function() { 59 elementor.getPanelView().setPage( 'page_settings' ).activateTab('settings'); 60 } ); 61 } 62 }); 63 } 64 65 } 66 }); 67 68})(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.