1jQuery(document).ready(function($) { 2 3 'use strict'; 4 5 //ON-DEMAND STICKY HEADER 6 var options = { 7 offset: 300, 8 classes: { 9 clone: 'banner--clone', 10 stick: 'banner--stick', 11 unstick: 'banner--unstick' 12 } 13 }; 14 15 // Initialise with options 16 var banner = new Headhesive('.banner', options); 17 18 /** 19 * Need to use the JS version, rather than the data-* attributes. 20 */ 21 $('.navbar-toggle').on('click', function () { 22 $('.collapse').collapse('toggle'); 23 }); 24 25 26 27 28 //SMOOTH SCROLL 29 smoothScroll.init({ 30 speed: 500, // How fast to complete the scroll in milliseconds 31 easing: 'easeInOutCubic', // Easing pattern to use 32 updateURL: false, // Boolean. Whether or not to update the URL with the anchor hash on scroll 33 callbackBefore: function ( toggle, anchor ) {}, // Function to run before scrolling 34 callbackAfter: function ( toggle, anchor ) {} // Function to run after scrolling 35 }); 36 37 38 39 40 41 //FIX HOVER EFFECT ON IOS DEVICES 42 document.addEventListener("touchstart", function(){}, true); 43 44}); 45 46 47$(window).load(function(){ 48 49 50 //PARALLAX BACKGROUND 51 $(window).stellar({ 52 horizontalScrolling: false, 53 }); 54 55 56 //PRELOADER 57 $('#preload').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. 58 //FlexSlider 59 $('.flexslider').flexslider({ 60 animation: "slide", 61 start: function(slider){ 62 $('body').removeClass('loading'); 63 } 64 }); 65}); 66 67 68 69
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.