Scroll to policy when ">" pressed

This commit is contained in:
Tom Lee 2020-08-26 18:06:02 +01:00
parent c7b9f5afbd
commit 76042d810b
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://events.ccc.de/congress/2019">36C3</a></li>
<li><a href="https://emfcamp.org"><s>EMF2020</s></a> stupid virus</li> <li><a href="https://emfcamp.org"><s>EMF2020</s></a> stupid virus</li>
</ul> </ul>
<h3>Policy</h2> <h3 id='policy'>Policy</h2>
<ol class="left-aligned"> <ol class="left-aligned">
<li>No one shall dissuade or stop anyone from making anything, especially if it's a bad idea.</li> <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> <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> <li>Un defined, (but positive) number of ✅ are needed for policy approvals.</li>
</ol> </ol>
</div> </div>
<script>
document.onkeypress = (e) => {
if (e.key === '>') {
document.getElementById("policy").scrollIntoView();
}
}
</script>
</body> </body>
</html> </html>