remove container on resultts page

This commit is contained in:
buzz-lightsnack-2007 2024-05-05 21:12:35 +08:00
parent 0703fbec39
commit 3908fcdb90

View file

@ -79,12 +79,19 @@ class Page_Popup extends Page {
this.elements[`frame`].forEach((frame) => {
frame.src = PAGE;
})
// The results page has its own container.
this.elements[`container`].forEach((CONTAINER) => {
console.log(PAGE.includes("results.htm"));
CONTAINER.classList[(PAGE.includes(`results`)) ? `remove` : `add`](`container`);
});
};
};
async content() {
this.elements = {};
this.elements[`frame`] = document.querySelectorAll(`iframe.viewer`);
this.elements[`container`] = document.querySelectorAll(`main`);
this.elements[`frame`] = document.querySelectorAll(`main > iframe.viewer`);
// Check if the frame is available.