diff --git a/patekLogo.js b/patekLogo.js index f9c79e4..c219c9a 100644 --- a/patekLogo.js +++ b/patekLogo.js @@ -1,7 +1,6 @@ const template = document.createElement("template"); template.innerHTML = ` + @@ -96,11 +96,7 @@ class PatekLogo extends HTMLElement { clone.getElementById("titleText").innerText = typeof this.attributes.title !== "undefined" ? this.attributes.title.value : "Pátek"; clone.getElementById("subtitleText").innerText = typeof this.attributes.subtitle !== "undefined" ? this.attributes.subtitle.value : ""; this.shadow.appendChild(clone); - this.shadow.getElementById("wrapper").style.display = "none"; this.calculateCircles(); - window.addEventListener("load", () => { - this.shadow.getElementById("wrapper").style.display = "inline-block"; - }); } static get observedAttributes() { return ['title', 'subtitle']; } attributeChangedCallback(name, oldValue, newValue) {