1(()=>{const e=document.querySelectorAll(".coblocks-animate");if("IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add(e.target.dataset.coblocksAnimation),t.unobserve(e.target))}))}),{threshold:[.15]});e.forEach((e=>{t.observe(e)}))}else e.forEach((e=>{e.classList.remove("coblocks-animate"),delete e.dataset.coblocksAnimation}))})();; 2( function( $ ) { 3 4 var debounce = function( func, wait ) { 5 var timeout, args, context, timestamp; 6 return function() { 7 context = this; 8 args = [].slice.call( arguments, 0 ); 9 timestamp = new Date(); 10 var later = function() { 11 var last = ( new Date() ) - timestamp; 12 if ( last < wait ) { 13 timeout = setTimeout( later, wait - last ); 14 } else { 15 timeout = null; 16 func.apply( context, args ); 17 } 18 }; 19 if ( ! timeout ) { 20 timeout = setTimeout( later, wait ); 21 } 22 }; 23 }; 24 25 function menuDropdownToggle() { 26 $( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a, .widget_nav_menu .page_item_has_children > a, .widget_nav_menu .menu-item-has-children > a' ).each( function() { 27 if ( ! $( this ).find( '.dropdown-toggle' ).length ) { 28 $( this ).append( '<button class="dropdown-toggle" aria-expanded="false"/>' ); 29 } 30 } ); 31 32 if ( $( window ).width() > 959 ) { 33 $( '.main-navigation .dropdown-toggle' ).remove(); 34 } 35 } 36 37 $( window ).load( menuDropdownToggle ).resize( debounce( menuDropdownToggle, 500 ) ); 38 39 $( window ).load( function() { 40 var menu = $( '#masthead' ).find( 'div' ); 41 if ( ! menu || ! menu.children().length ) { 42 return; 43 } 44 45 $( '.dropdown-toggle' ).click( function( event ) { 46 event.preventDefault(); 47 $( this ).toggleClass( 'toggled' ); 48 $( this ).parent().next( '.children, .sub-menu' ).toggleClass( 'toggled' ); 49 $( this ).attr( 'aria-expanded', $( this ).attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' ); 50 } ); 51 52 if ( 'ontouchstart' in window ) { 53 menu.find( '.menu-item-has-children > a' ).on( 'touchstart', function( e ) { 54 var el = $( this ).parent( 'li' ); 55 56 if ( ! el.hasClass( 'focus' ) ) { 57 e.preventDefault(); 58 el.toggleClass( 'focus' ); 59 el.siblings( '.focus' ).removeClass( 'focus' ); 60 } 61 } ); 62 } 63 64 menu.find( 'a' ).on( 'focus blur', function() { 65 $( this ).parents( '.menu-item' ).toggleClass( 'focus' ); 66 } ); 67 } ); 68 69} )( jQuery ); 70 71( function() { 72 73 var container, button, menu; 74 75 container = document.getElementById( 'site-navigation' ); 76 if ( ! container ) { 77 return; 78 } 79 80 button = container.getElementsByTagName( 'button' )[0]; 81 if ( 'undefined' === typeof button ) { 82 return; 83 } 84 85 menu = container.getElementsByTagName( 'ul' )[0]; 86 if ( 'undefined' === typeof menu ) { 87 button.style.display = 'none'; 88 return; 89 } 90 menu.setAttribute( 'aria-expanded', 'false' ); 91 92 if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { 93 menu.className += ' nav-menu'; 94 } 95 96 button.onclick = function() { 97 if ( -1 !== container.className.indexOf( 'toggled' ) ) { 98 container.className = container.className.replace( ' toggled', '' ); 99 button.setAttribute( 'aria-expanded', 'false' ); 100 menu.setAttribute( 'aria-expanded', 'false' ); 101 } else { 102 container.className += ' toggled'; 103 button.setAttribute( 'aria-expanded', 'true' ); 104 menu.setAttribute( 'aria-expanded', 'true' ); 105 } 106 }; 107 108} )(); 109; 110( function( $ ) { 111 112 $( window ).load( function() { 113 114 /* Use Featured Image as a Background Image */ 115 var featuredContent = $( '#featured-content' ); 116 if ( ! featuredContent.length ) { 117 return; 118 } 119 120 featuredContent.find( 'article' ).each( function() { 121 if ( ! $( this ).hasClass( 'background-done' ) && $( this ).hasClass( 'has-post-thumbnail' ) ) { 122 var entryImage = $( this ).find( '.post-thumbnail' ), 123 thumbnail = $( this ).find( 'img' ); 124 entryImage.css( 'background-image', 'url(' + thumbnail.attr( 'src' ) + ')' ); 125 $( this ).addClass( 'background-done' ); 126 } 127 } ); 128 129 } ); 130 131} )( jQuery ); 132; 133( function() { 134 135 var siteBranding = document.getElementsByClassName( 'site-branding' )[0]; 136 if ( siteBranding.clientHeight > 0 ) { 137 return; 138 } 139 document.body.className += ' no-site-branding'; 140 141} )(); 142; 143( function( $ ) { 144 145 $( window ).load( function() { 146 147 function searchAddClass() { 148 $( this ).closest( '.search-form' ).addClass( 'hover' ); 149 } 150 function searchRemoveClass() { 151 $( this ).closest( '.search-form' ).removeClass( 'hover' ); 152 } 153 var searchSubmit = $( '.search-submit' ); 154 searchSubmit.hover( searchAddClass, searchRemoveClass ); 155 searchSubmit.focusin( searchAddClass ); 156 searchSubmit.focusout( searchRemoveClass ); 157 158 } ); 159 160} )( jQuery ); 161 162( function() { 163 164 var container, button, form, siteHeaderInner, siteNavigation, div; 165 166 container = document.getElementById( 'search-header' ); 167 if ( ! container ) { 168 return; 169 } 170 171 button = container.getElementsByTagName( 'button' )[0]; 172 if ( 'undefined' === typeof button ) { 173 return; 174 } 175 176 form = container.getElementsByTagName( 'form' )[0]; 177 if ( 'undefined' === typeof form ) { 178 button.style.display = 'none'; 179 return; 180 } 181 form.setAttribute( 'aria-expanded', 'false' ); 182 183 button.onclick = function() { 184 if ( -1 !== container.className.indexOf( 'toggled' ) ) { 185 document.body.className = document.body.className.replace( ' search-toggled', '' ); 186 container.className = container.className.replace( ' toggled', '' ); 187 button.setAttribute( 'aria-expanded', 'false' ); 188 form.setAttribute( 'aria-expanded', 'false' ); 189 } else { 190 document.body.className += ' search-toggled'; 191 container.className += ' toggled'; 192 button.setAttribute( 'aria-expanded', 'true' ); 193 form.setAttribute( 'aria-expanded', 'true' ); 194 } 195 }; 196 197} )(); 198; 199( function( $ ) { 200 201 var debounce = function( func, wait ) { 202 var timeout, args, context, timestamp; 203 return function() { 204 context = this; 205 args = [].slice.call( arguments, 0 ); 206 timestamp = new Date(); 207 var later = function() { 208 var last = ( new Date() ) - timestamp; 209 if ( last < wait ) { 210 timeout = setTimeout( later, wait - last ); 211 } else { 212 timeout = null; 213 func.apply( context, args ); 214 } 215 }; 216 if ( ! timeout ) { 217 timeout = setTimeout( later, wait ); 218 } 219 }; 220 }; 221 222 function authorInfo() { 223 var authorInfo = $( '.author-info' ); 224 if ( authorInfo.length ) { 225 if ( $( window ).width() > 959 ) { 226 authorInfo.prependTo( '.widget-area' ); 227 } else { 228 authorInfo.insertAfter( '.entry-content' ); 229 } 230 } 231 } 232 233 $( window ).load( authorInfo ).resize( debounce( authorInfo, 500 ) ); 234 235 $( window ).load( function() { 236 // Move Sharedaddy & Related Posts 237 var sharedaddy = $( '.sd-sharing-enabled:not(#jp-post-flair), .sd-like.jetpack-likes-widget-wrapper, .sd-rating' ), 238 relatedPosts = $( '#jp-relatedposts' ); 239 if ( sharedaddy.length ) { 240 sharedaddy.appendTo( '.entry-footer' ); 241 } 242 if ( relatedPosts.length ) { 243 $( "#jp-post-flair" ).insertAfter( '.entry-footer' ); 244 } 245 246 // Make sure tables don't overflow in Entry Content. 247 $( '.entry-content' ).find( 'table' ).each( function() { 248 if ( $( this ).width() > $( this ).parent().width() ) { 249 $( this ).css( 'table-layout', 'fixed' ); 250 } 251 } ); 252 } ); 253 254} )( jQuery ); 255; 256( function() { 257 258 var sidebar, button, footer; 259 260 sidebar = document.getElementById( 'secondary' ); 261 if ( ! sidebar ) { 262 return; 263 } 264 265 button = document.getElementsByClassName( 'sidebar-toggle' )[0]; 266 if ( 'undefined' === typeof button ) { 267 return; 268 } 269 270 sidebar.setAttribute( 'aria-expanded', 'false' ); 271 272 button.onclick = function() { 273 if ( -1 !== sidebar.className.indexOf( 'toggled' ) ) { 274 sidebar.className = sidebar.className.replace( ' toggled', '' ); 275 button.className = button.className.replace( ' toggled', '' ); 276 sidebar.setAttribute( 'aria-expanded', 'false' ); 277 button.setAttribute( 'aria-expanded', 'false' ); 278 } else { 279 sidebar.className += ' toggled'; 280 button.className += ' toggled'; 281 sidebar.setAttribute( 'aria-expanded', 'true' ); 282 button.setAttribute( 'aria-expanded', 'true' ); 283 } 284 }; 285 286} )(); 287; 288( function() { 289 var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 290 is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 291 is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 292 293 if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) { 294 window.addEventListener( 'hashchange', function() { 295 var id = location.hash.substring( 1 ), 296 element; 297 298 if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 299 return; 300 } 301 302 element = document.getElementById( id ); 303 304 if ( element ) { 305 if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 306 element.tabIndex = -1; 307 } 308 309 element.focus(); 310 } 311 }, false ); 312 } 313})(); 314;
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.