Compare commits
No commits in common. "06eecff9426cff1392ebd51b171f513dee4d3edb" and "180832b84c244c1740497ccee7129cebc99f8fa6" have entirely different histories.
06eecff942
...
180832b84c
3 changed files with 4 additions and 10 deletions
|
|
@ -2,6 +2,10 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<meta
|
||||||
|
name="generator"
|
||||||
|
content="HTML Tidy for HTML5 for Apple macOS version 5.8.0"
|
||||||
|
/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>The Tough Guide to Fantasyland</title>
|
<title>The Tough Guide to Fantasyland</title>
|
||||||
<link rel="stylesheet" href="style.css" inline />
|
<link rel="stylesheet" href="style.css" inline />
|
||||||
|
|
|
||||||
|
|
@ -52,15 +52,6 @@ Array.from(firstByLetter.entries())
|
||||||
tocLetters?.appendChild(link);
|
tocLetters?.appendChild(link);
|
||||||
});
|
});
|
||||||
|
|
||||||
// scroll TOC list when clicking a letter
|
|
||||||
tocLetters?.addEventListener("click", (e) => {
|
|
||||||
if (e.target.tagName !== "A") return;
|
|
||||||
const href = e.target.getAttribute("href");
|
|
||||||
if (!href) return;
|
|
||||||
const tocLink = tocList?.querySelector(`a[href="${href}"]`);
|
|
||||||
tocLink?.scrollIntoView({ block: "start" });
|
|
||||||
});
|
|
||||||
|
|
||||||
const searchInput = document.getElementById("toc-search");
|
const searchInput = document.getElementById("toc-search");
|
||||||
let searchTimeout;
|
let searchTimeout;
|
||||||
searchInput?.addEventListener("input", (event) => {
|
searchInput?.addEventListener("input", (event) => {
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,6 @@ body {
|
||||||
padding: 6px 8px;
|
padding: 6px 8px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
display: block;
|
display: block;
|
||||||
scroll-margin-top: 1rem;
|
|
||||||
transition:
|
transition:
|
||||||
background 0.2s ease,
|
background 0.2s ease,
|
||||||
color 0.2s ease;
|
color 0.2s ease;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue