diff --git a/patekLogo.js b/patekLogo.js index b588070..099d5bf 100644 --- a/patekLogo.js +++ b/patekLogo.js @@ -20,7 +20,7 @@ template.innerHTML = ` font-weight: bold; } #titlePlaceholder { - margin-right: -0.9em; + margin-right: -1.15em; visibility: hidden; } #titleText { @@ -94,7 +94,12 @@ 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.calculateCircles(); + window.addEventListener("load", () => { + this.style.display = "inline-block"; + console.log("loaded"); + }); } static get observedAttributes() { return ['title', 'subtitle']; } attributeChangedCallback(name, oldValue, newValue) {