1(function ($) { 2 3 'use strict'; 4 5 $(document).ready(function () { 6 // browser window scroll (in pixels) after which the "back to top" link is shown 7 var offset = 250, 8 //browser window scroll (in pixels) after which the "back to top" link opacity is reduced 9 offset_opacity = 800, 10 //duration of the top scrolling animation (in ms) 11 scroll_top_duration = 700, 12 //grab the "back to top" link 13 $back_to_top = $('.cd-top'); 14 //hide or show the "back to top" link 15 $(window).scroll(function(){ 16 ( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out'); 17 if( $(this).scrollTop() > offset_opacity ) { 18 $back_to_top.addClass('cd-fade-out'); 19 } 20 }); 21 //smooth scroll to top 22 $back_to_top.on('click', function(event){ 23 event.preventDefault(); 24 $('body,html').animate({ 25 scrollTop: 0 , 26 }, scroll_top_duration 27 ); 28 }); 29 30 /*var wpcf7Elm = document.querySelector( '.wpcf7' ); 31 wpcf7Elm.addEventListener( 'wpcf7submit', function( event ) { 32 setTimeout(function() { 33 $([document.documentElement, document.body]).animate({ 34 scrollTop: $(".wpcf7-response-output").offset().top - 300 35 }, 500); 36 }, 500); 37 //console.log("Submited"); 38 }, false );*/ 39 40 41 }); 42 43 44}(jQuery)); 45 46
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.