web: start: add dynamique menu
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d4282353e7
commit
c805169747
9 changed files with 343 additions and 8 deletions
|
|
@ -17,7 +17,8 @@ const MODULE_CACHE = new Map()
|
|||
let activeCSS = null
|
||||
|
||||
function currentRoute() {
|
||||
return window.location.hash.replace(/^#\//, '') || PAGES[0]?.route || ''
|
||||
const hash = window.location.hash.replace(/^#\//, '') || PAGES[0]?.route || ''
|
||||
return hash.split('?')[0]
|
||||
}
|
||||
|
||||
async function render(routeName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue