This commit is contained in:
Andre Beging
2020-03-02 08:46:33 +01:00
parent e416173a2c
commit 36e4ee776a
10 changed files with 109 additions and 4 deletions

View File

@@ -5,6 +5,12 @@
max-width: 600px;
flex-wrap: wrap;
flex-direction: row;
padding: 5px;
&.success {
background-color: #DAFFDA;
border-radius: 10px;
}
label {
display: block;

View File

@@ -70,12 +70,17 @@ body {
h1,h2,h3,h4,h5,h6 {
font-family: "SFMoviePoster", system-ui, sans-serif;
line-height: normal;
}
h1 {
font-size: 4rem;
}
h2 {
font-size: 3rem;
}
h2,h3 {
margin-top: 20px;
}
@@ -155,6 +160,13 @@ input.btn, a.btn {
color: #333 !important;
}
}
&:disabled, &:disabled:hover {
color: #CCC !important;
background-color: unset;
border-color: #ccc;
cursor: default;
}
}
body.hero {

View File

@@ -60,7 +60,13 @@ window.onload = function() {
// Cleanup
e.target.reset();
alert("Anmeldung abgeschickt");
e.target.classList.add("success");
const submitButton = e.target.querySelectorAll("input, select, textarea");
for (let i = 0; i < submitButton.length; i++) {
submitButton[i].setAttribute("disabled", "disabled");
}
alert("Erfolgreich abgeschickt!");
e.preventDefault();
});
}