mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-28 10:49:58 +02:00
pages can also end in .html
This commit is contained in:
@@ -211,7 +211,8 @@ $(document).ready(function(){
|
||||
var name = $(li).attr('data-name');
|
||||
if((window.location.href.endsWith(link) ||
|
||||
window.location.href.endsWith(link + "/") ||
|
||||
window.location.href.indexOf(link + "#") > -1)
|
||||
window.location.href.indexOf(link + "#") > -1 ||
|
||||
window.location.href.indexOf(link + ".html") > -1)
|
||||
&& name !== "home"){
|
||||
$(li).addClass("active");
|
||||
return false;
|
||||
|
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user