aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-spa-router.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/arching-kaos-spa-router.js')
-rw-r--r--src/js/arching-kaos-spa-router.js24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/js/arching-kaos-spa-router.js b/src/js/arching-kaos-spa-router.js
index 162a316..d1cf2a4 100644
--- a/src/js/arching-kaos-spa-router.js
+++ b/src/js/arching-kaos-spa-router.js
@@ -48,19 +48,27 @@ export function locationHashOnChange()
route.menuid = '#'+route.args[1];
route.subcommand = route.args[2];
menuinit();
- if ( (locationHashGetter() !== 'undefined') && (locationHashGetter() === '') ){
- getWelcomeSection.hidden=false;
+ if ( (locationHashGetter() !== 'undefined') && (locationHashGetter() === '') )
+ {
+ getWelcomeSection().hidden=false;
}
- else if ( route.args[1] == "route" ) {
- getWelcomeSection.hidden=false;
- if ( route.args.length === 4 ) {
- if ( route.args[2] === "zblock" ) {
+ else if ( route.args[1] == "route" )
+ {
+ getWelcomeSection().hidden=false;
+ if ( route.args.length === 4 )
+ {
+ if ( route.args[2] === "zblock" )
+ {
seekZblock(route.args[3], ['search', false]);
}
}
- } else if ( (locationHashGetter() !== 'undefined') && ( menuids().includes(route.menuid))){
+ }
+ else if ( (locationHashGetter() !== 'undefined') && ( menuids().includes(route.menuid)))
+ {
document.querySelector(route.menuid).hidden=false;
- } else {
+ }
+ else
+ {
getSoftError().hidden=false;
}
}