docs(slides): improve slides images and theme
This commit is contained in:
@@ -54,8 +54,8 @@ document.getElementById('prev').addEventListener('click', () => go(-1));
|
||||
document.getElementById('next').addEventListener('click', () => go(1));
|
||||
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (['ArrowRight', 'PageUp'].includes(e.key)) go(-1);
|
||||
if (['ArrowLeft', 'PageDown', ' '].includes(e.key)) go(1);
|
||||
if (['ArrowLeft', 'PageUp'].includes(e.key)) go(-1);
|
||||
if (['ArrowRight', 'PageDown', ' '].includes(e.key)) go(1);
|
||||
if (e.key.toLowerCase() === 'n') notesBox.classList.toggle('show');
|
||||
if (e.key.toLowerCase() === 'f') {
|
||||
if (!document.fullscreenElement) document.documentElement.requestFullscreen?.();
|
||||
|
||||
Reference in New Issue
Block a user