+ Bestellinformationen

Signed-off-by: Johannes Theiner <j.theiner@live.de>
This commit is contained in:
Johannes Theiner 2019-04-05 09:14:44 +02:00
parent 9ed235ee54
commit 6c6e850ede
9 changed files with 905 additions and 118 deletions

View File

@ -67,6 +67,20 @@
<main>
<div class="m-container">
<div class="m-row">
<div class="m-col-t-3 m-block">
<h4>Addresse:</h4>
Max Mustermann<br>
Musterstraße 42<br>
12345 Musterstadt
</div>
<div class="m-col-t-4 m-block m-push-t-5">
<h4>Konto</h4>
IBAN: 12345&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;111<br>
Inhaber: Max Mustermann<br>
</div>
</div>
<div class="m-row m-block">
<div class="m-col-t-4">
<img src="https://source.unsplash.com/DxAzOKSiPoE/100x100" class="m-image" alt="Buchcover">
@ -103,7 +117,7 @@
<div class="m-row">
<div class="m-col-t-2 m-push-t-10">
<h1 class="m-text-right">99,95 &euro;</h1>
<h1 class="m-text-right">Summe: 99,95 &euro;</h1>
</div>
</div>

View File

@ -43,4 +43,14 @@
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
right: 0px;
background-color: #27A1CA;
}
}
label, input { display:block; }
input.text { margin-bottom:12px; width:95%; padding: .4em; }
fieldset { padding:0; border:0; margin-top:25px; }
h1 { font-size: 1.2em; margin: .6em 0; }
div#users-contain { width: 350px; margin: 20px 0; }
div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
.ui-dialog .ui-state-error { padding: .3em; }
.validateTips { border: 1px solid transparent; padding: 0.3em; }

View File

@ -3,24 +3,13 @@
<head>
<title>Amazon light</title>
<script>
function getStylesheet() {
var dark = true;
if (dark) {
document.write("<link rel='stylesheet' href='css/m-dark.css' type='text/css'>");
document.write("<meta name=\"theme-color\" content=\"#22272e\" />");
} else {
document.write("<link rel='stylesheet' href='css/m-light.css' type='text/css'>");
document.write("<meta name=\"theme-color\" content=\"#cb4b16\" />");
}
}
<link rel="stylesheet" href="css/m-light.css" id="pagestyle"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600" />
<meta name="theme-color" content="#cb4b16" id="pagecolor"/>
getStylesheet();
</script>
<noscript>
<link href="css/m-light.css" rel="stylesheet">
</noscript>
<link href="css/custom.css" rel="stylesheet">
<link href="css/slick-theme.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta charset="utf-8">
@ -30,15 +19,48 @@
<header>
<nav id="navigation">
<div class="">
<div class="m-container">
<div class="m-row">
<a href="#" id="m-navbar-brand" class="m-col-t-2 m-col-m-none m-left-m">Amazon light</a>
<div class="m-button m-default m-col-t-1 m-push-l-10">
<a href="login.html"><span class="fas fa-user"> Anmelden/Registrieren</span></a>
<a href="" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m"></a>
<a id="m-navbar-show" href="#navigation" title="Show navigation"
class="m-col-t-3 m-hide-m m-text-right"></a>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen & Konten</a></li>
<li><a href="#">Abmelden</a></li>
</ol>
</li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="6">
<li>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
<ol>
<li>Dark Theme
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" onchange="changeTheme()">
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</li>
</ol>
</li>
</ol>
</div>
</div>
</div>
</div>
</nav>
</header>
@ -136,44 +158,79 @@
<div class="m-container">
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Your Brand</a></h3>
<h3>Hilfe</h3>
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Showcase</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rückgabe</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Download</a></h3>
<h3>Zahlung</h3>
<ul>
<li><a href="#">Packages</a></li>
<li><a href="#">Source</a></li>
<li><a href="#">Kreditkarten</a></li>
<li><a href="#">Gutscheine</a></li>
<li><a href="#">Bankeinzug</a></li>
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>Contact</h3>
<h3>Amazon light</h3>
<ul>
<li><a href="mailto:you@your.brand">E-mail</a></li>
<li><a href="https://github.com/your-brand">GitHub</a></li>
<li><a href="#">Über</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Presse</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Blog</a></h3>
<h3><a href="#">Rechtliches</a></h3>
<ul>
<li><a href="#">News</a></li>
<li><a href="#">Archive</a></li>
<li><a href="https://joethei.xyz/impress">Impressum</a></li>
<li><a href="https://joethei.xyz/privacy">Datenschutz</a></li>
<li><a href="https://joethei.xyz/disclaimer">Haftung</a></li>
</ul>
</div>
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<p>Your Brand. Copyright &copy; <a href="mailto:you@your.brand">You</a>,
2017. All rights reserved.</p>
<p>Amazon light. Copyright &copy; <a href="#">B1</a>,
2019. All rights reserved.</p>
</div>
</div>
</div>
</nav>
</footer>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
function changeTheme() {
if(document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
}else {
swapStyleSheet("light", "#cb4b16");
}
}
function swapStyleSheet(sheet, color) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
}
$(document).ready(function () {
$('.slider').slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 3
})
});
</script>
</body>
</html>

View File

@ -4,4 +4,5 @@
<a href="register.html">Registrierung</a><br>
<a href="detailpage.html">Bücherliste</a><br>
<a href="book.html">Buchdetails</a><br>
<a href="confirmation.html">Bestätigung</a><br>
<a href="confirmation.html">Bestätigung</a><br>
<a href="shoppingcart.html">Warenkorb</a><br>

View File

@ -3,24 +3,13 @@
<head>
<title>Amazon light</title>
<script>
function getStylesheet() {
var dark = true;
if (dark) {
document.write("<link rel='stylesheet' href='css/m-dark.css' type='text/css'>");
document.write("<meta name=\"theme-color\" content=\"#22272e\" />");
} else {
document.write("<link rel='stylesheet' href='css/m-light.css' type='text/css'>");
document.write("<meta name=\"theme-color\" content=\"#cb4b16\" />");
}
}
<link rel="stylesheet" href="css/m-light.css" id="pagestyle"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600" />
<meta name="theme-color" content="#cb4b16" id="pagecolor"/>
getStylesheet();
</script>
<noscript>
<link href="css/m-light.css" rel="stylesheet">
</noscript>
<link href="css/custom.css" rel="stylesheet">
<link href="css/slick-theme.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta charset="utf-8">
@ -30,15 +19,48 @@
<header>
<nav id="navigation">
<div class="">
<div class="m-container">
<div class="m-row">
<a href="#" id="m-navbar-brand" class="m-col-t-2 m-col-m-none m-left-m">Amazon light</a>
<div class="m-button m-default m-col-t-1 m-push-l-10">
<a href="login.html"><span class="fas fa-user"> Anmelden/Registrieren</span></a>
<a href="" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m"></a>
<a id="m-navbar-show" href="#navigation" title="Show navigation"
class="m-col-t-3 m-hide-m m-text-right"></a>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen & Konten</a></li>
<li><a href="#">Abmelden</a></li>
</ol>
</li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="6">
<li>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
<ol>
<li>Dark Theme
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" onchange="changeTheme()">
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</li>
</ol>
</li>
</ol>
</div>
</div>
</div>
</div>
</nav>
</header>
@ -88,44 +110,79 @@
<div class="m-container">
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Your Brand</a></h3>
<h3>Hilfe</h3>
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Showcase</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rückgabe</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Download</a></h3>
<h3>Zahlung</h3>
<ul>
<li><a href="#">Packages</a></li>
<li><a href="#">Source</a></li>
<li><a href="#">Kreditkarten</a></li>
<li><a href="#">Gutscheine</a></li>
<li><a href="#">Bankeinzug</a></li>
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>Contact</h3>
<h3>Amazon light</h3>
<ul>
<li><a href="mailto:you@your.brand">E-mail</a></li>
<li><a href="https://github.com/your-brand">GitHub</a></li>
<li><a href="#">Über</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Presse</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Blog</a></h3>
<h3><a href="#">Rechtliches</a></h3>
<ul>
<li><a href="#">News</a></li>
<li><a href="#">Archive</a></li>
<li><a href="https://joethei.xyz/impress">Impressum</a></li>
<li><a href="https://joethei.xyz/privacy">Datenschutz</a></li>
<li><a href="https://joethei.xyz/disclaimer">Haftung</a></li>
</ul>
</div>
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<p>Your Brand. Copyright &copy; <a href="mailto:you@your.brand">You</a>,
2017. All rights reserved.</p>
<p>Amazon light. Copyright &copy; <a href="#">B1</a>,
2019. All rights reserved.</p>
</div>
</div>
</div>
</nav>
</footer>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
function changeTheme() {
if(document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
}else {
swapStyleSheet("light", "#cb4b16");
}
}
function swapStyleSheet(sheet, color) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
}
$(document).ready(function () {
$('.slider').slick({
infinite: true,
slidesToShow: 6,
slidesToScroll: 3
})
});
</script>
</body>
</html>

View File

@ -0,0 +1,358 @@
<!Doctype html>
<html lang="de">
<head>
<title>Amazon light</title>
<link rel="stylesheet" href="css/m-light.css" id="pagestyle"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600" />
<meta name="theme-color" content="#cb4b16" id="pagecolor"/>
<link href="css/custom.css" rel="stylesheet">
<link href="css/slick-theme.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<div id="add-address-form" title="Create new user">
<p class="validateTips">All form fields are required.</p>
<form>
<fieldset>
<label for="add-name">Name</label>
<input type="text" name="name" id="add-name" value="Jane Smith" class="text ui-widget-content ui-corner-all">
<label for="add-email">Email</label>
<input type="text" name="email" id="add-email" value="jane@smith.com" class="text ui-widget-content ui-corner-all">
<label for="password">Password</label>
<input type="password" name="password" id="add-password" value="xxxxxxx" class="text ui-widget-content ui-corner-all">
<!-- Allow form submission with keyboard without duplicating the dialog button -->
<input type="submit" tabindex="-1" style="position:absolute; top:-1000px">
</fieldset>
</form>
</div>
<div id="add-account-form" title="Create new user">
<p class="validateTips">All form fields are required.</p>
<form>
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" id="acc-name" value="Jane Smith" class="text ui-widget-content ui-corner-all">
<label for="email">Email</label>
<input type="text" name="email" id="acc-email" value="jane@smith.com" class="text ui-widget-content ui-corner-all">
<label for="password">Password</label>
<input type="password" name="password" id="acc-password" value="xxxxxxx" class="text ui-widget-content ui-corner-all">
<!-- Allow form submission with keyboard without duplicating the dialog button -->
<input type="submit" tabindex="-1" style="position:absolute; top:-1000px">
</fieldset>
</form>
</div>
<header>
<nav id="navigation">
<div class="m-container">
<div class="m-row">
<a href="" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m"></a>
<a id="m-navbar-show" href="#navigation" title="Show navigation"
class="m-col-t-3 m-hide-m m-text-right"></a>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen & Konten</a></li>
<li><a href="#">Abmelden</a></li>
</ol>
</li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="6">
<li>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
<ol>
<li>Dark Theme
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" onchange="changeTheme()">
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</li>
</ol>
</li>
</ol>
</div>
</div>
</div>
</div>
</nav>
</header>
<main>
<div class="m-container">
<h1 class="m-text-center">Addresse</h1>
<div class="m-row">
<div class="m-col-t-3">
<div class="m-block m-primary">
Max Mustermann<br>
Musterstraße 42<br>
12345 Musterstadt
</div>
</div>
<div class="m-col-t-3">
<div class="m-block m-success">
Max Mustermann<br>
Musterstraße 43<br>
12345 Musterstadt
</div>
</div>
<div class="m-col-t-3">
<div class="m-block">
Max Mustermann<br>
Musterstraße 45<br>
12345 Musterstadt
</div>
</div>
<div class="m-col-t-3">
<div class="m-block">
Max Mustermann<br>
Musterstraße 1<br>
12345 Musterstadt
</div>
</div>
</div>
<div class="m-row">
<div class="m-col-t-3">
<div class="m-block">
Max Mustermann<br>
Musterstraße 30<br>
12345 Musterstadt
</div>
</div>
<div class="m-col-t-3">
<div class="m-block m-text-center">
<button id="add-address" class="fas fa-plus fa-4x"></button>
</div>
</div>
</div>
<h1 class="m-text-center">Zahlungsart</h1>
<div class="m-row">
<div class="m-col-t-4">
<div class="m-block m-primary">
PayPal<br>
m&bull;&bull;&bull;&bull;&bull;&bull;@&bull;&bull;&bull;&bull;&bull;.de
</div>
</div>
<div class="m-col-t-4">
<div class="m-block m-success">
Bankeinzug<br>
IBAN: 12345&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;111<br>
Inhaber: Max Mustermann
</div>
</div>
<div class="m-col-t-4">
<div class="m-block m-text-center">
<button id="add-account" class="fas fa-plus fa-4x"></button>
</div>
</div>
</div>
</div>
</main>
<footer>
<nav>
<div class="m-container">
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3>Hilfe</h3>
<ul>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rückgabe</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3>Zahlung</h3>
<ul>
<li><a href="#">Kreditkarten</a></li>
<li><a href="#">Gutscheine</a></li>
<li><a href="#">Bankeinzug</a></li>
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>Amazon light</h3>
<ul>
<li><a href="#">Über</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Presse</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Rechtliches</a></h3>
<ul>
<li><a href="https://joethei.xyz/impress">Impressum</a></li>
<li><a href="https://joethei.xyz/privacy">Datenschutz</a></li>
<li><a href="https://joethei.xyz/disclaimer">Haftung</a></li>
</ul>
</div>
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<p>Amazon light. Copyright &copy; <a href="#">B1</a>,
2019. All rights reserved.</p>
</div>
</div>
</div>
</nav>
</footer>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
function changeTheme() {
if(document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
}else {
swapStyleSheet("light", "#cb4b16");
}
}
function swapStyleSheet(sheet, color) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
}
$(document).ready(function () {
$('.slider').slick({
infinite: true,
slidesToShow: 6,
slidesToScroll: 3
})
});
$( function() {
var dialog, form,
// From http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state-%28type=email%29
emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
name = $( "#name" ),
email = $( "#email" ),
password = $( "#password" ),
allFields = $( [] ).add( name ).add( email ).add( password ),
tips = $( ".validateTips" );
function updateTips( t ) {
tips
.text( t )
.addClass( "ui-state-highlight" );
setTimeout(function() {
tips.removeClass( "ui-state-highlight", 1500 );
}, 500 );
}
function checkLength( o, n, min, max ) {
if ( o.val().length > max || o.val().length < min ) {
o.addClass( "ui-state-error" );
updateTips( "Length of " + n + " must be between " +
min + " and " + max + "." );
return false;
} else {
return true;
}
}
function checkRegexp( o, regexp, n ) {
if ( !( regexp.test( o.val() ) ) ) {
o.addClass( "ui-state-error" );
updateTips( n );
return false;
} else {
return true;
}
}
function addUser() {
var valid = true;
allFields.removeClass( "ui-state-error" );
valid = valid && checkLength( name, "username", 3, 16 );
valid = valid && checkLength( email, "email", 6, 80 );
valid = valid && checkLength( password, "password", 5, 16 );
valid = valid && checkRegexp( name, /^[a-z]([0-9a-z_\s])+$/i, "Username may consist of a-z, 0-9, underscores, spaces and must begin with a letter." );
valid = valid && checkRegexp( email, emailRegex, "eg. ui@jquery.com" );
valid = valid && checkRegexp( password, /^([0-9a-zA-Z])+$/, "Password field only allow : a-z 0-9" );
if ( valid ) {
$( "#users tbody" ).append( "<tr>" +
"<td>" + name.val() + "</td>" +
"<td>" + email.val() + "</td>" +
"<td>" + password.val() + "</td>" +
"</tr>" );
dialog.dialog( "close" );
}
return valid;
}
dialog = $( "#add-account-form" ).dialog({
autoOpen: false,
height: 400,
width: 350,
modal: true,
buttons: {
"Create an account": addUser,
Cancel: function() {
dialog.dialog( "close" );
}
},
close: function() {
form[ 0 ].reset();
allFields.removeClass( "ui-state-error" );
}
});
form = dialog.find( "form" ).on( "submit", function( event ) {
event.preventDefault();
addUser();
});
$( "#add-account" ).button().on( "click", function() {
dialog.dialog( "open" );
});
$( "#add-address" ).button().on( "click", function() {
dialog.dialog( "open" );
});
} );
</script>
</body>
</html>

