1jQuery( window ).on( 'elementor/frontend/init', function () { 2 function addCustomCss ( css, context ) { 3 if ( !context ) { 4 return; 5 } 6 var customCss = ''; 7 8 var model = context.model, 9 customCssDesktop = model.get( 'settings' ).get( '_custom_css_f_ele_css_desktop' ), 10 customCssTablet = model.get( 'settings' ).get( '_custom_css_f_ele_css_tablet' ), 11 customCssMobile = model.get( 'settings' ).get( '_custom_css_f_ele_css_mobile' ); 12 13 customCss += customCssDesktop ? customCssDesktop : ''; 14 customCss += customCssTablet ? ' @media (max-width: ' + modelData.breakpoints.tablet + 'px) { ' + customCssTablet + '}' : ''; 15 customCss += customCssMobile ? ' @media (max-width: ' + modelData.breakpoints.mobile + 'px) { ' + customCssMobile + '}' : ''; 16 17 if ( !customCss ) { 18 return; 19 } 20 21 var selector = '.elementor-' + modelData.postID + ' .elementor-element.elementor-element-' + model.get( 'id' ); 22 23 if ( 'document' === model.get( 'elType' ) ) { 24 selector = elementor.config.document.settings.cssWrapperSelector; 25 } 26 27 if ( customCss ) { 28 css += customCss.replaceAll( 'selector', selector ); 29 } 30 31 return DOMPurify.sanitize( css, { CSS: true } ); 32 } 33 34 if ( ( typeof elementor ) !== 'undefined' ) { 35 elementor.hooks.addFilter( 'editor/style/styleText', addCustomCss ); 36 } 37} );
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.