From e5b6116ab332c1635832f106f5eacd0cb548f674 Mon Sep 17 00:00:00 2001 From: silas Date: Sat, 13 Oct 2018 22:19:21 +0200 Subject: [PATCH] Impressum fertig --- public/html/application/fragment/settings.html | 2 +- public/js/app.js | 16 ++++++++++++++++ .../pwa/html/application/fragment/settings.html | 6 +++++- .../pwa/html/application/impressum.html | 9 ++++++--- .../js/Fragment/WordRotatorSettingFragment.js | 8 ++++++++ .../Application/pwa/js/site/ImpressumSite.js | 12 ++++++++++++ 6 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 src/module/Application/pwa/js/site/ImpressumSite.js diff --git a/public/html/application/fragment/settings.html b/public/html/application/fragment/settings.html index 1a1f4e7..1f55ba8 100644 --- a/public/html/application/fragment/settings.html +++ b/public/html/application/fragment/settings.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/public/js/app.js b/public/js/app.js index f30f242..c1b24fb 100755 --- a/public/js/app.js +++ b/public/js/app.js @@ -6900,6 +6900,16 @@ class ChooseThemeDialog extends Dialog { } } +class ImpressumSite extends WordRotatorBaseSite{ + constructor(siteManager) { + super(siteManager, "html/application/impressum.html", "impressum"); + } +} + +InitPromise.addPromise(app => { + app.addDeepLink("impressum", ImpressumSite); +}); + class WordRotatorSettingFragment extends LocalStorageSettingsFragment { constructor(site) { super(site, "html/application/fragment/settings.html"); @@ -6953,6 +6963,12 @@ class WordRotatorSettingFragment extends LocalStorageSettingsFragment { this.findBy("#privacy-policy-button").addEventListener("click", () => { this.getSite().startSite(PrivacyPolicySite); }); + this.findBy("#contact-button").addEventListener("click", () => { + this.getSite().startSite(ContactSite); + }); + this.findBy("#impressum-button").addEventListener("click", () => { + this.getSite().startSite(ImpressumSite); + }); InstallManager.setCanInstallListener(() => { let installButton = this.findBy("#install-button"); diff --git a/src/module/Application/pwa/html/application/fragment/settings.html b/src/module/Application/pwa/html/application/fragment/settings.html index e463381..19fcb11 100644 --- a/src/module/Application/pwa/html/application/fragment/settings.html +++ b/src/module/Application/pwa/html/application/fragment/settings.html @@ -25,7 +25,7 @@ - +
@@ -39,6 +39,10 @@
+
+ + +