-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·63 lines (61 loc) · 2.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/post?u=<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vabono - Coming soon</title>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
</head>
<body>
<img src="images/page-img.jpg" alt="" class="page-img">
<div class="cup-holder">
<div class="cup-logo-block">
<a href="./" class="cup-logo">Vabono</a>
<strong class="cup-slogan">
Beauty online buchen<br/><br/><br/>
Coming soon!
</strong>
<form id="mc-form" method="post" action="http://vabono.us8.list-manage2.com/subscribe/post-json?u=4a0ffba39364cdca1d3d20e52&id=e7d2df0227&c=?">
<input type="hidden" name="u" value="4a0ffba39364cdca1d3d20e52">
<input type="hidden" name="id" value="e7d2df0227">
<input id="mc-email" type="email" name="EMAIL" class="email" id="mce-EMAIL" placeholder="E-Mail" required>
<!-- autocapitalize="off" autocorrect="off" -->
<button type="submit">Subscribe</button>
</form>
<div id="notification_container"></div>
</div>
<span class="cup-link"><a href="imprint.html">Impressum</a></span>
</div>
<script type="text/javascript">
$(function () {
var $form = $('#mc-form');
$('#mc-form').on('submit', function(event) {
if(event) event.preventDefault();
register($form);
});
});
function register($form) {
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
cache : false,
dataType : 'json',
contentType: "application/json; charset=utf-8",
error : function(err) { $('#notification_container').html('<span class="alert">Could not connect to server. Please try again later.</span>'); },
success : function(data) {
if (data.result != "success") {
var message = data.msg.substring(4);
$('#notification_container').html('<span class="alert">'+message+'</span>');
}
else {
$form.hide();
var message = data.msg;
$('#notification_container').html('<span class="success">'+message+'</span>');
}
}
});
}
</script>
</body>
</html>