zk_html/lj-dump/L-9.html

59 lines
2.7 KiB
HTML
Raw Normal View History

2020-04-23 20:55:07 +00:00
<!doctype html>
<html>
<head>
<title>Zk | Yarr..</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 | Yarr..</h1>
</header>
<article class="content">
<p>Babylonia's down, probably for the weekend. Fucky.</p>
<p>Anyway, got some ideas for indexing my site with graphs using <em>dot</em> or <em>neato</em> (though probably dot, since not all links are bidirectional. This, however, would be trivial to fix once the origional graph is made. Once a file is added or edited, a revision program could be run to put a 'pages that link to this page' section in the document). Also thinking about adding a Rampancy .dme.</p>
<p>The Syntax highlighter is coming along fine. Or.. it was until babylonia went down. The problem is that I'm using Parse::RecDescent's version of BNF for the syntax files, and that mows right through \n's, so it's turning into a sort of 'tidy' program that indents and spaces everything nicely. Maybe. It also works as a validator, either highlighting in red(reversevid()) or not highlighting at all anything that doesn't match a rule. <a href="http://ranna.bolognia.net/available/in-progress/syn/xml.syn" target="_blank">Here</a>'s a syntax file, even though you won't be able to see until babylonia gets back up.</p>
<p>I miss Andrew</p>
<span class="control">Expand all</span>
</article>
<footer>
<p>Page generated on 2002-08-16 21:15:21</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>