1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 11let window = _____WB$wombat$assign$function_____("window"); 12let self = _____WB$wombat$assign$function_____("self"); 13let document = _____WB$wombat$assign$function_____("document"); 14let location = _____WB$wombat$assign$function_____("location"); 15let top = _____WB$wombat$assign$function_____("top"); 16let parent = _____WB$wombat$assign$function_____("parent"); 17let frames = _____WB$wombat$assign$function_____("frames"); 18let opens = _____WB$wombat$assign$function_____("opens"); 19/*-----------------------------------------------------------------------------------*/ 20/* Run scripts on jQuery(document).ready() */ 21/*-----------------------------------------------------------------------------------*/ 22jQuery(document).ready(function(){ 23 24 // FitVids - Responsive Videos 25 jQuery( '.post, .widget, .panel, .page, .video' ).fitVids(); 26 27 // Add class to parent menu items with JS until WP does this natively 28 jQuery( 'ul.sub-menu, ul.children' ).parents( 'li' ).addClass( 'parent' ); 29 30 // Responsive Navigation (switch top drop down for select) 31 jQuery('ul#top-nav').mobileMenu({ 32 switchWidth: 767, //width (in px to switch at) 33 topOptionText: woo_localized_data.select_a_page, //first option text 34 indentString: ' ' //string for indenting nested items 35 }); 36 37 // Show/hide the main navigation 38 jQuery( '.nav-toggle' ).click(function() { 39 jQuery( '#navigation' ).slideToggle( 'fast', function() { 40 return false; 41 // Animation complete. 42 }); 43 }); 44 45 // Stop the navigation link moving to the anchor (Still need the anchor for semantic markup) 46 jQuery( '.nav-toggle a' ).click(function(e) { 47 e.preventDefault(); 48 }); 49 50/*-----------------------------------------------------------------------------------*/ 51/* Add rel="lightbox" to image links if the lightbox is enabled */ 52/*-----------------------------------------------------------------------------------*/ 53 54if ( jQuery( 'body' ).hasClass( 'has-lightbox' ) && ! jQuery( 'body' ).hasClass( 'portfolio-component' ) ) { 55 jQuery( 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".gif"], a[href$=".png"]' ).each( function () { 56 var imageTitle = ''; 57 if ( jQuery( this ).next().hasClass( 'wp-caption-text' ) ) { 58 imageTitle = jQuery( this ).next().text(); 59 } 60 61 if ( '' != imageTitle ) { 62 jQuery( this ).attr( 'title', imageTitle ); 63 } 64 65 if ( jQuery( this ).parents( '.gallery' ).length ) { 66 var galleryID = jQuery( this ).parents( '.gallery' ).attr( 'id' ); 67 jQuery( this ).attr( 'rel', 'lightbox[' + galleryID + ']' ); 68 } else { 69 jQuery( this ).attr( 'rel', 'lightbox' ); 70 } 71 }); 72 73 jQuery( 'a[rel^="lightbox"]' ).prettyPhoto({social_tools: false}); 74} 75 76/*-----------------------------------------------------------------------------------*/ 77/* Add alt-row styling to tables */ 78/*-----------------------------------------------------------------------------------*/ 79 80 jQuery( '.entry table tr:odd' ).addClass( 'alt-table-row' ); 81}); // End jQuery() 82} 83}
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.