1jQuery( document ).ready( function( $ ) { 2 // Create collapsible sub menus in Divi Header Nav 3 $( "<div class='sub-menu-toggle'></div>" ).insertBefore( "#main-header #mobile_menu.et_mobile_menu .menu-item-has-children > a" ); 4 $( "#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle" ).click(function () { 5 $(this).toggleClass("popped"); 6 }); 7 // If a Divi Blurb module has a link around the blurb image or the blurb title, then move the link so it wraps the entire blurb 8 $('.et_pb_blurb.blurb-click').each(function() { 9 var blurb_content = $('.et_pb_blurb_content', this); 10 var blurb_image_link = $('.et_pb_blurb_content .et_pb_main_blurb_image a', this); 11 var blurb_title_link = $('.et_pb_blurb_content .et_pb_blurb_container .et_pb_module_header a', this); 12 // if blurb has an image link and a title link, unwrap both links, and then wrap the image link around the entire content 13 if ( $(blurb_image_link).length && $(blurb_title_link).length ) { 14 blurb_image_link.contents().unwrap(); 15 blurb_title_link.contents().unwrap(); 16 blurb_content.wrap(blurb_image_link); 17 } 18 // otherwise, if blurb has only an image link, unwrap it, and then wrap it around the entire content 19 else if ( $(blurb_image_link).length ) { 20 blurb_image_link.contents().unwrap(); 21 blurb_content.wrap(blurb_image_link); 22 } 23 // otherwise, if blurb has only a title link, unwrap it, and then wrap it around the entire content 24 else if ( $(blurb_title_link).length ) { 25 blurb_title_link.contents().unwrap(); 26 blurb_content.wrap(blurb_title_link); 27 } 28 }); 29} );
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.