zk_html/lj-dump/L-415.html

57 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | Rr.</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
</head>
<body>
<main>
<header>
<h1>Zk | Rr.</h1>
</header>
<article class="content">
<p>I've missed my night walks, and tonight was a beautiful night to take the first one in months. Even though there was a light brushing of snow on some of the grass, most of what fell, I think, was rain, and the walk was plenty warm with a hoodie and a scarf (I know, I'm gay ;.;). I went to the Oval so I could walk through the double-row of elms, then made my way to Alley Cat for a cup of the WORLD'S GREATEST CHAI. On my way back, I walked almost the entire way along the train tracks that run through campus. I decided that the reason I changed my major is that I'm either not strong enough to question the beauty of nature, or strong enough not to.</p>
<p>Gosh, I'm trite ^.</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2005-01-30 11:32:40</p>
</footer>
</main>
<script type="text/javascript">
document.querySelectorAll('li').forEach(el => {
if (el.querySelectorAll('li').length !== 0) {
el.classList.add('has-nested', 'closed');
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
}
});
document.querySelectorAll('.toc .has-nested').forEach(el => {
el.classList.remove('has-nested', 'closed');
});
document.querySelectorAll('li.has-nested').forEach(el => {
el.querySelector('.toggle').addEventListener('click', () => {
el.classList.toggle('closed');
});
});
let expanded = false;
document.querySelector('.control').addEventListener('click', (e) => {
expanded = !expanded;
if (expanded) {
e.target.innerText = 'Collapse all';
} else {
e.target.innerText = 'Expand all';
}
document.querySelectorAll('.has-nested').forEach((el) => {
if (expanded) {
el.classList.remove('closed');
} else {
el.classList.add('closed')
}
});
});
</script>
</body>
</html>