zk_html/lj-dump/L-1496.html

59 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | NaNoWriMo</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 | NaNoWriMo</h1>
</header>
<article class="content">
<p><img src="http://www.nanowrimo.org/NanowrimoUtils/LiveSupporter/116254.png"/></p>
<p>Bang, baby. 11:50 PM, I saved and reached 50,070 words! Now, my laptop's battery is about to die, so I gotta head home and recharge. I'll finish the chapter and post then.</p>
<p>EDIT: As I was walking home, there were two layers of clouds, moving rapidly in opposite directions. I can only hypothesize that this is due to how awesome I feel. :o) Just got home, will finish chapter now.</p>
<p>EDITEDIT: Finally! 50,694. I know it's all rambly. Side effect of trying to cram 7,000-some-odd words into such a short time. Where we left off: http://drab-makyo.com/node/6</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2008-11-14 06:53: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>