zk_html/lj-dump/L-649.html

56 lines
2.6 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><center><table style="border: 1px black solid;"><tr><th colspan="2" style="background-color: #ffdd00">gv_ranna's Flesch-Kincaid Grade Level: <span style="background-color: #ffff00; padding-left: 5px; padding-right: 5px; border: 1px black solid">7</span></th></tr><tr><td style="background-color: #eeeeee">Average number of words per sentence:</td><td style="background-color: #eeeeee">15.78</td></tr><tr><td>Average number of syllables per word:</td><td>1.39</td></tr><tr><td style="background-color: #eeeeee">Total words in sample:</td><td style="background-color: #eeeeee">2052</td></tr><form action="http://mavra.perilith.com/~rfreebern/gradelevel/" method="post"><tr><td colspan="2">Analyze your journal! Username: <input name="username" type="text"/> <input type="submit" value="Analyze"/></td></tr></form><tr><td colspan="2" style="font-size: x-small; text-align: center; background-color: #eeeeee">Another fun meme brought to you by <a href="http://www.livejournal.com/users/rfreebern/">rfreebern</a></td></tr></table>&lt;/center</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2005-10-10 05:51:08</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>