From fc3737509fc3f6915b24ecb93d2ea408d8b21e67 Mon Sep 17 00:00:00 2001 From: Laurens Debackere Date: Sat, 8 May 2021 22:32:26 +0200 Subject: [PATCH 1/6] Added code for dev/prod switching --- datavis_main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datavis_main.js b/datavis_main.js index f3edb0e..ca2ab04 100644 --- a/datavis_main.js +++ b/datavis_main.js @@ -32,6 +32,10 @@ main.redefine("member_url", `${window.location.origin}/member`); main.redefine("meeting_url", `${window.location.origin}/meeting`); main.redefine("search_url", `${window.location.origin}/search`); +if(window.location.origin === "https://parlement-in-data-dev.thundr.be"){ + main.redefine("API_BASE", "https://parlement-dev.thundr.be"); +} + function resizeHandler(_e) { function pxToNr(px) { From ea0f643c9f48cfd7ac785408d7ffe2b6176e6b44 Mon Sep 17 00:00:00 2001 From: Laurens Debackere Date: Sat, 8 May 2021 22:36:24 +0200 Subject: [PATCH 2/6] reformat --- datavis_main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/datavis_main.js b/datavis_main.js index ca2ab04..72579a4 100644 --- a/datavis_main.js +++ b/datavis_main.js @@ -36,7 +36,6 @@ if(window.location.origin === "https://parlement-in-data-dev.thundr.be"){ main.redefine("API_BASE", "https://parlement-dev.thundr.be"); } - function resizeHandler(_e) { function pxToNr(px) { return +px.slice(0, -2); From 638b7990e7bc17b4b2cc085ee824ade32798d96f Mon Sep 17 00:00:00 2001 From: Laurens Debackere Date: Sun, 9 May 2021 13:54:15 +0200 Subject: [PATCH 3/6] Some cleanup --- 404.html | 30 +++++++------- about.html | 38 +++++++++--------- browserconfig.xml | 2 +- styles.css => css/styles.css | 0 .../android-chrome-192x192.png | Bin .../android-chrome-512x512.png | Bin .../apple-touch-icon.png | Bin favicon-16x16.png => img/favicon-16x16.png | Bin favicon-32x32.png => img/favicon-32x32.png | Bin favicon.ico => img/favicon.ico | Bin mstile-150x150.png => img/mstile-150x150.png | Bin .../social-banner-twitter.png | Bin social-banner.png => img/social-banner.png | Bin index.html | 22 +++++----- datavis_main.js => js/datavis_main.js | 38 +++++++++--------- meeting.html | 22 +++++----- member.html | 22 +++++----- party.html | 22 +++++----- search.html | 22 +++++----- site.webmanifest | 4 +- 20 files changed, 113 insertions(+), 109 deletions(-) rename styles.css => css/styles.css (100%) rename android-chrome-192x192.png => img/android-chrome-192x192.png (100%) rename android-chrome-512x512.png => img/android-chrome-512x512.png (100%) rename apple-touch-icon.png => img/apple-touch-icon.png (100%) rename favicon-16x16.png => img/favicon-16x16.png (100%) rename favicon-32x32.png => img/favicon-32x32.png (100%) rename favicon.ico => img/favicon.ico (100%) rename mstile-150x150.png => img/mstile-150x150.png (100%) rename social-banner-twitter.png => img/social-banner-twitter.png (100%) rename social-banner.png => img/social-banner.png (100%) rename datavis_main.js => js/datavis_main.js (51%) diff --git a/404.html b/404.html index 69694bd..0183d2e 100644 --- a/404.html +++ b/404.html @@ -9,31 +9,31 @@ - + - + - + - + - + - + - + - + - + - + - + + data-ackee-domain-id="bd62c77e-bddf-4cda-aef4-7da21bc8d4b6" + data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'> - + @@ -66,7 +67,13 @@
@@ -87,4 +94,4 @@ - + \ No newline at end of file diff --git a/meeting.html b/meeting.html index ccb10d8..0e38115 100644 --- a/meeting.html +++ b/meeting.html @@ -42,7 +42,8 @@ + data-ackee-domain-id="bd62c77e-bddf-4cda-aef4-7da21bc8d4b6" + data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'> diff --git a/member.html b/member.html index 878770b..fc73179 100644 --- a/member.html +++ b/member.html @@ -41,7 +41,8 @@ + data-ackee-domain-id="bd62c77e-bddf-4cda-aef4-7da21bc8d4b6" + data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'> diff --git a/party.html b/party.html index af38b38..6704246 100644 --- a/party.html +++ b/party.html @@ -41,7 +41,8 @@ + data-ackee-domain-id="bd62c77e-bddf-4cda-aef4-7da21bc8d4b6" + data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'> diff --git a/search.html b/search.html index b6c9cb4..2b4429b 100644 --- a/search.html +++ b/search.html @@ -42,7 +42,8 @@ + data-ackee-domain-id="bd62c77e-bddf-4cda-aef4-7da21bc8d4b6" + data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'> @@ -93,4 +94,4 @@ - + \ No newline at end of file