1var doc = document.documentElement; 2doc.setAttribute('data-useragent', navigator.userAgent); 3 4jQuery(document).ready(function($) { 5 6 setTimeout(function(){ 7 var winwidth = $(window).width(); 8 if(winwidth<768) { 9 $('#mobile-menu-toggle').focus(); 10 } else { 11 $('#menu-main-navigation').find('li').first().find('a').focus(); 12 } 13 }, 1000); 14 15 $('#mobile-nav').click(function() { 16 var elem = $('#nav'); 17 if(elem.is(':visible')) { 18 elem.slideUp('fast'); 19 $(this).find('a').attr('aria-expanded', 'false'); 20 } else { 21 elem.slideDown('fast'); 22 $('#menu-main-navigation').find('li').addClass('focussed'); 23 $('#menu-main-navigation').find('li').first().find('a').focus(); 24 $(this).find('a').attr('aria-expanded', 'true'); 25 } 26 return false; 27 }); 28 29 $('.ddselect').on('change', function() { 30 if($(this).val()!="") { 31 $(this).parent().parent().children('button').show(); 32 $(this).parent().parent().children('button').prop("disabled", false); 33 } else { 34 $(this).parent().parent().children('button').hide(); 35 $(this).parent().parent().children('button').prop("disabled", true); 36 } 37 }); 38 $('.ddselect').each(function() { 39 if($(this).val()!="") { 40 $(this).parent().parent().children('button').show(); 41 $(this).parent().parent().children('button').prop("disabled", false); 42 } else { 43 $(this).parent().parent().children('button').hide(); 44 $(this).parent().parent().children('button').prop("disabled", true); 45 } 46 }); 47 48 $('#stopbanner').click(function() { 49 var parent = $('.banner-item'); 50 if(parent.hasClass('no-image')) { 51 parent.removeClass('no-image'); 52 $('#stopbanner').html('Hide Image'); 53 } else { 54 parent.addClass('no-image'); 55 $('#stopbanner').html('Show Image'); 56 } 57 return false; 58 }); 59 60 $('.sbs-cons li a').click(function() { 61 var getid = $(this).data('id'); 62 $('.sbs-cons li a').removeClass('on'); 63 $('.pcontent').hide(); 64 $('#'+getid).show(); 65 $(this).addClass('on'); 66 return false; 67 }); 68 69 $('#sitesearch').click(function() { 70 $('#searchform').submit(); 71 return false; 72 }); 73 74 $('.book-event').click(function() { 75 var gettype = $(this).data('type'); 76 if(gettype=="trust") { 77 if($('#calendar-book-staff').is(':visible')) { 78 $('#calendar-book-staff').slideUp('fast'); 79 $('.book-event').show(); 80 } else { 81 $('#calendar-book-staff').slideDown('fast'); 82 $('.book-event').hide(); 83 } 84 } else { 85 if($('#calendar-book').is(':visible')) { 86 $('#calendar-book').slideUp('fast'); 87 $('.book-event').show(); 88 } else { 89 $('#calendar-book').slideDown('fast'); 90 $('.book-event').hide(); 91 } 92 } 93 return false; 94 }); 95 96 97 $('#events-sort').change(function() { 98 var getval = $(this).val(); 99 $('#event-sort-field').val(getval); 100 $('#calendar-filter-form').submit(); 101 }); 102 103 104 105 $( ".datepicker" ).datepicker({ 106 dateFormat: "dd/mm/yy" 107 }); 108 109 110 $('#calendar-filter-form').submit(function() { 111 $.LoadingOverlay("show"); 112 }); 113 $('a.button').click(function() { 114 $.LoadingOverlay("show"); 115 }); 116 117}); 118
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.