zk_html/lj-dump/L-67.html

57 lines
2.4 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | Muh.</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 | Muh.</h1>
</header>
<article class="content">
<p>School really wasn't all that great, now that I think back on it. I'm amazed I can feel like I'm having a lot of fun while I'm there, then get home and realize how much I really don't like that place. Revier was in a good mood, at least. He tried to run Steph P. over with a baby grand piano with an expression that was somehow both vacuous and angry. Had a slight pack with Andrew and Ryan at anime while watching something goofy. After, I walked around the house naked and ate pizza (it's amazing what you feel like doing when you know you have the house to yourself). I took a drive to get some air, too, but it smelled like stale cigarette smoke. Pops tonight, Pops and strike tomorrow night, then I'll have a Moondog.</p>
<p>I'm so tired. It must be time for tea</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2004-02-27 17:28:59</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>