From d533f2f114b4e6aa828f7bc7b6359a99d95ce761 Mon Sep 17 00:00:00 2001 From: Julian Date: Sat, 14 May 2022 17:28:12 +0200 Subject: [PATCH] progress --- email.php | 14 ++ images/Brauthaus.jpg | 3 + images/Brauthaus.png | 3 + images/DSC00473.JPG | 3 + images/DSC04070.JPG | 3 + images/Draga.png | 3 + images/Fotoshooting.JPG | 3 + images/Julian.png | 3 + images/Kirche.png | 3 + images/LetsDance.JPG | 3 + images/Wiesenmühle.jpg | 3 + images/catering.jpg | 3 + images/groom.jpg | 3 - index.html | 308 +++++++++++++++++++++++++++++++--------- js/main.js | 223 +++++++++++++++-------------- 15 files changed, 398 insertions(+), 183 deletions(-) create mode 100644 email.php create mode 100644 images/Brauthaus.jpg create mode 100644 images/Brauthaus.png create mode 100644 images/DSC00473.JPG create mode 100644 images/DSC04070.JPG create mode 100644 images/Draga.png create mode 100644 images/Fotoshooting.JPG create mode 100644 images/Julian.png create mode 100644 images/Kirche.png create mode 100644 images/LetsDance.JPG create mode 100644 images/Wiesenmühle.jpg create mode 100644 images/catering.jpg delete mode 100644 images/groom.jpg diff --git a/email.php b/email.php new file mode 100644 index 0000000..54ae74f --- /dev/null +++ b/email.php @@ -0,0 +1,14 @@ + \r\n"; + $send_email = mail($to,$subject,$message,$headers); + + echo ($send_email) ? 'success' : 'error'; +}?> \ No newline at end of file diff --git a/images/Brauthaus.jpg b/images/Brauthaus.jpg new file mode 100644 index 0000000..bf89e80 --- /dev/null +++ b/images/Brauthaus.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b36505be866c271ca1c559b3bcb4b739bfb6d9ba55d92267a439ae7f64007cc +size 166777 diff --git a/images/Brauthaus.png b/images/Brauthaus.png new file mode 100644 index 0000000..ac5a625 --- /dev/null +++ b/images/Brauthaus.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b14bd56da96f8203db1e0c2ba27a86ec7281f97aefa83d1683dd52405960ad8 +size 56286 diff --git a/images/DSC00473.JPG b/images/DSC00473.JPG new file mode 100644 index 0000000..5394798 --- /dev/null +++ b/images/DSC00473.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a30ae7d490b89afcc13c48f8dc6ed51c8efb27bfcbe759415c25fceba9783724 +size 8617984 diff --git a/images/DSC04070.JPG b/images/DSC04070.JPG new file mode 100644 index 0000000..ef495c0 --- /dev/null +++ b/images/DSC04070.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b9d077f14fe2d18c9d00bf4b1c436950894cc0eb02fdf97547b4889ad47f488 +size 6553600 diff --git a/images/Draga.png b/images/Draga.png new file mode 100644 index 0000000..099ad33 --- /dev/null +++ b/images/Draga.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27cf963c9543c1029ea236adffa1127389ef6c4067a8d3869396d12b02a1402a +size 2750814 diff --git a/images/Fotoshooting.JPG b/images/Fotoshooting.JPG new file mode 100644 index 0000000..816d282 --- /dev/null +++ b/images/Fotoshooting.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8a8bb3109d6c6b1661e5b3307de5639d3bf37a1855a1971e4a0393c0de7e31a +size 6160384 diff --git a/images/Julian.png b/images/Julian.png new file mode 100644 index 0000000..5a83c5f --- /dev/null +++ b/images/Julian.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5ac99afd944feca3ad4e0afe44aa37ada74cb195346a97c3cb742c3d1445778 +size 4955034 diff --git a/images/Kirche.png b/images/Kirche.png new file mode 100644 index 0000000..a368a96 --- /dev/null +++ b/images/Kirche.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9a0093d36ccb374f6b6623149b010431aa665102301c86aa4a24f25fdc6d84d +size 22588999 diff --git a/images/LetsDance.JPG b/images/LetsDance.JPG new file mode 100644 index 0000000..9be80c8 --- /dev/null +++ b/images/LetsDance.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc0c8d49ba678d4e612a13982fa25784e072ccf19d2ba0400e5909b53903eb06 +size 3779484 diff --git a/images/Wiesenmühle.jpg b/images/Wiesenmühle.jpg new file mode 100644 index 0000000..4836e01 --- /dev/null +++ b/images/Wiesenmühle.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0484fbc0049c2608fbf177f6575bad2c3904d008d29e860df3ef646ca1c8c1be +size 10520 diff --git a/images/catering.jpg b/images/catering.jpg new file mode 100644 index 0000000..52e7b1f --- /dev/null +++ b/images/catering.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a17783cd672fc3094a084c2e4cfbb503af4418f51e1c69c6abcdc98d041830b +size 227345 diff --git a/images/groom.jpg b/images/groom.jpg deleted file mode 100644 index 8d25543..0000000 --- a/images/groom.jpg +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:23bfa61dfdf4c1268c132a065ed05b902367b2f1603f2e63eb6b18e7c742c983 -size 43368 diff --git a/index.html b/index.html index faa155e..609b3be 100644 --- a/index.html +++ b/index.html @@ -94,84 +94,256 @@ -
+
-
-
-

