updated site
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
@@ -4,15 +4,16 @@ addEventListener('DOMContentLoaded', () => {
|
|||||||
document.querySelectorAll('nav a').forEach((el) => {
|
document.querySelectorAll('nav a').forEach((el) => {
|
||||||
const url = new URL(el.href);
|
const url = new URL(el.href);
|
||||||
const fullurl = url.origin + url.pathname.replace(/\/$/, "");
|
const fullurl = url.origin + url.pathname.replace(/\/$/, "");
|
||||||
console.log("fullurl", fullurl);
|
|
||||||
console.log("fullpath", fullpath);
|
|
||||||
console.log("locationpathname", location.pathname);
|
|
||||||
console.log("urlpathname", url.pathname);
|
|
||||||
const onHome = fullpath === location.origin
|
const onHome = fullpath === location.origin
|
||||||
const urlIsHome = fullurl === location.origin
|
const urlIsHome = fullurl === location.origin
|
||||||
console.log("onhome", onHome);
|
|
||||||
console.log("urlIsHome", urlIsHome);
|
//console.log("fullurl", fullurl);
|
||||||
console.log("")
|
//console.log("fullpath", fullpath);
|
||||||
|
//console.log("locationpathname", location.pathname);
|
||||||
|
//console.log("urlpathname", url.pathname);
|
||||||
|
//console.log("onhome", onHome);
|
||||||
|
//console.log("urlIsHome", urlIsHome);
|
||||||
|
//console.log("")
|
||||||
|
|
||||||
if (onHome && fullurl === fullpath) {
|
if (onHome && fullurl === fullpath) {
|
||||||
el.classList.add('active');
|
el.classList.add('active');
|
||||||
|
|||||||
@@ -5,6 +5,19 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="generator" content="pandoc" />
|
<meta name="generator" content="pandoc" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||||
|
|
||||||
|
<!-- Favicons -->
|
||||||
|
<!-- For all browsers -->
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/docs/img/favicons/32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/docs/img/favicons/16x16.png">
|
||||||
|
<!-- For Google and Android -->
|
||||||
|
<link rel="icon" type="image/png" sizes="48x48" href="/docs/img/favicons/48x48.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/docs/img/favicons/192x192.png">
|
||||||
|
<!-- For iPad -->
|
||||||
|
<link rel="apple-touch-icon" type="image/png" sizes="167x167" href="/docs/img/favicons/167x167.png">
|
||||||
|
<!-- For iPhone -->
|
||||||
|
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/docs/img/favicons/180x180.png">
|
||||||
|
|
||||||
$for(author-meta)$
|
$for(author-meta)$
|
||||||
<meta name="author" content="$author-meta$" />
|
<meta name="author" content="$author-meta$" />
|
||||||
$endfor$
|
$endfor$
|
||||||
|
|||||||
Reference in New Issue
Block a user