zk_html/lj-dump/L-1080.html

56 lines
2.5 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>"If you're maybe noticing that you're older than you used to be, and are feeling sad/angry/confused/worried/frustrated that you haven't accomplished as much as you/other people in your present or past/annoyingly critical voices inside your head think you should have, and if you're maybe feeling something like "I'm not a real grownup like everyone else," and if you're maybe also feeling sad/angry/confused/worried/frustrated that your body isn't working the way it used to, and you're maybe thinking, "if that's true then how am I going to DO all those accomplishments that I/other people/voices in my head think I ought or want to do?", and maybe you're also wondering how are you going to dig out from under the accumulation of habit and procrastination and self-doubt to some sense of satisfaction in your life again, then post this same sentence in your journal.</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2007-06-27 01:09:00</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>