Nimmst du teil?

-

Liebe Gäste, zu unserer Hochzeit laden wir euch recht herzlich ein. Bitte gebt uns mit folgendem Formular bis zum 03.03.2022 Bescheid, ob ihr teilnehmt! Über das Plus-Symbol könnt ihr eure Begleitpersonen hinzufügen. Wenn Bedarf an einer Übernachtung besteht, können wir euch kostengünstig ein Hotel vermitteln. Falls ihr nicht teilnehmen könnt, bitte einfach die Seite wieder verlassen. Die Feier wird in 55234 Kettenheim (DE) stattfinden. -

-

- Liebe Grüße
- Draga & Julian -

+
+
+

Schön das Ihr kommt!

+

Wir schließen am Freitag, den 01.07.2022 den Bund fürs Leben!

-
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
+
+
+
+ groom +
+
+

Julian Nießner

+

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove

+
-
- - - -
-
-
- - -
-
-
- -
-
-
-
-
- - - - 1 - Geschätzte Gäste +

+
+
+ groom +
+
+

Drazena Rimac

+

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove

+
+
+
+
+

Feste Zusage!

+
+
+
+ + +
+
+ +
+
+ + +
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+ Ihr wollt unsere Hochzeit mitgestallten? +

Unsere Trauzeugen

+
+
+
+
+
+
+
+
+

Katha Schmidt

+

Tel.-Nr.: 0176 44707271

+
+
+
+
+

Philipp Bienossek

+

Tel.-Nr.: 01512 5272067

+
+
+
+
+
+
+
+
+ +
+
+
+
+ +

Ablauf des großen Tages

+

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

+
+
+
+
+
    +
  • +
    +
    +
    +

    Treffen beim Brauthaus

    + 11:30 +
    +
    +

    Hier werden sich die Gäste zusammenfinden und es werden Platten zum essen angeboten. Anschließend wird gemeinsam mit der Braut zur Kirche gefahren.

    + +
    +
    +
  • +
  • +
    +
    +
    +

    Trauung St. Stephan

    + 13:30 +
    +
    +

    + +
    +
    +
  • +
  • +
    +
    +
    +

    Brautpaar Fotoshooting

    + 15:30 +
    +
    +

    +
    +
    +
  • +
  • +
    +
    +
    +

    Sektempfang Wiesenmühle

    + 16:15 +
    +
    +

    + +
    +
    +
  • +
  • +
    +
    +
    +

    Abendessen & Dessert

    + 18:30 +
    +
    +

    +
    +
    +
  • +
  • +
    +
    +
    +

    Eröffnung der Tanzfläche

    + 22:00 +
    +
    +

    +
    +
    +
  • +
+
+
+
+
+ +
+
+ +
+
+

Übernachtung

+

Wir haben für euch ein Zimmerkontigent mit folgenden Kondition reseviert!

+
+
+ +
+
+
+ + + +
+

Landgasthof Hotel Rebe Alzey

+

Einzelzimmer a' 50 €, Zweibettzimmer a' 78 €, Dreibettzimmer a' 110€ und ein Familienzimmer ( 4 Personen) a' 140 €. Die Preise sind inklusive Frühstück. Zimmer werden freigehalten bis 01. Juni 2022. Sollten einige Gäste aus driftigen Gründen Absagen, so besteht die Möglichkeit bis zum Anreisetag bis spätestens 12.00 Uhr kostenfrei zu stornieren.

+

