1/*global jQuery:false */ 2jQuery(document).ready(function ($) { 3 "use strict"; 4 5/*-----------------------------------------------------------------------------------*/ 6/* 1. FITVID & FLEXSLIDER 7/*-----------------------------------------------------------------------------------*/ 8 9 //Responsive Video 10 $(".fitvid").fitVids(); 11 12 //Flexslider Settings 13 $(".flexslider").flexslider({ 14 animation: 'fade', 15 touch: true, 16 slideshow: true, 17 controlNav: false, 18 directionNav: true, 19 smoothHeight: false 20 }); 21 22/*-----------------------------------------------------------------------------------*/ 23/* 2. SCROLL TO TOP BUTTON 24/*-----------------------------------------------------------------------------------*/ 25 26 $('.top').click(function () { 27 $('html, body').animate({ 28 scrollTop: 0 29 }, 600); 30 return false; 31 }); 32 33/*-----------------------------------------------------------------------------------*/ 34/* 3. NAVIGATION TOGGLE 35/*-----------------------------------------------------------------------------------*/ 36 37 //When clicking on toggle open sidebar and fire nanoscroller 38 $("a.toggle-sidebar").sidr({side: 'left', speed: '250'}).click(function () { 39 40 $('.floating-menu').fadeOut('fast'); 41 $('.extra-info').fadeOut('fast'); 42 $(".nano").nanoScroller({iOSNativescrolling: true, preventPageScrolling: true}); 43 return false; 44 45 }); 46 47 if( !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 48 // Close sidebar when clicking on body 49 $("#main-wrap").click(function()Â { 50 $.sidr('close'); 51 $('.floating-menu').delay(250).fadeIn('slow'); 52 $('.extra-info').delay(250).fadeIn('fast'); 53 }); 54 } 55 56 // Allow main-wrap click to close sidebar on ipad 57 var clickHandler = "click"; 58 59 if('ontouchstart' in document.documentElement){ 60 clickHandler = "touchstart"; 61 } 62 63 // Close sidebar when clicking on body on mobile tablets 64 $("#main-wrap").bind(clickHandler,function(){ 65 $.sidr('close'); 66 $('.floating-menu').delay(250).fadeIn('slow'); 67 $('.extra-info').delay(250).fadeIn('fast'); 68 }); 69 70 // Close sidebar when clicking on close button on mobile devices 71 $("#close").bind(clickHandler,function(){ 72 $.sidr('close'); 73 $('.floating-menu').delay(250).fadeIn('slow'); 74 $('.extra-info').delay(250).fadeIn('fast'); 75 return false; 76 }); 77 78/*-----------------------------------------------------------------------------------*/ 79/* 4. SCROLL DOWN BUTTON ON HEADER 80/*-----------------------------------------------------------------------------------*/ 81 82 $('#down-icon').click(function(){ 83 $('html, body').animate({scrollTop: $('#content-wrapper').offset().top}, 700); 84 return false; 85 }); 86 87/*-----------------------------------------------------------------------------------*/ 88/* 5. HEADER HEIGHT MATCHES WINDOW SCREEN SIZE 89/*-----------------------------------------------------------------------------------*/ 90 91 $('#header').css({'height':(($(window).height()))+'px'}); 92 93});
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.