fix:inside page #hashtag and redirect

This commit is contained in:
yifang 2021-12-31 22:15:51 +08:00
parent 5f956464e0
commit 1c3612f720

13
resources/gd_custom.js Normal file
View file

@ -0,0 +1,13 @@
//document ready ,
$(function() {
$("a").click(function(event) {
var link = $(this).attr("href");
if (link.indexOf("://") < 0) {
var newLink = window.location.href + "/" + link;
$(this).attr("href", newLink);
}
});
}
);