1
0
Fork 0
web/js/man.js
2024-05-06 20:08:34 +02:00

19 lines
485 B
JavaScript

window.onload = () => {
const msg = document.querySelector("#message");
const lh =
document.defaultView
.getComputedStyle(msg, null)
.getPropertyValue("lineHeight");
msg.innerHTML = "Manual page henri(1)";
document.onkeydown = (e) => {
e = e || window.event;
switch (e.keyCode) {
case 74:
window.scrollBy(0, msg.clientHeight); break;
case 75:
window.scrollBy(0, -msg.clientHeight); break;
default: break;
}
}
};