Bitte beachtet die TODOs in den geänderten Dateien
parent
28a7d917f2
commit
8e2a2924c9
Binary file not shown.
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 27 KiB |
|
@ -1116,6 +1116,7 @@ font-size: 30px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#registrierenAusklappe{
|
#registrierenAusklappe{
|
||||||
|
@ -1136,6 +1137,59 @@ input[type=number] {
|
||||||
|
|
||||||
/*----- Registrierung Ende-------*/
|
/*----- Registrierung Ende-------*/
|
||||||
|
|
||||||
|
/*----- Registrierung erfolgreich -----*/
|
||||||
|
|
||||||
|
.mainContentContainer{
|
||||||
|
overflow-y: scroll;
|
||||||
|
position: absolute;
|
||||||
|
display:flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 70.5%;
|
||||||
|
width: 100%;
|
||||||
|
top:200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainContentContainer{
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
}
|
||||||
|
.mainContentContainer::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titleContainer {
|
||||||
|
padding-top: 35px;
|
||||||
|
padding-left: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#registeredTitle {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainContent {
|
||||||
|
padding-top: 25px;
|
||||||
|
padding-left: 55px;
|
||||||
|
padding-right: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#textFirstHalf, #cardID {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loginNowButton {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
background-color:#664220 ;
|
||||||
|
color:white;
|
||||||
|
font-size: 15px;
|
||||||
|
padding: 10px 15px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*----- Registrierung erfolgreich Ende -----*/
|
||||||
|
|
||||||
/*Reservierung*/
|
/*Reservierung*/
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
|
|
||||||
<div class="hauptcontainer">
|
<div class="hauptcontainer">
|
||||||
|
|
||||||
|
<!--Bei action wird später eine php-Datei eingefügt,
|
||||||
|
welche sich um die Verarbeitung der Daten kümmert.-->
|
||||||
<form id="registrierungForm" action="">
|
<form id="registrierungForm" action="">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<span id="registrierungTitel" > Registrierung </span>
|
<span id="registrierungTitel" > Registrierung </span>
|
||||||
|
@ -47,7 +49,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="vorName"><b>Vorname</b></label>
|
<label for="vorName"><b>Vorname</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="text" name="vorName" id="vorName" class="registrierenNormalesTextfeld" required><br>
|
<input type="text" name="vorName" id="vorName" class="registrierenNormalesTextfeld"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,7 +57,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="nachName"><b>Nachname</b></label>
|
<label for="nachName"><b>Nachname</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="text" name="nachName" id="nachName" class="registrierenNormalesTextfeld" required><br>
|
<input type="text" name="nachName" id="nachName" class="registrierenNormalesTextfeld"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,9 +65,9 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="strasse"><b>Straße und Hausnummer</b></label>
|
<label for="strasse"><b>Straße und Hausnummer</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="text" name="strasse" id="strasse" required>
|
<input type="text" name="strasse" id="strasse">
|
||||||
|
|
||||||
<input type="text" name="hausnummer" id="hausNummer" required><br>
|
<input type="text" name="hausnummer" id="hausNummer"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
|
@ -74,9 +76,9 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="postleitzahl"><b>Postleitzahl und Ort</b></label>
|
<label for="postleitzahl"><b>Postleitzahl und Ort</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="text" name="postleitzahl" id="postleitzahl" required>
|
<input type="text" name="postleitzahl" id="postleitzahl">
|
||||||
|
|
||||||
<input type="text" name="ort" id="ort" required><br>
|
<input type="text" name="ort" id="ort"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
|
@ -85,7 +87,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="email"><b>E-Mail-Adresse</b></label>
|
<label for="email"><b>E-Mail-Adresse</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="email" name="email" id="email" class="registrierenNormalesTextfeld" required><br>
|
<input type="email" name="email" id="email" class="registrierenNormalesTextfeld"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
@ -93,7 +95,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="emailRep"><b>E-Mail-Adresse bestätigen</b></label>
|
<label for="emailRep"><b>E-Mail-Adresse bestätigen</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="email" name="emailRep" id="emailRep" class="registrierenNormalesTextfeld" required><br>
|
<input type="email" name="emailRep" id="emailRep" class="registrierenNormalesTextfeld"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
@ -101,7 +103,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="passwort"><b>Passwort</b></label>
|
<label for="passwort"><b>Passwort</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="password" name="passwort" id="passwort" class="registrierenNormalesTextfeld" required><br>
|
<input type="password" name="passwort" id="passwort" class="registrierenNormalesTextfeld"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
@ -109,13 +111,13 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="passwortRep"><b>Passwort bestätigen</b></label>
|
<label for="passwortRep"><b>Passwort bestätigen</b></label>
|
||||||
<br>
|
<br>
|
||||||
<input type="password" name="passwortRep" id="passwortRep" class="registrierenNormalesTextfeld" required><br>
|
<input type="password" name="passwortRep" id="passwortRep" class="registrierenNormalesTextfeld"><br>
|
||||||
<p id="errorMessage"></p>
|
<p id="errorMessage"></p>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<input type="submit" value="Registrieren" class="registrierenKnopf">
|
<input type="button" value="Registrieren" id="registrierenKnopf" class="registrierenKnopf">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
|
@ -0,0 +1,118 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta lang="de"/>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="device=device-width, initial-scaling=1"/>
|
||||||
|
<link rel="Stylesheet" type="text/css" href="probestyle.css"/>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<title>Candle Bibliothek</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1 class="kopf" >
|
||||||
|
<br><br>
|
||||||
|
Bibliothek <a href="index.html" id="bildID"> <img id="CandleID" src="pictures/Candle.png" alt="Bild von einer Kerze"
|
||||||
|
width="200" height="192"/> </a>
|
||||||
|
<br><br> Candle
|
||||||
|
</h1>
|
||||||
|
<div>
|
||||||
|
<a id="uberuns" href="uberUns.html">Über Uns</a>
|
||||||
|
<a id="buecher" href="buecher.html">Bücher</a>
|
||||||
|
<a id="meinebuecher" href="meinebuecher.html">Meine Bücher</a>
|
||||||
|
<form action="">
|
||||||
|
<input class="suchleiste" type="search" placeholder="Suche..." >
|
||||||
|
<button type="submit" id="buttonID" class="searchButton"><i class="fa fa-search"></i> </button>
|
||||||
|
</form>
|
||||||
|
<a id="erweitertesuche" href="erweiterteSuche.html">Erweiterte Suche</a>
|
||||||
|
<a href="warenkorb.html" id="warenKorbID"> <img id="shoppingCard" src="pictures/shopingcart.png" alt="Bild von einem Wagen"
|
||||||
|
width="50" height="50"/> </a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!--------------------------------------------------------------------->
|
||||||
|
|
||||||
|
<div class="mainContentContainer">
|
||||||
|
<div class="titleContainer">
|
||||||
|
<h1 id="registeredTitle">Erfolgreich registriert</h1>
|
||||||
|
</div>
|
||||||
|
<div class="mainContent">
|
||||||
|
<p id="textFirstHalf">
|
||||||
|
Sie wurden erfolgreich registriert.
|
||||||
|
<br><br>Ihre Karten-ID ist</p>
|
||||||
|
<!--TODO: Placeholder entfernen
|
||||||
|
und durch ID aus Datenbank ersetzen-->
|
||||||
|
<p id="cardID">XXXXXX.</p>
|
||||||
|
<br><br>
|
||||||
|
<p id="textLastHalf">
|
||||||
|
Mit dieser ID und Ihrem Passwort
|
||||||
|
können Sie sich direkt auf unserer Website anmelden und,
|
||||||
|
bei Bedarf, bereits Bücher für eine Ausleihe reservieren.
|
||||||
|
<br><br>Die Karten-ID findet sich auf Ihrem
|
||||||
|
Bibliotheksausweis wieder, welchen Sie bei Ihrem ersten
|
||||||
|
Besuch in unserer Bibliothek erhalten.
|
||||||
|
<br>Der Bibliotheksausweis kostet 10€ und muss jedes Jahr
|
||||||
|
vor Ort für den gleichen Preis verlängert werden.
|
||||||
|
<br>Bitte beachten Sie, dass ohne Vorlage eines
|
||||||
|
gültigen Ausweises, keine Bücher abgeholt werden können.
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
<!--TODO: Event für den Button befindet sich momentan
|
||||||
|
noch hier in der Datei. Soll die Funktion in eine
|
||||||
|
andere Datei verschoben werden, da sich eigentlich keine
|
||||||
|
EventListener in der HTML-Datei befinden sollen?-->
|
||||||
|
<input type="button" id="loginNowButton" value="Jetzt anmelden"
|
||||||
|
onclick="linkToLoginPage()">
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function linkToLoginPage() {
|
||||||
|
window.location.replace("anmelden.html");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<br><br><br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--------------------------------------------------------------------->
|
||||||
|
|
||||||
|
<!--Link JS file-->
|
||||||
|
<script src="burgerIcon.js"></script>
|
||||||
|
<!--If it was small and got big, it calls the function only one time and doesn't do it all the time-->
|
||||||
|
<script>
|
||||||
|
var widthissue = false;
|
||||||
|
window.addEventListener("resize", function(event) {
|
||||||
|
if(window.innerWidth > 800 && widthissue) {
|
||||||
|
widthissue = false
|
||||||
|
unset()
|
||||||
|
}
|
||||||
|
else if(window.innerWidth < 800) widthissue = true;
|
||||||
|
})
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<nav id="activeid" class="active">
|
||||||
|
<div class="navLinks">
|
||||||
|
<input class="nav-toggleclass"id="nav-toggle" type="checkbox" onclick="openNav()";>
|
||||||
|
<label for="nav-toggle" class="icon-burger" >
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="line"></div>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="fuss" >
|
||||||
|
<div>
|
||||||
|
<a id="impressum" href="impressum.html">Impressum</a>
|
||||||
|
<a id="kontakt" href="kontakt.html">Kontakt</a>
|
||||||
|
<a id="datenschutz" href="datenschutz.html">Datenschutz</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -1,3 +1,5 @@
|
||||||
|
// TODO: Problemmeldungen spezifizieren
|
||||||
|
|
||||||
// Großbuchstaben -> [A-Z]
|
// Großbuchstaben -> [A-Z]
|
||||||
// Kleinbuchstaben -> [a-z]
|
// Kleinbuchstaben -> [a-z]
|
||||||
// Bindestrich -> [-]
|
// Bindestrich -> [-]
|
||||||
|
@ -47,18 +49,16 @@ document.getElementById("passwort").addEventListener("blur", checkPassword);
|
||||||
document.getElementById("passwortRep")
|
document.getElementById("passwortRep")
|
||||||
.addEventListener("blur", checkRepeat_Password);
|
.addEventListener("blur", checkRepeat_Password);
|
||||||
|
|
||||||
|
// EventListener für den Button "Registrieren" hinzufügen.
|
||||||
|
document.getElementById("registrierenKnopf")
|
||||||
|
.addEventListener("click", checkForPossibleSubmit);
|
||||||
|
|
||||||
// EventListener für das Formular hinzufügen.
|
// EventListener für das Formular hinzufügen.
|
||||||
document.getElementById("registrierungForm")
|
document.getElementById("registrierungForm")
|
||||||
.addEventListener("submit", checkForPossibleSubmit());
|
.addEventListener("submit", checkForPossibleSubmit);
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
function checkForPossibleSubmit(event) {
|
|
||||||
event.prevenDefault();
|
|
||||||
|
|
||||||
var isFirstNameValid = checkFirstName();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Überprüft, ob ein Eingabefeld ausgefüllt wurde.
|
* Überprüft, ob ein Eingabefeld ausgefüllt wurde.
|
||||||
*
|
*
|
||||||
|
@ -421,3 +421,35 @@ function checkRepeat_Password() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prüft, ob alle Eingaben des Formulars vorhanden und gültig sind.
|
||||||
|
* Ist dies der Fall, werden die Daten verarbeitet
|
||||||
|
* und der Nutzer wird auf die Seite "Erfolgreich registriert" weitergeleitet.
|
||||||
|
*/
|
||||||
|
function checkForPossibleSubmit() {
|
||||||
|
var firstName = checkFirstName();
|
||||||
|
var lastName = checkLastName();
|
||||||
|
var streetName = checkStreetName();
|
||||||
|
var houseNumber = checkHouseNumber();
|
||||||
|
var plz = checkPLZ();
|
||||||
|
var city = checkCity();
|
||||||
|
var emailAddress = checkEmailAddress();
|
||||||
|
var repeatEmailAddress = checkRepeat_EmailAddress();
|
||||||
|
var password = checkPassword();
|
||||||
|
var repeatPassword = checkRepeat_Password();
|
||||||
|
if (firstName && lastName && streetName && houseNumber && plz && city &&
|
||||||
|
emailAddress && repeatEmailAddress && password && repeatPassword) {
|
||||||
|
// TODO: Formular submitten.
|
||||||
|
// TODO: Alert entfernen.
|
||||||
|
alert("Placeholder Alert: Die Daten würden jetzt verarbeitet werden.")
|
||||||
|
window.location.replace("registrierungErfolgreich.html");
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// TODO: Alert entfernen, soll irgendetwas passieren?
|
||||||
|
alert("Da stimmt aber etwas nicht mit den Daten. :(");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue