-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (77 loc) · 4.23 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="author" content="Alan Baudeau, Steve Raharimanana" />
<meta name="description" content="Patch it up! Choose which assets you want to wear today." />
<title>ANYW3AR</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="src/favicon.png">
</head>
<body class="home">
<video id="background-video" autoplay="autoplay" loop="loop" muted defaultMuted playsinline oncontextmenu="return false;" preload="auto" >
<source src="src/ANYW3AR-site-video-hig-red.mp4" type="video/mp4">
</video>
<section class="frame">
<header>
<img alt="logo-X-Twitter" src="src/ANYW3AR-b.svg"/>
</header>
<section class="content">
<header>
<h2>PATCH IT UP!</h2>
<h3>CHOOSE WHICH ASSETS YOU WANT TO WEAR TODAY</h3>
</header>
<div class="form">
<div>
<h4>Coming soon. Be the first to know!</h4>
<form id="myForm" class="my-2" method="post" action="https://script.google.com/macros/s/AKfycbwOFCBymYllK68aRbdWUC3uEhA13DhISRpvHlo8Xc95PHAgHa61HcgEvp24PSWjWc_zug/exec">
<div class="my-2 champ">
<input class="form-control form-control" type="email" name="email" id="emailInput" placeholder="[email protected]"/>
</div>
<div class="my-2 BT">
<button class="btn btn-primary ms-sm-2" type="submit"></button>
</div>
</form>
</div>
</div>
<div class="twitter">
<h4>Follow us on Twitter</h4>
<a href="https://twitter.com/ANYW3AR">
<img alt="logo-X-Twitter" src="src/X_logo.svg"/>
</a>
</div>
</section>
<footer>
<p>ANYW3AR © - 2024 - <a href="legals.html">Legals</a></p>
</footer>
</section>
<script>
document.getElementById('myForm').addEventListener('submit', function(e) {
e.preventDefault();
// Create a new FormData object from the form
var formData = new FormData(this);
// Get the email input value for later use
var email = document.getElementById('emailInput').value;
// Use the Fetch API to submit the form data
fetch(this.action, {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => {
console.log(data);
// Replace the form with the "Thank you" message
document.getElementById('myForm').innerHTML = 'Thank you ' + email + ', we\'ll be back to you very soon!';
})
.catch(error => {
console.error('Error:', error);
});
});
</script>
<script type="text/javascript" src="https://cookie.eurowebpage.com/cookie.js?skin=cookielaw2&position=bottom_left&delay=0&box_radius=5&bg_color=C80815&link_color=000000&morelink=https%3A%2F%2Fanyw3ar.com%2Flegals.html&accept_radius=5&msg_color=ffffff"></script>
</body>
</html>