1// 2// smooth-scroll.js 3// Theme module 4// https://github.com/cferdinandi/smooth-scroll 5// 6 7'use strict'; 8 9( function () { 10 11 // 12 // Variables 13 // 14 var toggle = '[data-toggle="smooth-scroll"]'; 15 16 // 17 // Functions 18 // 19 function init( toggle ) { 20 var options = { 21 header: '.layout-navigation.sticky', 22 easing: 'easeOutQuart', 23 offset: function( anchor, toggle ) { 24 return ( toggle.dataset.offset ? toggle.dataset.offset : 24 ); 25 } 26 }; 27 28 // Init 29 new SmoothScroll( toggle, options ); 30 } 31 32 // 33 // Events 34 // 35 if ( typeof SmoothScroll !== 'undefined' && toggle ) { 36 init( toggle ); 37 } 38 39} )();
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.