zk_html/lj-dump/L-175.html

57 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | Mwerf.</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 | Mwerf.</h1>
</header>
<article class="content">
<p>I decided to exchange sleep for watching Amelie. It made me sad. Now I'm awake, and reading about drugs. Woo.</p>
<p>I know I haven't written much about Michael recently, but I guess when everything seems pretty cool, it doesn't feel like there's a whole lot to write about. We just sorta threw everything out the window (the window, the window, the second story window...) and got rid of all the labels and ideas we had for the relationship, and aren't calling it anything. Samir tried to define it, so I just went along with whatever he said and kept my lack of names to myself. We've been fairly close recently, and I'm feeling pretty good about that. Moondog seems to be happy as well ^</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2004-06-06 01:13:45</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>