1//$(document).bind("pageload pagechange pageshow pagehide pagecreate pageinit", function (event) { 2// alert(event.type); 3//}); 4 5$(document).on("pageinit", function () { 6 //////////////////////////////////////////////////////////// 7 //Turn on when javascipt enabled 8 //////////////////////////////////////////////////////////// 9 $('.menuLink').show(); 10 $('.reset-search').show(); 11 $('.top-of-page').hide(); 12 13 //////////////////////////////////////////////////////////// 14 //Prep List for list collapse 15 //////////////////////////////////////////////////////////// 16 PrepList(); 17 18 //////////////////////////////////////////////////////////// 19 //Scroll Top Script 20 //////////////////////////////////////////////////////////// 21 var offset = 170; 22 var duration = 200; 23 24 $(document).on("scrollstart scrollstop orientationchange", function () { 25 if ($(this).scrollTop() > offset) { 26 $('.top-of-page').fadeIn(duration); 27 } else { 28 $('.top-of-page').fadeOut(duration); 29 } 30 }); 31 32 //Top of Page Script to work on Jquery Mobile 33 $(document).delegate('.top-of-page', 'click', function () { 34 $.mobile.silentScroll(0); 35 $('.top-of-page').fadeOut(duration); 36 return false; 37 }); 38 39 //////////////////////////////////////////////////////////// 40 //Reset Button Script 41 //////////////////////////////////////////////////////////// 42 //Hide all Reset buttons 43 $('.reset-search').hide(); 44 45 //Add hover drop shadow on div instead of input 46 $('.input-wrap input').on('focus', function () { 47 $(this).parent('.input-wrap').addClass('ui-focus'); 48 }); 49 50 $('.input-wrap input').on('blur', function () { 51 $(this).parent('.input-wrap').removeClass('ui-focus'); 52 }); 53 54 //$('.input-wrap input[type=number]').parent('.input-wrap').addClass('input-number'); 55 56 57 //Listen to input keydown event, if text is entered show reset icon, else hide 58 $('.input-wrap input').on('keyup focus', function () { 59 text = $(this).val(); 60 if (text != '') { 61 $(this).next('.reset-search').show(); 62 } 63 else { 64 $(this).next('.reset-search').hide(); 65 } 66 }); 67 68 //One reset icon click clear prior input field 69 $('.input-wrap .reset-search').on('click', function () { 70 $(this).hide(); 71 $(this).prev('input').val('').focus(); 72 }); 73 74 //////////////////////////////////////////////////////////// 75 //Swipe right 76 //////////////////////////////////////////////////////////// 77 //@*$(document).bind("swiperight", function () { 78 // $.mobile.changePage('@Url.Action("Index")'); 79 //});*@ 80});
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.