Last active
March 11, 2020 17:48
-
-
Save kanonji/81a1e079666e0b6d0a101017def80d7c to your computer and use it in GitHub Desktop.
2020-03-11~2020-04-12まで無料公開の小学館版学習まんが 少年少女日本の歴史 https://kids-km3.shogakukan.co.jp/ で←→キーでページをめくれる様にするbookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){const e=document.getElementById("tap_left_area"),t=document.getElementById("tap_right_area");document.addEventListener("keydown",n=>{"ArrowLeft"===n.key&&e.click(),"ArrowRight"===n.key&&t.click()})})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
const leftButton = document.getElementById('tap_left_area') | |
const rightButton = document.getElementById('tap_right_area') | |
document.addEventListener('keydown', e => { | |
if ('ArrowLeft' === e.key) leftButton.click() | |
if ('ArrowRight' === e.key) rightButton.click() | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment