zk_html/lj-dump/L-704.html

57 lines
2.3 KiB
HTML
Raw Normal View History

2020-04-23 20:55:07 +00:00
<!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>I think I've pretty much given up on NaNoWriMo. It's not that I plan on giving up on the novel itself, just that I can't do it this month - just not nearly enough time what with class and all.</p>
<p>However, I think I might turn December into NaSoCoMo - National Song Composition Month. Heh. I don't think the NaNo people would be too happy with that, though. The reason I'm doing it is <a href="http://bmifoundation.org/pages/SComposer.asp">this</a>, which seems like a good idea: sending my music off to a publisher, not to get published, but surely to get exposed. Since there's a better chance of winning that than there ever was of winning the ABO award, I think I might go for it, perhaps with the Keats Cantata. Whatever ^</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2005-11-16 17:20:30</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>