1jQuery(window).on('load', function() { 2 if ( jQuery('body').find('.dipl_button_horizontal_shutter_fill').length > 0 ) { 3 jQuery('.dipl_button_horizontal_shutter_fill').on('mouseenter',function(){ 4 let parentElem = jQuery(this).parents('.et_pb_module').prop('class').match(/dipl_button_item_\d+/); 5 if ( jQuery('head style[data-class="'+parentElem+'"]').length < 1 ) { 6 let btnWidth = jQuery(this).innerWidth(); 7 let beforePos = 'background-position: ' + parseInt( btnWidth/2 ) + 'px center'; 8 let afterPos = 'background-position: -' + parseInt( btnWidth/2 ) + 'px center'; 9 let style = '<style data-class="'+parentElem+'">.dipl_button .'+parentElem+' .dipl_button_horizontal_shutter_fill .dipl_background_effect_wrap:before{'+beforePos+'} .dipl_button .'+parentElem+' .dipl_button_horizontal_shutter_fill .dipl_background_effect_wrap:after{'+afterPos+'}</style>'; 10 jQuery('head').append(style); 11 } 12 }); 13 } 14 if ( jQuery('body').find('.dipl_button_vertical_shutter_fill').length > 0 ) { 15 jQuery('.dipl_button_vertical_shutter_fill').on('mouseenter',function(){ 16 let parentElem = jQuery(this).parents('.et_pb_module').prop('class').match(/dipl_button_item_\d+/); 17 if ( jQuery('head style[data-class="'+parentElem+'"]').length < 1 ) { 18 let btnHeight = jQuery(this).innerHeight(); 19 let beforePos = 'background-position: center ' + parseInt( btnHeight/2 ) + 'px'; 20 let afterPos = 'background-position: center -' + parseInt( btnHeight/2 ) + 'px'; 21 let style = '<style data-class="'+parentElem+'">.dipl_button .'+parentElem+' .dipl_button_vertical_shutter_fill .dipl_background_effect_wrap:before{'+beforePos+'} .dipl_button .'+parentElem+' .dipl_button_vertical_shutter_fill .dipl_background_effect_wrap:after{'+afterPos+'}</style>'; 22 jQuery('head').append(style); 23 } 24 }); 25 } 26});
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.