From 59502b58235c9f4a485923071f6679dc9f663b14 Mon Sep 17 00:00:00 2001 From: Alan Richardson Date: Mon, 26 Feb 2024 17:04:06 +0000 Subject: [PATCH] added anonymous analytics --- challenger/src/main/resources/public/gui/multiuser.html | 1 + challenger/src/main/resources/public/index.html | 1 + challenger/src/main/resources/public/learning.html | 1 + challenger/src/main/resources/public/mirror.html | 1 + challenger/src/main/resources/public/simulation.html | 1 + challenger/src/main/resources/public/sponsors.html | 1 + .../co/compendiumdev/thingifier/htmlgui/DefaultGUIHTML.java | 4 ++++ 7 files changed, 10 insertions(+) diff --git a/challenger/src/main/resources/public/gui/multiuser.html b/challenger/src/main/resources/public/gui/multiuser.html index af84bb96..1f96dfdd 100644 --- a/challenger/src/main/resources/public/gui/multiuser.html +++ b/challenger/src/main/resources/public/gui/multiuser.html @@ -3,6 +3,7 @@ Multi-User Help +
diff --git a/challenger/src/main/resources/public/index.html b/challenger/src/main/resources/public/index.html index 35e54e6e..9fed839b 100644 --- a/challenger/src/main/resources/public/index.html +++ b/challenger/src/main/resources/public/index.html @@ -5,6 +5,7 @@ The API Challenges + diff --git a/challenger/src/main/resources/public/learning.html b/challenger/src/main/resources/public/learning.html index c0a69e3a..98c818b2 100644 --- a/challenger/src/main/resources/public/learning.html +++ b/challenger/src/main/resources/public/learning.html @@ -3,6 +3,7 @@ Learning Utilities and Resources +
diff --git a/challenger/src/main/resources/public/mirror.html b/challenger/src/main/resources/public/mirror.html index 01c0281b..a44d152b 100644 --- a/challenger/src/main/resources/public/mirror.html +++ b/challenger/src/main/resources/public/mirror.html @@ -3,6 +3,7 @@ HTTP Request Mirror +
diff --git a/challenger/src/main/resources/public/simulation.html b/challenger/src/main/resources/public/simulation.html index be5782e1..51819508 100644 --- a/challenger/src/main/resources/public/simulation.html +++ b/challenger/src/main/resources/public/simulation.html @@ -3,6 +3,7 @@ Simulation Mode +
diff --git a/challenger/src/main/resources/public/sponsors.html b/challenger/src/main/resources/public/sponsors.html index 6aca079b..354548dd 100644 --- a/challenger/src/main/resources/public/sponsors.html +++ b/challenger/src/main/resources/public/sponsors.html @@ -5,6 +5,7 @@ The API Challenges + diff --git a/thingifier/src/main/java/uk/co/compendiumdev/thingifier/htmlgui/DefaultGUIHTML.java b/thingifier/src/main/java/uk/co/compendiumdev/thingifier/htmlgui/DefaultGUIHTML.java index 6f67f6aa..bdd40e72 100644 --- a/thingifier/src/main/java/uk/co/compendiumdev/thingifier/htmlgui/DefaultGUIHTML.java +++ b/thingifier/src/main/java/uk/co/compendiumdev/thingifier/htmlgui/DefaultGUIHTML.java @@ -68,6 +68,10 @@ public String getPageStart(final String title){ html.append(""); html.append("" + title + ""); html.append(" "); + String injectFromEnv = System.getenv("HTML_HEAD_INJECT"); + if(injectFromEnv!=null){ + html.append(injectFromEnv); + } html.append(""); html.append("
"); return html.toString();