Kontaktformular eingefügt
This commit is contained in:
@@ -28,6 +28,8 @@ RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
|
||||
RewriteRule ^(.*) - [E=BASE:%1]
|
||||
RewriteRule ^(.*)$ %{ENV:BASE}/index.html [L]
|
||||
|
||||
Options -Indexes
|
||||
|
||||
<IfModule mod_mime.c>
|
||||
AddType application/x-javascript .js
|
||||
AddType text/css .css
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<div class="max-height flex-center"><div id=segment-leaf-template class="segment segment-leaf"><div class=leaf-element></div></div><div id=segment-parent-template class="segment segment-parent"><div class=child-container></div></div><div id=segment-row-template class="segment segment-row"><div class=child-container></div></div><div id=segment-triangle-template class="segment segment-triangle"><div class=child-container></div></div><div class="height-60 max-width flex-center"><div id=level></div><span id=level-number-container class="visible in-main-menu"><span id=level-number>1</span></span></div><div class="height-30 flex-center fill-me"><button class="button grow text-center" id=play-button><span data-translation=play></span></button><div class="max-width line-height-1 fill-me vertical"><label class=switch><div data-view=img/speaker.svg></div><input type=checkbox class=setting id=play-sound> <span class=slider></span></label><div class="grow center" id=share-button><span data-view=img/share.svg></span></div><label class="switch right"><div data-view=img/music.svg></div><input type=checkbox class=setting id=play-music> <span class=slider></span></label></div></div><div class="height-10 flex-center fill-me"><div class="max-width line-height-1"><span class=right id=share-buttons></span></div></div></div>
|
||||
<div class="max-height flex-center"><div id=segment-leaf-template class="segment segment-leaf"><div class=leaf-element></div></div><div id=segment-parent-template class="segment segment-parent"><div class=child-container></div></div><div id=segment-row-template class="segment segment-row"><div class=child-container></div></div><div id=segment-triangle-template class="segment segment-triangle"><div class=child-container></div></div><div class="height-60 max-width flex-center"><div id=level></div><span id=level-number-container class="visible in-main-menu"><span id=level-number>1</span></span></div><div class="height-30 flex-center fill-me"><button class="button grow text-center" id=play-button><span data-translation=play></span></button><div class="max-width line-height-1 fill-me vertical"><label class=switch><div data-view=img/speaker.svg></div><input type=checkbox class=setting id=play-sound> <span class=slider></span></label><div class="grow center" id=share-button><span data-view=img/share.svg></span></div><label class="switch right"><div data-view=img/music.svg></div><input type=checkbox class=setting id=play-music> <span class=slider></span></label></div></div></div>
|
||||
File diff suppressed because one or more lines are too long
@@ -2028,7 +2028,7 @@ class SiteManager {
|
||||
site.actionMenu = site.createActionBarMenu(this.buildActionBarMenu());
|
||||
return this.show(siteContainer);
|
||||
}).catch((e) => {
|
||||
console.error("site start error:", e);
|
||||
console.error("site start error for site ", siteConstructor.name, e);
|
||||
});
|
||||
|
||||
return finishPromise;
|
||||
@@ -3748,7 +3748,6 @@ class LocalStorageSettingsFragment extends Fragment {
|
||||
}
|
||||
|
||||
setting.addEventListener("change", function () {
|
||||
// console.log(setting);
|
||||
let value = this.value;
|
||||
if (isCheckable && !this.checked) {
|
||||
value = null;
|
||||
@@ -5178,6 +5177,28 @@ InitPromise.addPromise(function (app) {
|
||||
app.addDeepLink("code", CodeSite);
|
||||
});
|
||||
|
||||
class ContactSite extends AbstractSite{
|
||||
constructor(siteManager) {
|
||||
super(siteManager, 'contact/html/contact.html', ContactSite.DEEP_LINK);
|
||||
}
|
||||
|
||||
onFirstStart() {
|
||||
new Form(this.findBy("#contact-form"), "contact", "post").onSubmit((d) => {
|
||||
FlashMessenger.addMessage("contact-message-sent");
|
||||
this.finish();
|
||||
});
|
||||
|
||||
super.onFirstStart();
|
||||
}
|
||||
}
|
||||
ContactSite.DEEP_LINK = "contactMe";
|
||||
|
||||
InitPromise.addPromise((app) => {
|
||||
if (ContactSite.DEEP_LINK){
|
||||
app.addDeepLink(ContactSite.DEEP_LINK, ContactSite);
|
||||
}
|
||||
});
|
||||
|
||||
class WordRotatorBaseSite extends AbstractSite {
|
||||
// createActionBarMenu(menu) {
|
||||
// menu = super.createActionBarMenu(menu);
|
||||
@@ -6298,7 +6319,7 @@ class LevelSite extends WordRotatorBaseSite {
|
||||
clearTimeout(this.wonParams.coinCounterTimer);
|
||||
|
||||
//LevelCounter * 2 - 1, damit der durchschnittswert stimmt
|
||||
Matomo.push(["trackEvent", "LevelSite", "NextLevel", "Level Number Average", this.levelCounter*2-1]);
|
||||
// Matomo.push(["trackEvent", "LevelSite", "NextLevel", "Level Number Average", this.levelCounter*2-1]);
|
||||
Matomo.push(["trackEvent", "LevelSite", "NextLevel", "Level Number Normal", this.levelCounter]);
|
||||
|
||||
return this.tutorial();
|
||||
@@ -6670,6 +6691,7 @@ class MenuSite extends WordRotatorBaseSite {
|
||||
window.addEventListener("resize", this.listener);
|
||||
|
||||
//Musikbuttons update, falls in den Einstellungen umgestellt
|
||||
let settingsManager = SettingsManager.getInstance();
|
||||
let playSoundButton = this.findBy("#play-sound");
|
||||
playSoundButton.checked = settingsManager.getSetting("play-sound", true);
|
||||
let playMusicButton = this.findBy("#play-music");
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user