mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-23 06:05:15 +00:00
Work progress on project UI
This commit is contained in:
@ -1,5 +1,19 @@
|
||||
/**
|
||||
* Data export result stylesheet
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
|
||||
.sidenav.sidenav-fixed {
|
||||
/*transform: unset;*/
|
||||
/*margin-top: 80px;*/
|
||||
}
|
||||
|
||||
main {
|
||||
margin-left: 300px;
|
||||
}
|
||||
|
||||
main .container {
|
||||
display: none;
|
||||
}
|
34
assets/zip/personnal-data-export-navigator/assets/js/main.js
Normal file
34
assets/zip/personnal-data-export-navigator/assets/js/main.js
Normal file
@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Data export visualization navigator
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
/**
|
||||
* Refresh tabs visibility accordingly to the hash of
|
||||
* the current URL
|
||||
*/
|
||||
function RefreshTabsVisibility(){
|
||||
|
||||
var hash = location.href.toString().split("#")[1];
|
||||
|
||||
if(!hash)
|
||||
return;
|
||||
|
||||
document.querySelectorAll(".category").forEach(el => {
|
||||
|
||||
el.style.display = el.id === hash ? "block" : "none";
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Automatically switch the tab when it
|
||||
* is required by the user
|
||||
*/
|
||||
window.addEventListener("hashchange", RefreshTabsVisibility);
|
||||
|
||||
|
||||
//Page initialization
|
||||
RefreshTabsVisibility();
|
Reference in New Issue
Block a user