zk_html/writing/not-all-of-this-is-yours.html

77 lines
2.8 KiB
HTML

<!doctype html>
<html>
<head>
<title>Zk | Not All of This Is Yours</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 | Not All of This Is Yours</h1>
</header>
<article class="content">
<p><span class="tag">writing</span> <span class="tag">fiction</span> <span class="tag">interactive</span> <span class="tag">twine</span> <span class="tag">family</span></p>
<p>Twine game that shows mental degradation through Alzheimer's by the language usage declining. If you go back a chapter, you get a degraded version, rather than the previous, higher version.</p>
<h2 id="story">Story</h2>
<ul>
<li>Recalling an old love over tea</li>
<li>Visits to retirement home over time<ul>
<li>May, 2015: you request to hear a story, they tell you about a love from their past.</li>
<li>August, 2015: Flirting</li>
<li>December, 2015: Deciding when actually together</li>
<li>March: 2016:</li>
<li>April: 2016:</li>
</ul>
</li>
</ul>
<h2 id="levels">Levels</h2>
<ol>
<li>Clear and cogent, emotion under check, introspective</li>
<li>Clear and cogent, but forgetful, emotion getting stronger, less introspective</li>
<li>Less clear, more forgetful, emotion starting overrule other parts</li>
<li>Starting to get immature, lots of frustration, lots of memory problems, getting repetitive.</li>
<li>Childlike with out-of-control and immature emotions, meanness and frustration. Intense memory problems, lots of repetition.</li>
</ol>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2020-04-23</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>