wg-portal/assets/js/custom.js
2020-11-05 19:37:51 +01:00

22 lines
507 B
JavaScript

(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$(document).on('click', 'a.scroll-to-top', function(e) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset().top)
}, 1000, 'easeInOutExpo');
e.preventDefault();
});
})(jQuery); // End of use strict
function OnSearch(input) {
if(input.value === "") {
window.location = "/?search=";
}
}