From fc5e091c89259aa151e3a21cca1543202e825175 Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Thu, 9 Dec 2021 10:55:09 +0100 Subject: [PATCH] Cleaned up some old comments, Fixed some text, Fixed a bug in the main js file Update footer.php, strings.json, and 3 more files... --- commons/footer.php | 12 ------------ commons/strings.json | 4 ++++ contact/index.php | 8 ++++---- privacy/index.php | 6 +++--- resources/Azias/js/nibblepoker.lu.js | 17 +++++++++++------ 5 files changed, 22 insertions(+), 25 deletions(-) diff --git a/commons/footer.php b/commons/footer.php index 3869c4b..4de4e55 100644 --- a/commons/footer.php +++ b/commons/footer.php @@ -6,7 +6,6 @@ Sidebar - - logo diff --git a/commons/strings.json b/commons/strings.json index 04fd843..aa57f9c 100644 --- a/commons/strings.json +++ b/commons/strings.json @@ -25,6 +25,7 @@ "links.visit.button": "Visit", "about.title": "About", "contact.title": "Contact", + "contact.description": "$contact.description", "lang.menu.title": "Language", "lang.current": "English", "lang.automatic": "Automatic", @@ -32,6 +33,7 @@ "lang.french": "French", "lang.luxembourgish": "Luxembourgish", "privacy.title": "Privacy policy", + "privacy.description": "Our privacy policy in a clear and easy to understand format.", "privacy.introduction.title": "Introduction", "privacy.introduction.text.1": "This privacy policy is written in accordance with the 12th and 13th articles of the GDPR.", "privacy.introduction.text.2": "If you wish to consult it, you can do so on the following websites:", @@ -92,6 +94,7 @@ "links.visit.button": "Visiter", "about.title": "À-propos", "contact.title": "Contact", + "contact.description": "$contact.description", "lang.menu.title": "Langue", "lang.current": "Français", "lang.automatic": "Automatique", @@ -99,6 +102,7 @@ "lang.french": "Français", "lang.luxembourgish": "Luxembourgeois", "privacy.title": "Politique de confidentialité", + "privacy.description": "Notre politique de confidentialité dans un format clair et compréhensible.", "privacy.introduction.title": "Introduction", "privacy.introduction.text.1": "La politique de confidentialité ci-présente a été écrite en accord avec les articles 12 et 13 de la RGPD.", "privacy.introduction.text.2": "Si vous souhaitez consulter le texte officiel en question, vous pouvez le faire sur les sites internet suivants :", diff --git a/contact/index.php b/contact/index.php index d26a5fe..138be6d 100644 --- a/contact/index.php +++ b/contact/index.php @@ -3,14 +3,14 @@ - Links - Nibble Poker - - + <?php print(localize('contact.title')); ?> - Nibble Poker + + - + diff --git a/privacy/index.php b/privacy/index.php index 23115fb..5e0c2b9 100644 --- a/privacy/index.php +++ b/privacy/index.php @@ -1,16 +1,16 @@ - + <?php print(localize('privacy.title')); ?> - Nibble Poker - + - + diff --git a/resources/Azias/js/nibblepoker.lu.js b/resources/Azias/js/nibblepoker.lu.js index f91c167..a999f6d 100644 --- a/resources/Azias/js/nibblepoker.lu.js +++ b/resources/Azias/js/nibblepoker.lu.js @@ -9,9 +9,14 @@ document.getElementById('button-sidebar').addEventListener("click", () => { halfmoon.toggleSidebar(); }); -document.getElementById('button-copy-tox-id-main').addEventListener("click", () => { - navigator.clipboard.writeText("62C1A91A425F90D7B4F047D70CCF31E7402C9EC37B93604B0F37C416442D15044AF6C1AE033B"); -}); -document.getElementById('button-copy-tox-id-backup').addEventListener("click", () => { - navigator.clipboard.writeText("01ABBD4515C8FA56231333D1022CEEE0A605F4E85F8A945365F56D196A1BBA10FB4DCE08DBE8"); -}); \ No newline at end of file +if(document.getElementById('button-copy-tox-id-main') != null) { + document.getElementById('button-copy-tox-id-main').addEventListener("click", () => { + navigator.clipboard.writeText("62C1A91A425F90D7B4F047D70CCF31E7402C9EC37B93604B0F37C416442D15044AF6C1AE033B"); + }); +} + +if(document.getElementById('button-copy-tox-id-backup') != null) { + document.getElementById('button-copy-tox-id-backup').addEventListener("click", () => { + navigator.clipboard.writeText("01ABBD4515C8FA56231333D1022CEEE0A605F4E85F8A945365F56D196A1BBA10FB4DCE08DBE8"); + }); +}