View File

@ -3,24 +3,13 @@
<head>
<title>Amazon light</title>
<script>
function getStylesheet() {
var dark = true;
if (dark) {
document.write("<link rel='stylesheet' href='css/m-dark.css' type='text/css'>");
document.write("<meta name=\"theme-color\" content=\"#22272e\" />");
} else {
document.write("<link rel='stylesheet' href='css/m-light.css' type='text/css'>");
document.write("<meta name=\"theme-color\" content=\"#cb4b16\" />");
}
}
<link rel="stylesheet" href="css/m-light.css" id="pagestyle"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600" />
<meta name="theme-color" content="#cb4b16" id="pagecolor"/>
getStylesheet();
</script>
<noscript>
<link href="css/m-light.css" rel="stylesheet">
</noscript>
<link href="css/custom.css" rel="stylesheet">
<link href="css/slick-theme.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta charset="utf-8">
@ -30,15 +19,48 @@
<header>
<nav id="navigation">
<div class="">
<div class="m-container">
<div class="m-row">
<a href="#" id="m-navbar-brand" class="m-col-t-2 m-col-m-none m-left-m">Amazon light</a>
<div class="m-button m-default m-col-t-1 m-push-l-10">
<a href="login.html"><span class="fas fa-user"> Anmelden/Registrieren</span></a>
<a href="" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m"></a>
<a id="m-navbar-show" href="#navigation" title="Show navigation"
class="m-col-t-3 m-hide-m m-text-right"></a>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen & Konten</a></li>
<li><a href="#">Abmelden</a></li>
</ol>
</li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="6">
<li>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
<ol>
<li>Dark Theme
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" onchange="changeTheme()">
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</li>
</ol>
</li>
</ol>
</div>
</div>
</div>
</div>
</nav>
</header>
@ -95,44 +117,79 @@
<div class="m-container">
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Your Brand</a></h3>
<h3>Hilfe</h3>
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Showcase</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rückgabe</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Download</a></h3>
<h3>Zahlung</h3>
<ul>
<li><a href="#">Packages</a></li>
<li><a href="#">Source</a></li>
<li><a href="#">Kreditkarten</a></li>
<li><a href="#">Gutscheine</a></li>
<li><a href="#">Bankeinzug</a></li>
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>Contact</h3>
<h3>Amazon light</h3>
<ul>
<li><a href="mailto:you@your.brand">E-mail</a></li>
<li><a href="https://github.com/your-brand">GitHub</a></li>
<li><a href="#">Über</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Presse</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Blog</a></h3>
<h3><a href="#">Rechtliches</a></h3>
<ul>
<li><a href="#">News</a></li>
<li><a href="#">Archive</a></li>
<li><a href="https://joethei.xyz/impress">Impressum</a></li>
<li><a href="https://joethei.xyz/privacy">Datenschutz</a></li>
<li><a href="https://joethei.xyz/disclaimer">Haftung</a></li>
</ul>
</div>
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<p>Your Brand. Copyright &copy; <a href="mailto:you@your.brand">You</a>,
2017. All rights reserved.</p>
<p>Amazon light. Copyright &copy; <a href="#">B1</a>,
2019. All rights reserved.</p>
</div>
</div>
</div>
</nav>
</footer>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
function changeTheme() {
if(document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
}else {
swapStyleSheet("light", "#cb4b16");
}
}
function swapStyleSheet(sheet, color) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
}
$(document).ready(function () {
$('.slider').slick({
infinite: true,
slidesToShow: 6,
slidesToScroll: 3
})
});
</script>
</body>
</html>

