From 70217bcc13d5c9a1613dbfb2c67490cd2a8f4dc4 Mon Sep 17 00:00:00 2001 From: Yasoob Khalid Date: Tue, 17 May 2022 02:42:40 +0500 Subject: [PATCH] apparently tooltips can not be initialized twice --- docs/assets/universe/universe animation.svg | 22 ++++++++-------- docs/home.html | 28 ++++++++++----------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/assets/universe/universe animation.svg b/docs/assets/universe/universe animation.svg index f51ef2e4e..a2056619e 100644 --- a/docs/assets/universe/universe animation.svg +++ b/docs/assets/universe/universe animation.svg @@ -17,7 +17,7 @@ - + @@ -47,13 +47,13 @@ - + - + @@ -64,7 +64,7 @@ - + @@ -82,7 +82,7 @@ - + @@ -98,7 +98,7 @@ - + @@ -113,7 +113,7 @@ - + @@ -133,13 +133,13 @@ - + - + @@ -156,7 +156,7 @@ - + @@ -166,7 +166,7 @@ - + diff --git a/docs/home.html b/docs/home.html index 867bb51f8..3c5a847e7 100644 --- a/docs/home.html +++ b/docs/home.html @@ -261,13 +261,13 @@ - + - + @@ -278,7 +278,7 @@ - + @@ -296,7 +296,7 @@ - + @@ -312,7 +312,7 @@ - + @@ -327,7 +327,7 @@ - + @@ -347,13 +347,13 @@ - + - + @@ -370,7 +370,7 @@ - + @@ -380,7 +380,7 @@ - + @@ -636,7 +636,7 @@ avatarRows[count].innerHTML = splicedArray.join('') + splicedArray.join(''); } - initializeTooltips(); + initializeTooltips("tooltip"); } function updateLatestRelease() { @@ -650,15 +650,15 @@ }); } - function initializeTooltips() { - const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); + function initializeTooltips(toggleName) { + const tooltipTriggerList = document.querySelectorAll(`[data-bs-toggle="${toggleName}"]`); const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); } window.addEventListener('load', (event) => { populateSupporterAvatars(); updateLatestRelease(); - initializeTooltips(); + initializeTooltips("svg-tooltip"); });