fix: key doen
All checks were successful
Upload / Explore-Gitea-Actions (push) Successful in 52s

This commit is contained in:
moonlightwatch 2025-03-26 19:35:18 +08:00
parent 0e109ae676
commit dac8953864

View File

@ -89,16 +89,16 @@
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script> <script>
$(document.body).on('keydown', function (event) { document.body.onkeydown(function (event) {
var KEY_B = 66; var KEY_B = 66;
if (event.which === KEY_B) { if (event.which === KEY_B) {
$('.relocate-location').text('书签页'); document.getElementsByClassName("relocate-location").text('书签页');
$('.relocating').css('opacity', 1); document.getElementsByClassName("relocating").css('opacity', 1);
window.setTimeout(function () { window.setTimeout(function () {
$('.relocate-location').text(''); document.getElementsByClassName("relocate-location").text('');
$('.relocating').css('opacity', 0); document.getElementsByClassName("relocating").css('opacity', 0);
window.location.href = '/bookmarks.html'; window.location.href = '/bookmarks.html';
}, 1000); }, 1000);
} }