mirror of
https://github.com/DJSundog/wg-portal.git
synced 2024-11-27 09:00:03 -05:00
22 lines
507 B
JavaScript
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=";
|
|
}
|
|
}
|
|
|
|
|