Κάποιοι έλεγχοι απέτυχαν
Hellug Projects/Hellug/www/pipeline/head There was a failure building this commit
33 γραμμές
1,2 KiB
HTML
33 γραμμές
1,2 KiB
HTML
---
|
||
title: "Έλεγχος συνδρομής"
|
||
layout: "pages"
|
||
bannertemplate: "hellug-banner.html"
|
||
date: 2013-05-01
|
||
category_title: Μέλη
|
||
---
|
||
|
||
<form id="subscriptionemail">
|
||
Για να ενημερωθείτε μέσω e-mail για τυχών ταμειακές εκκρεμότητες παρακαλώ συμπληρώστε τη παρακάτω φόρμα<br/>
|
||
<label for="email">Tο email: </label><input type="text" name="email" /> (όπως το είχατε δώσει στην εγγραφή σας) <br/>
|
||
|
||
<input type="submit" value="Υποβολή"/>
|
||
<div id="response"></div>
|
||
</form>
|
||
<script>
|
||
subscriptionemail.onsubmit = async (e) => {
|
||
e.preventDefault();
|
||
var form = document.querySelector("#subscriptionemail");
|
||
data = {
|
||
email : form.querySelector('input[name="email"]').value
|
||
}
|
||
let response = await fetch('/api/sendSubscriptionEmail', {
|
||
method: 'POST',
|
||
headers: {
|
||
'Content-Type': 'application/json',
|
||
},
|
||
body: JSON.stringify(data),
|
||
})
|
||
let text = await response.text();
|
||
document.querySelector("#response").innerHTML = text;
|
||
};
|
||
</script>
|