1/** 2 * @file 3 * Global utilities. 4 * 5 */ 6(function($, Drupal) { 7 8 'use strict'; 9 10 Drupal.behaviors.bootstrap_barrio = { 11 attach: function(context, settings) { 12 13 var position = $(window).scrollTop(); 14 $(window).scroll(function() { 15 if ($(this).scrollTop() > 50) { 16 $('body').addClass("scrolled"); 17 } else { 18 $('body').removeClass("scrolled"); 19 } 20 var scroll = $(window).scrollTop(); 21 if (scroll > position) { 22 $('body').addClass("scrolldown"); 23 $('body').removeClass("scrollup"); 24 } else { 25 $('body').addClass("scrollup"); 26 $('body').removeClass("scrolldown"); 27 } 28 position = scroll; 29 }); 30 //here 31 } 32 }; 33 34})(jQuery, Drupal);
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.