View File

@ -0,0 +1,234 @@
<!Doctype html>
<html lang="de">
<head>
<title>Amazon light</title>
<link rel="stylesheet" href="css/m-light.css" id="pagestyle"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600" />
<meta name="theme-color" content="#cb4b16" id="pagecolor"/>
<link href="css/custom.css" rel="stylesheet">
<link href="css/slick-theme.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<header>
<nav id="navigation">
<div class="m-container">
<div class="m-row">
<a href="" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m"></a>
<a id="m-navbar-show" href="#navigation" title="Show navigation"
class="m-col-t-3 m-hide-m m-text-right"></a>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen & Konten</a></li>
<li><a href="#">Abmelden</a></li>
</ol>
</li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="6">
<li>
<a href="#"><i class="fas fa-ellipsis-v"></i></a>
<ol>
<li>Dark Theme
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" onchange="changeTheme()">
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</li>
</ol>
</li>
</ol>
</div>
</div>
</div>
</div>
</nav>
</header>
<main>
<div class="m-container">
<div class="m-row m-block">
<div class="m-col-t-4">
<img src="https://source.unsplash.com/DxAzOKSiPoE/100x100" class="m-image" alt="Buchcover">
</div>
<div class="m-col-t-4">
<h3>Your soul is a river - Nikita Gill</h3>
</div>
<div class="m-col-t-4">
<div class = "m-row">
<h4 class="m-text-right">19,99 &euro;</h4>
</div>
<div class="m-row">
<div class="m-col-t-4 m-push-t-6">
<input type="number" name="quantity" value="3" min="1" max="10">
</div>
</div>
<div class="m-row">
<div class="m-col-t-4 m-push-t-6 m-button m-small m-danger">
<a href="#">Entfernen</a>
</div>
</div>
</div>
</div>
<div class="m-row m-block">
<div class="m-col-t-4">
<img src="https://source.unsplash.com/DxAzOKSiPoE/100x100" class="m-image" alt="Buchcover">
</div>
<div class="m-col-t-4">
<h3>Your soul is a river - Nikita Gill</h3>
</div>
<div class="m-col-t-4">
<div class = "m-row">
<h4 class="m-text-right">19,99 &euro;</h4>
</div>
<div class="m-row">
<div class="m-col-t-4 m-push-t-6">
<input type="number" name="quantity" value="1" min="1" max="10">
</div>
</div>
<div class="m-row">
<div class="m-col-t-4 m-push-t-6 m-button m-small m-danger">
<a href="#">Entfernen</a>
</div>
</div>
</div>
</div>
<div class="m-row m-block">
<div class="m-col-t-4">
<img src="https://source.unsplash.com/DxAzOKSiPoE/100x100" class="m-image" alt="Buchcover">
</div>
<div class="m-col-t-4">
<h3>Your soul is a river - Nikita Gill</h3>
</div>
<div class="m-col-t-4">
<div class = "m-row">
<h4 class="m-text-right">19,99 &euro;</h4>
</div>
<div class="m-row">
<div class="m-col-t-4 m-push-t-6">
<input type="number" name="quantity" value="1" min="1" max="10">
</div>
</div>
<div class="m-row">
<div class="m-col-t-4 m-push-t-6 m-button m-small m-danger">
<a href="#">Entfernen</a>
</div>
</div>
</div>
</div>
<div class="m-row">
<div class="m-col-t-5 m-push-t-7">
<h1 class="m-text-right">Summe(3 Items): 99,95 &euro;</h1>
</div>
</div>
<div class="m-row">
<div class="m-col-t-3 m-push-t-5 m-button m-success">
<a href="#">Jetzt Kaufen</a>
</div>
</div>
</div>
</main>
<footer>
<nav>
<div class="m-container">
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3>Hilfe</h3>
<ul>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rückgabe</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3>Zahlung</h3>
<ul>
<li><a href="#">Kreditkarten</a></li>
<li><a href="#">Gutscheine</a></li>
<li><a href="#">Bankeinzug</a></li>
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>Amazon light</h3>
<ul>
<li><a href="#">Über</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Presse</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3><a href="#">Rechtliches</a></h3>
<ul>
<li><a href="https://joethei.xyz/impress">Impressum</a></li>
<li><a href="https://joethei.xyz/privacy">Datenschutz</a></li>
<li><a href="https://joethei.xyz/disclaimer">Haftung</a></li>
</ul>
</div>
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<p>Amazon light. Copyright &copy; <a href="#">B1</a>,
2019. All rights reserved.</p>
</div>
</div>
</div>
</nav>
</footer>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
function changeTheme() {
if(document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
}else {
swapStyleSheet("light", "#cb4b16");
}
}
function swapStyleSheet(sheet, color) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
}
$(document).ready(function () {
$('.slider').slick({
infinite: true,
slidesToShow: 6,
slidesToScroll: 3
})
});
</script>
</body>
</html>

