1/*! 2* Start Bootstrap - Clean Blog v5.1.0 (https://startbootstrap.com/theme/clean-blog) 3* Copyright 2013-2021 Start Bootstrap 4* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-clean-blog/blob/master/LICENSE) 5*/ 6(function ($) { 7 "use strict"; // Start of use strict 8 9 // Floating label headings for the contact form 10 $("body").on("input propertychange", ".floating-label-form-group", function (e) { 11 $(this).toggleClass("floating-label-form-group-with-value", !!$(e.target).val()); 12 }).on("focus", ".floating-label-form-group", function () { 13 $(this).addClass("floating-label-form-group-with-focus"); 14 }).on("blur", ".floating-label-form-group", function () { 15 $(this).removeClass("floating-label-form-group-with-focus"); 16 }); 17 18 // Show the navbar when the page is scrolled up 19 var MQL = 992; 20 21 //primary navigation slide-in effect 22 if ($(window).width() > MQL) { 23 var headerHeight = $('#mainNav').height(); 24 $(window).on('scroll', { 25 previousTop: 0 26 }, 27 function () { 28 var currentTop = $(window).scrollTop(); 29 //check if user is scrolling up 30 if (currentTop < this.previousTop) { 31 //if scrolling up... 32 if (currentTop > 0 && $('#mainNav').hasClass('is-fixed')) { 33 $('#mainNav').addClass('is-visible'); 34 } else { 35 $('#mainNav').removeClass('is-visible is-fixed'); 36 } 37 } else if (currentTop > this.previousTop) { 38 //if scrolling down... 39 $('#mainNav').removeClass('is-visible'); 40 if (currentTop > headerHeight && !$('#mainNav').hasClass('is-fixed')) $('#mainNav').addClass('is-fixed'); 41 } 42 this.previousTop = currentTop; 43 }); 44 } 45 46})(jQuery); // End of use strict
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.