|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<html lang="en" id="top">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<link rel="stylesheet" href="{{ staticpath }}/static/archive.css" />
|
|
|
|
@ -8,24 +8,45 @@
|
|
|
|
|
<script type="text/javascript" src="{{ staticpath }}/static/orgs.js"></script>
|
|
|
|
|
<title>{{ page.name }}</title>
|
|
|
|
|
</head>
|
|
|
|
|
<h1>{{ page.name }}</h1>
|
|
|
|
|
<body>
|
|
|
|
|
<h1>▤ {{ page.name }}</h1>
|
|
|
|
|
|
|
|
|
|
<button onclick="scrollWin(0,5000)" class="down" title="Down">⌟</button>
|
|
|
|
|
<button onclick="scrollWin(0,-5000)" class="up" title="Up">⌜</button>
|
|
|
|
|
<button onclick="scrollToTop()" class="top" title="Top">⎴</button>
|
|
|
|
|
<button onclick="scrollToBottom()" class="bottom" title="Bottom">⎵</button>
|
|
|
|
|
|
|
|
|
|
<div id="body">{{ body|safe }}</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
var coll = document.getElementsByClassName("collapsible");
|
|
|
|
|
var i;
|
|
|
|
|
var coll = document.getElementsByClassName("collapsible");
|
|
|
|
|
var i;
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < coll.length; i++) {
|
|
|
|
|
coll[i].addEventListener("click", function() {
|
|
|
|
|
this.classList.toggle("active");
|
|
|
|
|
var content = this.nextElementSibling;
|
|
|
|
|
if (content.style.maxHeight){
|
|
|
|
|
content.style.maxHeight = null;
|
|
|
|
|
} else {
|
|
|
|
|
content.style.maxHeight = content.scrollHeight + "px";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function scrollWin(x, y) {
|
|
|
|
|
window.scrollBy(x, y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var elmnt = document.getElementById("top");
|
|
|
|
|
|
|
|
|
|
function scrollToTop() {
|
|
|
|
|
elmnt.scrollIntoView(true); // Top
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < coll.length; i++) {
|
|
|
|
|
coll[i].addEventListener("click", function() {
|
|
|
|
|
this.classList.toggle("active");
|
|
|
|
|
var content = this.nextElementSibling;
|
|
|
|
|
if (content.style.maxHeight){
|
|
|
|
|
content.style.maxHeight = null;
|
|
|
|
|
} else {
|
|
|
|
|
content.style.maxHeight = content.scrollHeight + "px";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function scrollToBottom() {
|
|
|
|
|
elmnt.scrollIntoView(false); // Bottom
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|