Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
e5c0c47
1
Parent(s):
1e23162
Update templates/index.html
Browse files- templates/index.html +6 -0
templates/index.html
CHANGED
@@ -392,6 +392,12 @@
|
|
392 |
});
|
393 |
});
|
394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
|
396 |
</script>
|
397 |
</body>
|
|
|
392 |
});
|
393 |
});
|
394 |
|
395 |
+
// Change feed on space bar press
|
396 |
+
document.addEventListener('keydown', function(event) {
|
397 |
+
if (event.keyCode === 32) {
|
398 |
+
window.location.href = '/?new=true';
|
399 |
+
}
|
400 |
+
});
|
401 |
|
402 |
</script>
|
403 |
</body>
|