mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-13 14:31:15 +00:00
initial commit
This commit is contained in:
21
assets/js/custom.js
Normal file
21
assets/js/custom.js
Normal file
@@ -0,0 +1,21 @@
|
||||
(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=";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user