arrow keys navigation added | fixes mmcgrana/gobyexample#222
This commit is contained in:
committed by
Mark McGranaghan
parent
ff7d5ba117
commit
1943fe0803
@@ -5,6 +5,20 @@
|
||||
<title>Go by Example: String Formatting</title>
|
||||
<link rel=stylesheet href="site.css">
|
||||
</head>
|
||||
<script>
|
||||
onkeydown = (e) => {
|
||||
|
||||
if (e.key == "ArrowLeft") {
|
||||
window.location.href = 'string-functions';
|
||||
}
|
||||
|
||||
|
||||
if (e.key == "ArrowRight") {
|
||||
window.location.href = 'regular-expressions';
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<div class="example" id="string-formatting">
|
||||
<h2><a href="./">Go by Example</a>: String Formatting</h2>
|
||||
|
||||
Reference in New Issue
Block a user