zk_html/lj-dump/L-618.html

57 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | [no subject]</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 | [no subject]</h1>
</header>
<article class="content">
<p>The malaise of stress is still hanging around me like a fog, sorta.. pressing against the small of my back and making my knees ache. Though that might just be Autumn, which definitely appears to be here. I was going to take the 7:25 bus, but a bowl of rice wasn't enough, so I made another and was just going to ride my bike. My body disagreed, so I took the 7:55 bus and was 5 minutes late for my listening test. I think I got everything, though. I need to learn a song by 2pm.</p>
<p>I wish I could be as eloquent with my own life as <lj user="artist_boy"></lj> is with his, but my eloquence is spent on obscenely cute stories about foxes and pornographic dream sequences instead. I try, but it just comes out as uppity whining :o</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2005-09-14 14:47:11</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>