zk_html/lj-dump/L-511.html

60 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>So.. today's weird c.c; After that fiasco with not being able to sign up for some required classes because I'm apparently still a pre-music major and now I need to get overrides into classes so that I'm not STILL A FRESHMAN, uh.. what was I going to say? Oh, right! I.. hmm. Dr. Kim invited me to go to South Korea with the Chamber singers, because one of the basses isn't able to go @.@ SOUTH FRIGGIN' KOREA! I said yes, even though it'll be $950 for airfare (so, all of the money I make working this summer :oP). Uh.. so yeah. Mood swings, not my fault.
<details text="Geek quiz."><summary>Geek quiz.</summary>
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img alt="My computer geek score is greater than 82% of all people in the world! How do you compare? Click here to find out!" src="http://www.nerdtests.com/images/ft/cg.php?val=0776"/> </a></p>
<p>&lt;/details</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2005-04-20 20:24:36</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>