|
|
@ -1,7 +1,6 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
This code waits for the viewer to load with the search panel open, then it closes the search 'companion window' |
|
|
|
This code waits for the viewer to load with the search panel open, then it closes the search 'companion window' |
|
|
|
leaving the search icon visible. This combo is not available in the configs |
|
|
|
leaving the search icon visible. This combo is not available in the configs |
|
|
|
*/ |
|
|
|
|
|
|
|
jQuery(window).on("load", function() { |
|
|
|
jQuery(window).on("load", function() { |
|
|
|
jQuery(".mirador31").css({ |
|
|
|
jQuery(".mirador31").css({ |
|
|
|
"display": "none", |
|
|
|
"display": "none", |
|
|
@ -20,3 +19,24 @@ jQuery(window).on("load", function() { |
|
|
|
jQuery(".mirador34").click(); |
|
|
|
jQuery(".mirador34").click(); |
|
|
|
console.log("window loaded, mirador-mods applied"); |
|
|
|
console.log("window loaded, mirador-mods applied"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
window.addEventListener("load", (event) => { |
|
|
|
|
|
|
|
const searchPanel = document.querySelector(".mirador31"); |
|
|
|
|
|
|
|
const searchPanelToggle = document.querySelector("button.mirador34"); |
|
|
|
|
|
|
|
const searchPanelIcon = document.querySelector("button.MuiButtonBase-root.MuiTab-root.mirador26 svg"); |
|
|
|
|
|
|
|
console.log(searchPanel); |
|
|
|
|
|
|
|
searchPanel.style.display = "none"; |
|
|
|
|
|
|
|
searchPanel.style.transform = "translateX(0px)"; |
|
|
|
|
|
|
|
searchPanel.style.visibility = "hidden"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
searchPanelToggle.setAttribute("aria-expanded", "false"); |
|
|
|
|
|
|
|
searchPanelToggle.setAttribute("aria-label", "Expand sidebar"); |
|
|
|
|
|
|
|
searchPanelToggle.setAttribute("title", "Expand sidebar"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
searchPanelToggle.click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("page is fully loaded"); |
|
|
|
|
|
|
|
console.log(searchPanel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|