56 lines
3.1 KiB
HTML
56 lines
3.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Zk | Hahaha..</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 | Hahaha..</h1>
|
|
</header>
|
|
<article class="content">
|
|
<div style="padding:8px;margin:15px;background-color:#CFCF95;color:#1A0A13;font-family: georgia, helvetica, trebuchet ms, verdana, sans-serif;"><h2 style="text-align:center;font-size:110%;background-color:#DFDFa5;padding:2px"><a href="http://thesurrealist.co.uk/trivia.pl?subject=Ranna&gender=m" style="color:#000;background-color:#DFDFa5">Ten Top Trivia Tips about Ranna!</a> </h2> <ol><li>White chocolate isn't technically chocolate, because it doesn't contain Ranna.</li><li>Four-fifths of the surface of Ranna is covered in water.</li><li>The first toy product ever advertised on television was Mr Ranna Head.</li><li>Ranna does not have toes.</li><li>Ranna cannot jump.</li><li>If you drop Ranna from the top of the Empire State Building, he will be falling fast enough to kill before reaching the ground.</li><li>Every day in the UK, four people die putting Ranna on!</li><li>A lump of Ranna the size of a matchbox can be flattened into a sheet the size of a tennis court!</li><li>The water in oceans is four times less salty than the water in Ranna!</li><li>In Vermont, the ratio of cows to Ranna is 10:1.</li></ol><form action="http://thesurrealist.co.uk/trivia.pl" method="get" style="background-color:#5F5F42;color:#CFCF95;padding:4px;text-align:center">I am interested in <input name="subject" type="text"/> - do tell me about<select name="gender"><option value="f">her</option><option value="m">him</option><option value="n">it</option><option value="p">them</option></select><input type="submit" value="Go"/></form></div
|
|
<span class="control">Expand all</span>
|
|
</article>
|
|
<footer>
|
|
<p>Page generated on 2006-01-16 20:07:44</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>
|