Base
This commit is contained in:
17
nginx/static/scripts/navigation.js
Normal file
17
nginx/static/scripts/navigation.js
Normal file
@ -0,0 +1,17 @@
|
||||
export function initNavigation() {
|
||||
document.getElementById('home-button').addEventListener('click', () => {
|
||||
window.location.hash = '#/';
|
||||
});
|
||||
|
||||
document.getElementById('sources-button').addEventListener('click', () => {
|
||||
window.location.hash = '#/sources';
|
||||
});
|
||||
|
||||
document.getElementById('suggest-button').addEventListener('click', () => {
|
||||
window.location.hash = '#/suggest';
|
||||
});
|
||||
|
||||
document.getElementById('search-button').addEventListener('click', () => {
|
||||
window.location.hash = '#/search';
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user