From 1e4290a7cb06bd7eb1f26d9541cae3749b369e7e Mon Sep 17 00:00:00 2001 From: kolekrstev <65304466+kolekrstev@users.noreply.github.com> Date: Tue, 21 Oct 2025 23:32:09 -0700 Subject: [PATCH] Updates - revert previous activity map notification, add version number --- assets/js/i18n/en.json | 6 ++++-- assets/js/i18n/fr.json | 6 ++++-- assets/style.css | 15 +++++++++++++-- index.html | 12 +++++++++++- js/api.js | 24 +++++++++++++----------- php/data.php | 4 ++-- php/process-new.php | 4 ++-- 7 files changed, 49 insertions(+), 22 deletions(-) diff --git a/assets/js/i18n/en.json b/assets/js/i18n/en.json index 2774ced4..6c37095a 100755 --- a/assets/js/i18n/en.json +++ b/assets/js/i18n/en.json @@ -196,8 +196,10 @@ "Visitoractivity": "Visitor activity", "moreDetailedAnalysis" : "If you would like a more detailed analysis for this web page, reach out to your institutional representatives for analytics (accessible only with a GCXchange account).", "Close": "Close", - "alert-am-removed-title": "\"What visitors clicked on\" data not available", - "alert-am-removed-text": "Visitor click data is currently only available for pages on www.canada.ca as of September 19, 2024. We are working on making this feature available for other GC websites.", + "alert-am-removed-titlePREVIOUS": "\"What visitors clicked on\" data not available", + "alert-am-removed-textPREVIOUS": "Visitor click data is currently only available for pages on www.canada.ca as of September 19, 2024. We are working on making this feature available for other GC websites.", + "alert-am-removed-title": "\"What visitors clicked on\" data temporarily removed", + "alert-am-removed-text": "We have temporarily removed this data as it is not always an accurate depiction of clicks. We are working on an alternative solution and will update the Page Analytics Tool as soon as a solution is found.", "quote0": "What did the janitor say when he jumped out of the closet? Supplies!", "quote1": "Why did Hans Solo not enjoy his steak dinner? It was Chewie!", diff --git a/assets/js/i18n/fr.json b/assets/js/i18n/fr.json index ef4a7076..e8cc7496 100755 --- a/assets/js/i18n/fr.json +++ b/assets/js/i18n/fr.json @@ -197,6 +197,8 @@ "Didyouknow": "Le savais-tu?", "moreDetailedAnalysis": "Si vous désirez une analyse plus détaillée de cette page Web, veuillez contacter vos représentants institutionnels en analytique Web (accessible uniquement avec un compte GCÉchange).", "Close": "Fermer", - "alert-am-removed-title": "Données non disponibles « Clics des visiteurs »", - "alert-am-removed-text": "Les données sur les clics des visiteurs ne sont actuellement disponibles que pour les pages de www.canada.ca à partir du 19 septembre 2024. Nous travaillons à rendre cette fonction disponible pour d’autres sites Web du GC." + "alert-am-removed-titlePREVIOUS": "Données non disponibles « Clics des visiteurs »", + "alert-am-removed-textPREVIOUS": "Les données sur les clics des visiteurs ne sont actuellement disponibles que pour les pages de www.canada.ca à partir du 19 septembre 2024. Nous travaillons à rendre cette fonction disponible pour d’autres sites Web du GC.", + "alert-am-removed-title": "Retrait temporaire des données « Clics des visiteurs »", + "alert-am-removed-text": "Nous avons temporairement retiré ces données, car elles ne fournissent pas toujours une représentation exacte des clics. Nous travaillons sur une solution alternative et nous mettrons à jour l'outil d'analyse de page dès qu'une solution sera trouvée." } diff --git a/assets/style.css b/assets/style.css index 91b2761a..3b1ff2a5 100644 --- a/assets/style.css +++ b/assets/style.css @@ -157,13 +157,24 @@ button.black:hover { /* a[href^="#visitor-activity"] + ul, a[href^="#activité-de-visiteur"] + ul, */ -/* #np +#np { display:none; -} */ +} .button-nostyle { background: none; border: none; padding: 0; +} + +/* Prevent the original section created by the script doesn’t briefly flash before hiding */ +section.pagedetails { + display: none !important; +} +section.pagedetails.pat-version { + display: block !important; +} +section.pagedetails:not(.pat-version) { + display: none !important; } \ No newline at end of file diff --git a/index.html b/index.html index e69d2a21..c7a248e5 100755 --- a/index.html +++ b/index.html @@ -1161,7 +1161,17 @@
- +