Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

"/" to search #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion static/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ async function home() {
`;
}
});
document.body.addEventListener('keyup', function(event) {
if (event.keyCode == 191) {
document.querySelector('input').focus();
};
});
};
};

Expand Down Expand Up @@ -235,4 +240,4 @@ function parseCookies(str = '') {
const map = new Map();
str.split('; ').forEach(cookie => map.set(...cookie.split('=')));
return map;
};
};