From db8eca0f946ff6f7686778b7d0da9206606fbe77 Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 24 Jul 2018 09:53:12 +0200 Subject: [PATCH] Added delay before Matrix logo resize to make sure it loads correct --- js/init.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/init.js b/js/init.js index 2e588c9..9b2ce8e 100755 --- a/js/init.js +++ b/js/init.js @@ -161,7 +161,10 @@ // Adapt Matrix logo to format of fontawesome icons var faWidth = document.getElementById('contact-email').clientWidth; - document.getElementById('contact-matrix-logo').setAttribute("style","height:"+faWidth+"px; width:"+faWidth+"px"); + + setTimeout(function () { + document.getElementById('contact-matrix-logo').setAttribute("style","height:"+faWidth+"px; width:"+faWidth+"px"); + }, 5000); });