diff --git a/patekLogo.js b/patekLogo.js index 2d9fdd4..f9c79e4 100644 --- a/patekLogo.js +++ b/patekLogo.js @@ -96,11 +96,10 @@ 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.style.display = "none"; + this.shadow.getElementById("wrapper").style.display = "none"; this.calculateCircles(); window.addEventListener("load", () => { - this.style.display = "inline-block"; - console.log("loaded"); + this.shadow.getElementById("wrapper").style.display = "inline-block"; }); } static get observedAttributes() { return ['title', 'subtitle']; }