Landgasthof Hotel Rebe Alzey
+ Antoniterstr. 47,
+ 55232 Alzey
+ Tel. 06731/1285, Stichwort: "DJ"
+ info@hotelrebealzey.de
+

+
+
+ +
+ + + +
+

Hotel am Schloss

+

Doppelzimmer a' 83,00 Euro pro Zimmer/Nacht zzgl. 9,50 Euro Frühstück pro Person/Tag.

+

Hotel Am Schloss
+ Amtgasse 39,
+ 55232 Alzey
+ Tel. 06731/94224, Stichwort: "DJ"
+ info@hotelamschloss-alzey.de
+

+
+
+ +
+ + + +
+

Dorint Hotel

+

Einzelzimmer a' 89€, Doppelzimmer a' 109€. Die Preise sind inklusive Frühstück. Hier ist kein Zimmerkontigent reseviert!

+

Dorint Hotel Alzey/Worms
+ Karl-Heinz-Kipp-Straße 13,
+ 55232 Alzey
+ Tel. 06731/4030
+ reservierung@alzey.dorint.com
+

+
+
+ +
+
+
+
diff --git a/js/main.js b/js/main.js index d3e0ea3..c94ddac 100644 --- a/js/main.js +++ b/js/main.js @@ -18,7 +18,6 @@ }; - var offcanvasMenu = function() { $('#page').prepend('
'); @@ -62,7 +61,6 @@ }); }; - var burgerMenu = function() { $('body').on('click', '.js-fh5co-nav-toggle', function(event){ @@ -80,8 +78,6 @@ }); }; - - var contentWayPoint = function() { var i = 0; $('.animate-box').waypoint( function( direction ) { @@ -118,7 +114,6 @@ } , { offset: '85%' } ); }; - var dropdown = function() { $('.has-dropdown').mouseenter(function(){ @@ -140,7 +135,6 @@ }; - var testimonialCarousel = function(){ var owl = $('.owl-carousel-fullwidth'); owl.owlCarousel({ @@ -155,7 +149,6 @@ }); }; - var goToTop = function() { $('.js-gotop').on('click', function(event){ @@ -338,7 +331,6 @@ } } - var changeLanguage = function() { $('.change-language-js').on('click', function(event){ @@ -360,8 +352,6 @@ }); } - - $(function(){ mobileMenuOutsideClick(); parallax(); @@ -378,124 +368,136 @@ defaultUncheckedInputCheckboxes(); changeLanguage(); }); - - }()); -document.getElementById("js-submitbtn").addEventListener("click", async function () { - //document.getElementById("js-attentants").elements["foo"] - let inputs = document.querySelectorAll('.js-form-input'); - console.log(inputs); +document.getElementById("finalSubmit").addEventListener("click", async function () { + var form = document.getElementById("attendForm"); + const formattedFormData = new FormData(form); + //formattedFormData.append('property', 'value'); + const response = await fetch('email.php',{ + method: 'POST', + body: formattedFormData + }); + const data = await response.text(); + //This should later print out the values submitted through the form + console.log(data); +}); - let firstname = inputs[0].value; - let lastname = inputs[1].value; - let telephonenumber = inputs[2].value; - let eMail = inputs[3].value; +// document.getElementById("js-submitbtn").addEventListener("click", async function () { +// //document.getElementById("js-attentants").elements["foo"] +// let inputs = document.querySelectorAll('.js-form-input'); - if(StringLengthLT2(firstname)) - { - SubmitError("Firstname too short!"); - return; - } +// console.log(inputs); - if(StringLengthLT2(lastname)) - { - SubmitError("Lastname too short!"); - return; - } +// let firstname = inputs[0].value; +// let lastname = inputs[1].value; +// let telephonenumber = inputs[2].value; +// let eMail = inputs[3].value; - if(StringLengthLT2(telephonenumber)) - { - SubmitError("Telephonenumber too short!"); - return; - } +// if(StringLengthLT2(firstname)) +// { +// SubmitError("Firstname too short!"); +// return; +// } - if(!OnlyNumbersInString(telephonenumber)) - { - SubmitError("Telephonenumber can only contain numbers!"); - return; - } +// if(StringLengthLT2(lastname)) +// { +// SubmitError("Lastname too short!"); +// return; +// } - if(StringLengthLT2(eMail)) - { - SubmitError("E-Mail too short!"); - return; - } +// if(StringLengthLT2(telephonenumber)) +// { +// SubmitError("Telephonenumber too short!"); +// return; +// } - let overnightRequired = false; +// if(!OnlyNumbersInString(telephonenumber)) +// { +// SubmitError("Telephonenumber can only contain numbers!"); +// return; +// } - if ($('.overnight-js').is(":checked")) { - overnightRequired = true; - } +// if(StringLengthLT2(eMail)) +// { +// SubmitError("E-Mail too short!"); +// return; +// } - let family = { - name: lastname, - overnight: overnightRequired, - telephonenumber: telephonenumber, - email: eMail, - members: [] - }; +// let overnightRequired = false; - let familyMember = { - name: firstname + " " + lastname, - isChild: false - } +// if ($('.overnight-js').is(":checked")) { +// overnightRequired = true; +// } - family.members.push(familyMember); +// let family = { +// name: lastname, +// overnight: overnightRequired, +// telephonenumber: telephonenumber, +// email: eMail, +// members: [] +// }; - for (let i = 4; i < inputs.length; i+=3) - { - let firstname = inputs[i].value; - let lastname = inputs[i+1].value; - let isChild = inputs[i+2].checked; - console.log("IsChild" + isChild); - if(StringLengthLT2(firstname)) - { - SubmitError("Firstname of accompaniment too short!"); - return; - } - if(StringLengthLT2(lastname)) - { - SubmitError("Lastname of accompaniment too short!"); - return; - } - let familyMember = { - name: firstname + " " + lastname, - isChild: isChild - } +// let familyMember = { +// name: firstname + " " + lastname, +// isChild: false +// } - family.members.push(familyMember); - } +// family.members.push(familyMember); - console.log("Request: " + JSON.stringify(family)); +// for (let i = 4; i < inputs.length; i+=3) +// { +// let firstname = inputs[i].value; +// let lastname = inputs[i+1].value; +// let isChild = inputs[i+2].checked; +// console.log("IsChild" + isChild); +// if(StringLengthLT2(firstname)) +// { +// SubmitError("Firstname of accompaniment too short!"); +// return; +// } +// if(StringLengthLT2(lastname)) +// { +// SubmitError("Lastname of accompaniment too short!"); +// return; +// } +// let familyMember = { +// name: firstname + " " + lastname, +// isChild: isChild +// } + +// family.members.push(familyMember); +// } + +// console.log("Request: " + JSON.stringify(family)); - const response = await fetch("https://rismer.de:9999/family", { - method: 'POST', // *GET, POST, PUT, DELETE, etc. - mode: 'cors', // no-cors, *cors, same-origin - cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached - //credentials: 'same-origin', // include, *same-origin, omit - headers: { - 'Content-Type': 'application/json' - // 'Content-Type': 'application/x-www-form-urlencoded', - }, - redirect: 'follow', // manual, *follow, error - referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url - body: JSON.stringify(family) // body data type must match "Content-Type" header - }).catch(function (timeout) { SubmitError("API error. Call the phone number."); }); - if(response.ok) - { - let jsonResponse = await response.json(); - console.log("Response: " + jsonResponse); - SubmitSuccess(); - } - else - { - SubmitError(); - } - //TODO: Refresh attentats count - }); +// const response = await fetch("https://rismer.de:9999/family", { +// method: 'POST', // *GET, POST, PUT, DELETE, etc. +// mode: 'cors', // no-cors, *cors, same-origin +// cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached +// //credentials: 'same-origin', // include, *same-origin, omit +// headers: { +// 'Content-Type': 'application/json' +// // 'Content-Type': 'application/x-www-form-urlencoded', +// }, +// redirect: 'follow', // manual, *follow, error +// referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url +// body: JSON.stringify(family) // body data type must match "Content-Type" header +// }).catch(function (timeout) { SubmitError("API error. Call the phone number."); }); +// if(response.ok) +// { +// let jsonResponse = await response.json(); +// console.log("Response: " + jsonResponse); +// SubmitSuccess(); +// } +// else +// { +// SubmitError(); +// } +// //TODO: Refresh attentats count +// }); function OnlyNumbersInString(string) { @@ -548,8 +550,6 @@ document.getElementById("js-submitbtn").addEventListener("click", async function return; } - - class Translator { constructor(options = {}) { this._options = Object.assign({}, this.defaultConfig, options); @@ -701,7 +701,6 @@ document.getElementById("js-submitbtn").addEventListener("click", async function } } - var translator = new Translator({ persist: false, languages: ["hr", "de"],