arrow keys navigation added | fixes mmcgrana/gobyexample#222

This commit is contained in:
Shivam Rathore
2019-06-24 00:41:52 +05:30
committed by Mark McGranaghan
parent ff7d5ba117
commit 1943fe0803
73 changed files with 992 additions and 0 deletions

View File

@@ -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>