1
0
Fork 0

man henri

This commit is contained in:
Henri Saudubray 2024-05-06 20:08:34 +02:00
parent c95619d517
commit aceacfc7a2
3 changed files with 171 additions and 109 deletions

19
js/man.js Normal file
View file

@ -0,0 +1,19 @@
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;
}
}
};