1( function( $ ) { 2 /** 3 * @param $scope The Widget wrapper element as a jQuery element 4 * @param $ The jQuery alias 5 */ 6 var WidgetCTIlineHandler = function( $scope, $ ) { 7 8 var _inline_css = "<style>"; 9 $scope.find('.ct-inline-css').each(function () { 10 var _this = $(this); 11 _inline_css += _this.attr("data-css") + " "; 12 _this.remove(); 13 }); 14 _inline_css += "</style>"; 15 $('head').append(_inline_css); 16 17 }; 18 19 // Make sure you run this code under Elementor. 20 $( window ).on( 'elementor/frontend/init', function() { 21 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_text_editor.default', WidgetCTIlineHandler ); 22 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_angle.default', WidgetCTIlineHandler ); 23 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_fancy_box.default', WidgetCTIlineHandler ); 24 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_fancy_box_grid.default', WidgetCTIlineHandler ); 25 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_newsletter.default', WidgetCTIlineHandler ); 26 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_mailchimp_form.default', WidgetCTIlineHandler ); 27 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_service_grid.default', WidgetCTIlineHandler ); 28 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_particle_animate.default', WidgetCTIlineHandler ); 29 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_statistics.default', WidgetCTIlineHandler ); 30 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_point.default', WidgetCTIlineHandler ); 31 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_contact_info.default', WidgetCTIlineHandler ); 32 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_counter.default', WidgetCTIlineHandler ); 33 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_logo_animate.default', WidgetCTIlineHandler ); 34 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_heading.default', WidgetCTIlineHandler ); 35 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_button.default', WidgetCTIlineHandler ); 36 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_history_carousel.default', WidgetCTIlineHandler ); 37 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_team_carousel.default', WidgetCTIlineHandler ); 38 } ); 39} )( 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.