-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtier-1.html
213 lines (196 loc) · 7.11 KB
/
tier-1.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="Zero to Live in 45" />
<meta name="author" content="Michael Lynn" />
<title>Zero to Live in 45</title>
<!-- Bootstrap core CSS -->
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
rel="stylesheet"
/>
<!-- Custom fonts for this template -->
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/js/all.min.js"
rel="stylesheet"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.css"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"
rel="stylesheet"
type="text/css"
/>
<!-- Custom styles for this template -->
<link href="styles.css" rel="stylesheet" />
<!-- optional additional css styles if'n y'like -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- <script src="https://s3.amazonaws.com/stitch-sdks/js/bundles/4.4.0/stitch.js"></script> -->
<script src="https://s3.amazonaws.com/stitch-sdks/js/bundles/4.9.0/stitch.js"></script>
<script src="./config.js"></script>
<script src="./scripts.js"></script>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-light bg-light static-top">
<div class="container">
<a class="navbar-brand" href="/index.html">Home</a>
</div>
</nav>
<!-- Form -->
<section class="bg-light">
<div class="container">
<h2 class="mb-5 jumbotron text-center">
Zero to Live in 45
</h2>
We're pre-launch at the moment - please leave your details so we can let you know as soon as we've launched.
<div class="col-md-12 mx-auto">
<form>
<input type='hidden' name='tier' id="tier" value='tier-1'>
<div class="form-group">
<div class="form-row">
<label for="name">Name:</label>
<input
type="text"
placeholder="Your Full Name"
name="name"
id="name"
class="form-control"
/>
</div>
</div>
<div class="form-group">
<div class="form-row">
<label for="email">Email:</label>
<input
type="email"
placeholder="[email protected]"
name="email"
id="email"
class="form-control"
/>
</div>
</div>
<div class="form-group">
<div class="form-row">
<label for="interest">My Interest:</label>
<div class="col-lg-12 col-md-12">
<select name="interest" id="interest" class="form-control">
<option value="Ready to Buy">Ready to Buy</option>
<option value="Ready to Invest">Ready to Invest</option>
<option value="Just curious">Just curious</option>
</select>
</div>
</div>
</div>
<div class="form-row">
<div class="col-12 col-md-3">
<p></p>
<button
class="btn btn-block btn-lg btn-primary"
onclick="sendResponse();return false;"
class="btn btn-lg btn-success">
Send Response
</button>
</div>
</div>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer bg-light">
<div class="container">
<div class="row">
<div class="col-lg-6 h-100 text-center text-lg-left my-auto">
<ul class="list-inline mb-2">
<li class="list-inline-item">
<a href="/about.html">About</a>
</li>
<li class="list-inline-item">⋅</li>
<li class="list-inline-item">
<a href="/contact.html">Contact</a>
</li>
<li class="list-inline-item">⋅</li>
<li class="list-inline-item">
<a href="/terms.html">Terms of Use</a>
</li>
<li class="list-inline-item">⋅</li>
<li class="list-inline-item">
<a href="/privacy.html">Privacy Policy</a>
</li>
</ul>
<p class="text-muted small mb-4 mb-lg-0">
© Michael Lynn 2020. All Rights Reserved.
</p>
</div>
<div class="col-lg-6 h-100 text-center text-lg-right my-auto">
<ul class="list-inline mb-0">
<li class="list-inline-item mr-3">
<a href="https://linkedin.com/in/mlynn">
<i class="fab fa-linkedin fa-2x fa-fw"></i>
</a>
</li>
<li class="list-inline-item mr-3">
<a href="https://twitter.com/mlynn">
<i class="fab fa-twitter-square fa-2x fa-fw"></i>
</a>
</li>
<li class="list-inline-item">
<a href="https://instagram.com/mlynnstagram">
<i class="fab fa-instagram fa-2x fa-fw"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<!-- Bootstrap core JavaScript -->
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"
></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script>
const { Stitch, AnonymousCredential } = stitch;
function sendResponse() {
client.auth
.loginWithCredential(new stitch.AnonymousCredential())
.then(() => insertData())
.catch(err => console.error(`login failed with error: ${err}`));
}
function insertData() {
var n = new Date();
var obj = {};
obj.mdb_created = n;
console.log("In insertData...");
obj.name = $("#name").val();
obj.email = $("#email").val();
obj.tier = $("#tier").val();
obj.interest = $("#interest").val();
obj.browser = {};
obj.browser.ua = navigator.userAgent || undefined;
obj.browser.lang = navigator.language || undefined;
obj.browser.plat = navigator.platform || undefined;
obj.owner = client.auth.authInfo.userId;
db.collection("responses")
.insertOne(obj)
.then(recordSuccess)
.catch(err => console.error(`login failed with error: ${err}`));
}
function recordSuccess() {
window.location = "thankyou-nograph.html";
}
</script>
</body>
</html>