1(function ($, Drupal, i) { 2 Drupal.behaviors.mainMenu = { 3 attach: function(context, settings) { 4 $(document).ready(function(i){ 5 var pageCont = document.querySelector('.page'); 6 if(i(window).width()>320){ 7 var s = i(".header--fix").height(); 8 i(window).on("scroll",{ previousTop:0 },function(){ 9 var e = i(window).scrollTop() -0; 10 e<this.previousTop?e>0&&i(".header--fix").hasClass("is-fixed")?i(".header--fix").addClass("is-visible"):i(".header--fix").removeClass("is-visible is-fixed"):(i(".header--fix").removeClass("is-visible"), 11 e>s&&!i(".header--fix").hasClass("is-fixed")&&i(".header--fix").addClass("is-fixed")), this.previousTop=e; 12 }); 13 i(window).on("scroll",{ previousTop:0 },function(){ 14 var fixed = i(".header--fix").hasClass("is-visible"); 15 var pageFixed = i(pageCont).hasClass("page--move"); 16 if (fixed === true) 17 pageCont.style.perspective = "inherit"; 18 if (pageFixed === true) 19 pageCont.style.perspective = "1240px"; 20 }); 21 } 22 }); 23 } 24 }; 25})(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.