Original Commit
This commit is contained in:
parent
1dff93db1d
commit
c5c3596a73
|
@ -0,0 +1,16 @@
|
||||||
|
addEventListener('hashchange', (event) => {
|
||||||
|
setPage();
|
||||||
|
});
|
||||||
|
function setPage(){
|
||||||
|
document.querySelectorAll('.spapage').forEach(e=>{
|
||||||
|
e.hidden=true;
|
||||||
|
});
|
||||||
|
var hash=window.location.hash.replace('#','');
|
||||||
|
if(hash.length === 0)
|
||||||
|
{
|
||||||
|
hash="index";
|
||||||
|
}
|
||||||
|
|
||||||
|
document.getElementById(hash).hidden=false;
|
||||||
|
}
|
||||||
|
setPage();
|
Loading…
Reference in New Issue