View File

@ -29,15 +29,13 @@
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="#">Katalog</a></li>
<li><a href="#">(1) Warenkorb</a></li>
<li><a href="#">Warenkorb</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Mein Account</a>
<a href="#">Anmelden</a>
<ol>
<li><a href="#">Meine Bestellungen</a></li>
<li><a href="#">Adressen & Konten</a></li>
<li><a href="#">Abmelden</a></li>
<li><a href="#">Registrieren</a></li>
</ol>
</li>
</ol>
@ -70,7 +68,7 @@
<div id="m-landing-cover">
<div class="m-container">
<div class="m-row">
<h1 class="m-text-center">Amazon light</h1>
<h1 class="m-text-center m-success">Amazon light</h1>
</div>
<div class="m-row">
<h2 class="m-text-center">Sie haben noch nie ein richtig gutes Buch gelesen ?</h2>
@ -80,7 +78,7 @@
</div>
<br>
<div class="m-row">
<div class="m-button m-success">
<div class="m-button m-info">
<a href="#">
Zum Katalog
</a>
@ -217,16 +215,17 @@
function changeTheme() {
if(document.getElementById('myonoffswitch').checked) {
swapStyleSheet("dark", "#22272e");
swapStyleSheet("dark", "#22272e", "8muUTAmcWU4");
}else {
swapStyleSheet("light", "#cb4b16");
swapStyleSheet("light", "#cb4b16", "o0Qqw21-0NI");
}
}
function swapStyleSheet(sheet, color) {
function swapStyleSheet(sheet, color, image) {
document.getElementById("pagestyle").setAttribute("href", "css/m-" + sheet + ".css");
document.getElementById("pagecolor").setAttribute("content", color);
document.getElementById("m-landing-image").style.backgroundImage = "url('https://source.unsplash.com/" + image + "/1920x1280')";
}
$(document).ready(function () {