1( function( $, root, undefined ) { 2 3 $( function() { 4 5 "use strict"; 6 7 //menu fixer when page loads halfway scrolled 8 $( document ).ready( function() { 9 var stickyBar = function() { 10 $( '.top-app-bar' ).toggleClass( 'mdc-top-app-bar--fixed-scrolled', $( document ).scrollTop() >= 1 ); 11 } 12 stickyBar(); 13 // Call when scrolled or touchmove events are registered 14 $( window ).on( 'load scroll touchmove', stickyBar ); 15 } ); 16 17 $( document ).ready( function() { 18 if ( $( window ).width() >= 769 ) { 19 var headerShrink = function() { 20 $( '.-has-tab-bar+.site-content #primary.content-area' ).css( 'margin-top', $( '.mdc-top-app-bar__inner' ).height() + 'px' ); 21 } 22 } 23 if ( $( window ).width() <= 768 ) { 24 var headerShrink = function() { 25 $( '.-has-tab-bar+.site-content #primary.content-area' ).css( 'margin-top', $( '.logo img' ).height() + 'px' ); 26 } 27 } 28 headerShrink(); 29 // Call when scrolled or touchmove events are registered 30 $( window ).on( 'load resize scroll touchmove', headerShrink ); 31 } ); 32 33 var listviewButtonChange = function() { 34 $( '.seetickets-list-events .mdc-card' ).each( function() { 35 $( this ).find( 'a[aria-label*="Mark Grandfield"]' ).text( 'No Fee' ); 36 } ); 37 } 38 listviewButtonChange(); 39 40 var tableButtonChange = function() { 41 $( 'table.seetickets-calendar .calendar-body' ).each( function() { 42 $( this ).find( 'a[aria-label*="Mark Grandfield"]' ).text( 'No Fee' ); 43 } ); 44 } 45 tableButtonChange(); 46 47 $( document ).ready( function() { 48 //pagination 49 let previousUrl = ''; 50 const observer = new MutationObserver(function(mutations) 51 { 52 if (window.location.href !== previousUrl) 53 { 54 previousUrl = window.location.href; 55 56 listviewButtonChange(); 57 58 } 59 }); 60 const config = { subtree: true, childList: true, attributes: true }; 61 62 // start listening to changes 63 observer.observe(document, config); 64 65 $( '#seetickets-list-view-load-more-button' ).on( "click", function() { 66 setTimeout( () => { 67 $( '.mdc-card:contains(Mark Grandfield)' ).each( function() { 68 $( this ).find( 'a.seetickets-buy-btn' ).text( 'No Fee' ); 69 } ); 70 71 }, 1000 ) 72 } ); 73 74 } ); 75 76 77 } ); 78 79} )( jQuery, this );
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.