-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed 59bc60d with MkDocs version: 1.6.0
- Loading branch information
1 parent
831d9f9
commit 247c27d
Showing
5 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,33 @@ | ||
document.addEventListener("DOMContentLoaded", async () => { | ||
// Check if the URL contains 'notebook' | ||
if (window.location.pathname.includes('notebook')) { | ||
// Target the sidebar and hide it | ||
const sidebar = document.querySelector('.md-sidebar--secondary'); | ||
if (sidebar) { | ||
sidebar.style.display = 'none'; | ||
// Increase width of notebook and galley pages | ||
if (window.location.pathname.includes('notebook') || window.location.pathname.includes('gallery')) { | ||
|
||
// hide primary sidebar | ||
const sidebar_primary = document.querySelector('.md-sidebar--primary'); | ||
|
||
if (sidebar_primary) { | ||
sidebar_primary.style.width = '8.1rem'; | ||
} | ||
|
||
// hide secondary sidebar | ||
const sidebar_secondary = document.querySelector('.md-sidebar--secondary'); | ||
|
||
if (sidebar_secondary) { | ||
sidebar_secondary.style.display = 'none'; | ||
} | ||
|
||
// remove max width constraint | ||
const md_grid = document.querySelector('.md-main__inner'); | ||
|
||
if (md_grid) { | ||
md_grid.style.marginLeft = 'unset'; | ||
md_grid.style.marginRight = 'unset'; | ||
md_grid.style.maxWidth = 'none'; | ||
} | ||
|
||
|
||
// You can also add additional logic specific to notebook pages here | ||
console.log("Notebook page detected. Sidebar hidden."); | ||
} | ||
|
||
// // Example of existing logic for a specific page | ||
// const landscape_el = document.getElementById('landscape-skin-cancer'); | ||
// if (window.location.pathname.endsWith('gallery_xenium_skin_cancer/')) { | ||
// const token = ''; | ||
// const ini_x = 21500; | ||
// const ini_y = 14200; | ||
// const ini_z = 0; | ||
// const ini_zoom = -6; | ||
// const base_url = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/Xenium_Prime_Human_Skin_FFPE_outs'; | ||
|
||
// const landscape = await celldega.landscape_ist( | ||
// landscape_el, | ||
// {}, | ||
// token, | ||
// ini_x, | ||
// ini_y, | ||
// ini_z, | ||
// ini_zoom, | ||
// base_url, | ||
// '', | ||
// 0.25, | ||
// '100%', | ||
// '100%', | ||
// ); | ||
// } | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
gallery/gallery_xenium_mouse_brain/gallery_xenium_mouse_brain.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Xenium Prime Mouse Brain Coronal FF | ||
|
||
<div id="landscape-container" style="position: relative; display: flex; width: 100%; height: 500px; overflow: hidden; border: 1px solid #ccc;"> | ||
<div id="landscape-mouse-brain" style="height; 500px;"></div> | ||
<div id="landscape-container" style="position: relative; display: flex; width: 100%; height: 800px; overflow: hidden; border: 1px solid #ccc;"> | ||
<div id="landscape-mouse-brain" style="height; 800px;"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.