forked from geomarts/mailchimp-popup-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (168 loc) · 4.28 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"
/>
<link
href="//cdn-images.mailchimp.com/embedcode/classic-071822.css"
rel="stylesheet"
type="text/css"
/>
<link rel="stylesheet" href="main.css" />
<title>Custom Mailchimp Popup Form</title>
</head>
<body>
<button type="button" class="open-modal" data-open="modal1">
Reveal Maichimp Popup Form
</button>
<div class="modal" id="modal1" data-animation="slideInOutLeft">
<div class="modal-dialog">
<header class="modal-header">
<h2>Get 10% OFF <span>on your next order</span></h2>
<img
width="300"
height="126"
src="https://assets.codepen.io/162656/discount10.png"
alt=""
/>
<button
class="close-modal"
aria-label="close modal"
data-close
>
✕
</button>
</header>
<section class="modal-content">
<div id="mc_embed_signup">
<form
action="PLACE_YOUR_ACTION_HERE"
method="post"
id="mc-embedded-subscribe-form"
name="mc-embedded-subscribe-form"
class="validate"
target="_blank"
novalidate
>
<div id="mc_embed_signup_scroll">
<div class="grid">
<div class="mc-field-group">
<input
type="text"
value=""
name="LNAME"
class="required"
id="mce-LNAME"
placeholder="Last Name"
required
/>
</div>
<div class="mc-field-group">
<input
type="text"
value=""
name="FNAME"
class="required"
id="mce-FNAME"
placeholder="First Name"
required
/>
</div>
</div>
<div class="mc-field-group">
<input
type="email"
value=""
name="EMAIL"
class="required email"
id="mce-EMAIL"
placeholder="Email Address"
required
/>
</div>
<div id="mce-responses">
<div
class="response"
id="mce-error-response"
style="display: none"
></div>
<div
class="response"
id="mce-success-response"
style="display: none"
></div>
</div>
<div
style="position: absolute; left: -5000px"
aria-hidden="true"
>
<input
type="text"
name="b_73f63fc2ce32efdc5a70cf9c6_fea17efc56"
tabindex="-1"
value=""
/>
</div>
<input
type="submit"
value="Subscribe"
name="subscribe"
id="mc-embedded-subscribe"
class="button"
/>
<p class="brandingLogo">
<a
href="http://eepurl.com/ipjC8s"
title="Mailchimp - email marketing made easy and fun"
><img
src="https://eep.io/mc-cdn-images/template_images/branding_logo_text_dark_dtp.svg"
/></a>
</p>
</div>
</form>
</div>
</section>
</div>
</div>
<p class="notification">
The form submission won't work! You have to sign in to your
Mailchimp account and
<a
href="https://assets.codepen.io/162656/mailchimp-generated-code.jpg"
target="_blank"
>change the value of the form action attribute with yours</a
>.
</p>
<footer class="page-footer">
<span>made by </span>
<a href="https://georgemartsoukos.com/" target="_blank">
<img
width="24"
height="24"
src="https://assets.codepen.io/162656/george-martsoukos-small-logo.svg"
alt="George Martsoukos logo"
/>
</a>
</footer>
<script src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script>
<script>
(function ($) {
window.fnames = new Array();
window.ftypes = new Array();
fnames[0] = "EMAIL";
ftypes[0] = "email";
fnames[1] = "FNAME";
ftypes[1] = "text";
fnames[2] = "LNAME";
ftypes[2] = "text";
})(jQuery);
var $mcj = jQuery.noConflict(true);
</script>
<script src="main.js"></script>
</body>
</html>