zk_html/lj-dump/L-76.html

78 lines
2.8 KiB
HTML
Raw Normal View History

2020-04-23 20:55:07 +00:00
<!doctype html>
<html>
<head>
<title>Zk | From Ryan.</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 | From Ryan.</h1>
</header>
<article class="content">
<p>Test thingie from Ryan! Fill in answers about the person you got this from, then you put the entire thing as a comment. Don't feel obligated to answer this; you can just copy and put on your own livejournal.</p>
<ol>
<li>Give me a nickname and explain why you picked it.</li>
<li>Am I lovable?</li>
<li>How long have you known me?</li>
<li>When and how did we first meet?</li>
<li>What was your first impression?</li>
<li>Do you still think that way about me now?</li>
<li>What do you think my weakness is?</li>
<li>Do you think I'll ever get married?</li>
<li>What makes me happy?</li>
<li>What makes me sad?</li>
<li>What reminds you of me?</li>
<li>If you could give me anything what would it be?</li>
<li>How well do you know me?</li>
<li>When's the last time you saw me?</li>
<li>Ever wanted to tell me something but couldn't?</li>
<li>Do you think I could kill someone?</li>
<li>Describe me in one word.</li>
<li>Do you think our friendship is getting stronger, weaker, or staying the same?</li>
<li>Do you feel that you could talk to me about anything and I would listen?</li>
<li>Are you going to put this on your LJ and see what I say about you</li>
</ol>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2004-03-06 16:43:52</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>