75 lines
2.3 KiB
HTML
75 lines
2.3 KiB
HTML
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Zk | dearest we, i cordially invite me to become noone but yourselves r s v p</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 | dearest we, i cordially invite me to become noone but yourselves r s v p</h1>
|
||
|
</header>
|
||
|
<article class="content">
|
||
|
<p>supposing i dreamed this)
|
||
|
only imagine,when day has thrilled
|
||
|
you are a house around which
|
||
|
i am a wind-</p>
|
||
|
<p>your walls will not reckon how
|
||
|
strangely my life is curved
|
||
|
since the best he can do
|
||
|
is to peer through windows,unobserved</p>
|
||
|
<p>-listen,for(out of all
|
||
|
things)dream is noone's fool;
|
||
|
if this wind who i am prowls
|
||
|
carefully around this house of you</p>
|
||
|
<p>love being such,or such,
|
||
|
the normal corners of your heart
|
||
|
will never guess how much
|
||
|
my wonderful jealousy is dark</p>
|
||
|
<p>if light should flower:
|
||
|
or laughing sparkle from
|
||
|
the shut house(around and around
|
||
|
which a poor wind will roa</p>
|
||
|
<span class="control">Expand all</span>
|
||
|
</article>
|
||
|
<footer>
|
||
|
<p>Page generated on 2005-10-04 13:47:17</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>
|