Merge pull request #7 from Hacks-R-Us/feature/scroll-to-policy

Scroll to policy when ">" pressed
This commit is contained in:
Tom Lee 2020-08-26 19:11:10 +02:00 committed by GitHub
commit 7a0126ed13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -30,7 +30,7 @@
<li><a href="https://events.ccc.de/congress/2019">36C3</a></li>
<li><a href="https://emfcamp.org"><s>EMF2020</s></a> stupid virus</li>
</ul>
<h3>Policy</h2>
<h3 id='policy'>Policy</h2>
<ol class="left-aligned">
<li>No one shall dissuade or stop anyone from making anything, especially if it's a bad idea.</li>
<li>"Fuck it, we'll do it live" is always acceptable.</li>
@ -39,5 +39,13 @@
<li>Un defined, (but positive) number of ✅ are needed for policy approvals.</li>
</ol>
</div>
<script>
document.onkeypress = (e) => {
if (e.key === '>') {
document.getElementById("policy").scrollIntoView();
}
}
</script>
</body>
</html>