remove container on resultts page
This commit is contained in:
parent
0703fbec39
commit
3908fcdb90
1 changed files with 8 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue