User:E.zn/special issue XI

From XPUB & Lens-Based wiki
< User:E.zn
Revision as of 18:05, 25 April 2020 by E.zn (talk | contribs)
https://issue.xpub.nl/11/

SI11PDI.png


NOT

<button onclick="scrollWin(0,-5000)" class="up scrl">Up</button> <button onclick="scrollWin(0,5000)" class="down scrl">Down</button> <button onclick="scrollToTop()" class="top scrl">Top</button> <button onclick="scrollToBottom()" class="bottom scrl">Bottom</button>
<script> 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 } function scrollToBottom() { elmnt.scrollIntoView(false); // Bottom } </script>
SI11not2.png