1$(document).ready(function() { 2 3 // Add class of 'active' to nav link of current page 4 $(function() { 5 $('nav a[href$="/' + location.pathname.split("/")[1] + '"]').addClass('active'); 6 }); 7 8 9 $('body').bind('DOMSubtreeModified', function(event) { 10 $('body').triggerHandler('bind'); 11 event.preventDefault(); 12 try{ 13 if($('.navbar-fixed-top:not(.transparent-bg):visible').length > 0){ 14 var navHeight = $('.navbar-fixed-top:visible').height(); 15 $('body').css('margin-top', navHeight + 'px'); 16 } 17 }catch(err){ 18 //Fail silently 19 } 20 }); 21 22 /*$(document).bind('DOMSubtreeModified', function () { 23 try{ 24 if($('.navbar-fixed-top:not(.transparent-bg):visible').length > 0){ 25 var navHeight = $('.navbar-fixed-top:visible').height(); 26 $('body').css('margin-top', navHeight + 'px'); 27 } 28 }catch(err){ 29 //Fail silently 30 } 31 });*/ 32 33 // Current Year in Footer 34 var currentYear = (new Date).getFullYear(); 35 $("#currentYear").text((new Date).getFullYear()); 36 37 // Same Height fix 38 $(function() { 39 // $('.same-height').matchHeight(); 40 try{ $('.same-height').matchHeight(); }catch(err){ }; 41 }); 42 43 // Hide if Empty 44 $('ul.social-menu li a[href=""]').attr("href", "#").parent().remove(); 45 $('ul.social-menu li a[href="#"]').parent().remove(); 46 47 $('.hide_if_empty:empty').each(function() { 48 $(this).parent().remove(); 49 $('ul.address-list li:visible:first i').addClass('fa-map-marker'); 50 }); 51 52 $('ul.address-list li:empty').parent().hide(); 53 54 // Add orientation class to images - set time out to allow images to load first 55 setTimeout(function(){ 56 $('img').each(function() { 57 $(this).addClass(this.width > this.height ? 'landscape' : 'portrait'); 58 }); 59 }, 500); 60 61 // #oneColumnSortMenu 62 try{var space = $(".nav-main").height(); 63 }catch(err){ }; 64 //$(".stickyMenu").sticky({topSpacing:space}); 65 try{ $(".stickyMenu").sticky({ topSpacing: 0 }); }catch(err){ }; 66 $(document).click(function (event) { 67 $('.navbar-collapse').collapse('hide'); 68 }); 69 70 // Hide Pause Button for Single Slide 71 // Calculate number of Slides 72 var totalItems = $('.owl-item:not(.cloned)').length; 73 // If there is only one slide 74 if (totalItems == 1) { 75 // Hide Pause Button 76 $('.fa-pause').addClass('hidden'); 77 } 78 else { 79 $('.fa-pause').removeClass('hidden'); 80 } 81 82 83 $(".eventTime").text(function () { 84 return $(this).text().replace("12:00 AM - 12:00 AM", "TBD"); 85 }); 86 87}); 88 89$('.dropdown-toggle').keydown(function(e){ 90 if(e.keyCode == 32 || e.keyCode == 13) 91 { 92 $(this).next(".dropdown-menu").show(); 93 } 94}); 95 96/** Remove spaces from url **/ 97 98function url_load(str){ 99 var encoded = encodeURI(str); 100 window.open(encoded , '_blank'); 101}
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.