|
|
|
|
@ -4,9 +4,9 @@ leaving the search icon visible. This combo is not available in the configs
|
|
|
|
|
*/ |
|
|
|
|
window.addEventListener("load", (event) => { |
|
|
|
|
// find elements
|
|
|
|
|
const searchPanel = document.querySelector(".mirador31"); |
|
|
|
|
const searchPanel = document.querySelector("div.mirador31"); |
|
|
|
|
const searchPanelToggle = document.querySelector("button.mirador34"); |
|
|
|
|
const searchPanelIcon = document.querySelector("button.MuiButtonBase-root.MuiTab-root.mirador26 svg"); |
|
|
|
|
// const searchPanelIcon = document.querySelector("button.MuiButtonBase-root.MuiTab-root.mirador26 svg");
|
|
|
|
|
// hide the panel
|
|
|
|
|
searchPanel.style.display = "none"; |
|
|
|
|
searchPanel.style.transform = "translateX(0px)"; |
|
|
|
|
@ -16,10 +16,10 @@ window.addEventListener("load", (event) => {
|
|
|
|
|
searchPanelToggle.setAttribute("aria-label", "Expand sidebar"); |
|
|
|
|
searchPanelToggle.setAttribute("title", "Expand sidebar"); |
|
|
|
|
|
|
|
|
|
searchPanelIcon.style.fontSize = "2.7em"; |
|
|
|
|
searchPanelIcon.style.marginTop = "21px"; |
|
|
|
|
//searchPanelIcon.style.fontSize = "2.7em";
|
|
|
|
|
//searchPanelIcon.style.marginTop = "21px";
|
|
|
|
|
//
|
|
|
|
|
//fake click
|
|
|
|
|
searchPanelToggle.click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|