zk_html/writing/index.html

87 lines
2.9 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | Writing</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 | Writing</h1>
</header>
<article class="content">
<p><span class="tag">writing</span></p>
<ul>
<li class="done0"> Todo</li>
<li class="done1"> Outlined</li>
<li class="done2"> Written</li>
<li class="done3"> First pass</li>
<li class="done4"> Second pass</li>
</ul>
<h2 id="collections-universes-and-larger-works">Collections, universes, and larger works</h2>
<ul>
<li><a href="sawtooth/index.html">Sawtooth Universe</a></li>
<li><a href="post-self/index.html">Post-Self</a></li>
<li><a href="on-furry/index.html">On Furry</a></li>
<li><a href="rum-and-coke/index.html">Rum and Coke</a></li>
<li><a href="consequences-of-dissonance/index.html">Consequences of Dissonance</a></li>
<li><a href="jaroudi/index.html">Jaroudi</a></li>
<li>Poetry:<ul>
<li><a href="eigengrau/index.html">Eigengrau</a></li>
<li><a href="poetry/index.html">Ongoing</a></li>
</ul>
</li>
</ul>
<h2 id="individual-stories">Individual stories</h2>
<ul>
<li><a href="belek.html">The Presence Between the Pages</a></li>
<li><a href="missives.html">Missives</a></li>
<li><a href="light.html">Light</a></li>
<li><a href="tu-pater-et-mater.html">Tu Pater Et Mater</a></li>
<li><a href="all-of-time-at-once.html">All of Time at Once</a></li>
<li><a href="where-the-dust-comes-from.html">Where the Dust Comes From</a></li>
<li><a href="at-his-whim.html">At His Whim</a></li>
</ul>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2020-04-15</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>