formatted like my Boss wants it (help!)
This commit is contained in:
parent
5d11f87dd3
commit
b507a6b0ea
19 changed files with 1425 additions and 1136 deletions
11
footer.js
11
footer.js
|
@ -37,17 +37,16 @@ class Footer extends HTMLElement {
|
|||
`;
|
||||
|
||||
// Add event listener for button click
|
||||
this.querySelector('.secret-button').addEventListener('click', () => {
|
||||
window.open('secret/index.html', '_blank');
|
||||
this.querySelector(".secret-button").addEventListener("click", () => {
|
||||
window.open("secret/index.html", "_blank");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define('footer-component', Footer);
|
||||
|
||||
customElements.define("footer-component", Footer);
|
||||
|
||||
// CSS for the hidden button
|
||||
const style = document.createElement('style');
|
||||
const style = document.createElement("style");
|
||||
style.textContent = `
|
||||
.secret-button {
|
||||
display: none;
|
||||
|
@ -66,4 +65,4 @@ style.textContent = `
|
|||
`;
|
||||
document.head.appendChild(style);
|
||||
|
||||
// @license-end
|
||||
// @license-end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue