1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-28 18:59:50 +02:00

pages can also end in .html

This commit is contained in:
Plailect
2017-09-30 17:36:31 -04:00
committed by Plailect
parent 3da1485aa2
commit ed3bdaca56
2 changed files with 3 additions and 2 deletions

View File

@@ -211,7 +211,8 @@ $(document).ready(function(){
var name = $(li).attr('data-name'); var name = $(li).attr('data-name');
if((window.location.href.endsWith(link) || if((window.location.href.endsWith(link) ||
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"){ && name !== "home"){
$(li).addClass("active"); $(li).addClass("active");
return false; return false;

File diff suppressed because one or more lines are too long