1/* global sc_vars */ 2jQuery( document ).ready( function( $ ) { 3 4 /* Button Click */ 5 $( 'body' ).on( 'submit', '.sc_events_form', function() { 6 7 document.body.style.cursor = 'wait'; 8 9 var calendar = $( this ).parents( 'div.sc_events_calendar' ).attr( 'id' ), 10 data = $( this ).serialize(); 11 12 $.post( sc_vars.ajaxurl, data, function ( response ) { 13 $( '#' + calendar ).parent().html( response ); 14 scResizeCal(); 15 16 } ).done( function() { 17 document.body.style.cursor = 'default'; 18 } ); 19 20 return false; 21 } ); 22 23 /* Page Resize */ 24 function scResizeCal() { 25 var winwidth = $( window ).width(); 26 27 if ( winwidth <= 480 ) { 28 if ( ! $( '.sc_events_calendar' ).hasClass( 'sc_small' ) ) { 29 $( '#sc_event_select' ).hide(); 30 } else { 31 $( '#sc_event_select' ).show(); 32 } 33 } else { 34 $( '#sc_event_select' ).show(); 35 } 36 } 37 38 /* Listen for resize */ 39 $( window ).resize( function() { 40 scResizeCal(); 41 } ); 42 43 /* Resize on load */ 44 scResizeCal(); 45} );
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.