This commit is contained in:
parent
0e109ae676
commit
dac8953864
10
index.html
10
index.html
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user