File size: 471 Bytes
b1f1407 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #333;
color: white;
padding: 1rem;
text-align: center;
}
</style>
<footer>
© ${new Date().getFullYear()} Original Site Clone
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |