1jQuery(document).ready(function($) { 2"use strict"; 3 4 5 // iosslider 6 7 $(document).ready(function() { 8 9 $('.iosslider').iosSlider({ 10 snapToChildren: true, 11 desktopClickDrag: true, 12 infiniteSlider: true, 13 snapSlideCenter: true, 14 onSlideChange: slideChange, 15 navNextSelector: $('.next'), 16 navPrevSelector: $('.prev'), 17 autoSlide: true, 18 autoSlideTimer: 5000, 19 autoSlideHoverPause: true 20 }); 21 22 }); 23 24 function slideChange(args) { 25 26 try { 27 console.log('changed: ' + (args.currentSlideNumber - 1)); 28 } catch(err) { 29 } 30 31 } 32 33 34 35 // Sticky Navigation 36 37 var aboveHeight = $('#featured-wrapper').outerHeight(); 38 $(window).scroll(function(){ 39 if ($(window).scrollTop() > aboveHeight){ 40 $('#nav-wrapper').addClass('fixed').css('top','0').next() 41 .css('margin-top','54px'); 42 } else { 43 $('#nav-wrapper').removeClass('fixed').next() 44 .css('margin-top','0'); 45 } 46 }); 47 48 49 // Sticky Sidebar 50 51 $(window).load(function(){ 52 $('#sidebar-wrapper').stickyMojo({ 53 footerID: '#footer-wrapper', 54 contentID: '#content-main' 55 }); 56 57 }); 58 59 60 // Mobi nav menu 61 62 $("#mobi-nav select").change(function() { 63 window.location = $(this).find("option:selected").val(); 64 }); 65 66 67 // Lazy Load 68 69 70 $("img.lazy").show().lazyload({ 71 effect: "fadeIn", 72 threshold : 200 73 }).removeClass("lazy"); 74 $(document).ajaxStop(function(){ 75 "use strict"; 76 $("img.lazy").lazyload({ 77 effect: "fadeIn" 78 }).removeClass("lazy"); 79 }); 80 81 82 // Search Toggle 83 $("#search-button").click(function(){ 84 $("#search-bar").slideToggle(); 85 }); 86 87 88 89});
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.