This repository was archived by the owner on Feb 4, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathindex.jade
More file actions
83 lines (80 loc) · 3.57 KB
/
index.jade
File metadata and controls
83 lines (80 loc) · 3.57 KB
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
extends layout
block content
div(class="container")
div(class="header")
ul(class="nav nav-pills pull-right")
li(class="active")
a(href="#") Home
li
a(href="#") About
li
a(href="#") Blog
li
a(href="#") Press
h3(class="text-muted") A New Startup
div(id="signupSuccess", class="alert alert-success", style="display:none")
p(id="signupSuccessText") Thanks for signing up! You'll be among the first to know when we launch.
div(id="signupDuplicate", class="alert alert-success", style="display:none")
p(id="signupDuplicateText") Fear not, you're already on the list! You'll be among the first to know when we launch.
div(id="signupError", class="alert alert-info", style="display:none")
p(id="signupErrorText") Well this is embarrassing. It looks like we're having trouble getting you on the list.
div(class="jumbotron")
h1 The next big thing is coming...
p(class="lead") We're pretty thrilled to unveil our latest creation. Sign up below to be notified when we officially launch!
p
a(class="btn btn-lg btn-success", data-toggle="modal", href="#signupModal") Sign up today
div(class="footer")
p © A New Startup 2013
// Modal
div(class="modal fade", id="signupModal", tabindex="-1", role="dialog", aria-labelledby="signupModal", aria-hidden="true")
div(class="modal-dialog")
div(class="modal-content")
div(class="modal-header")
button(type="button", class="close", data-dismiss="modal", aria-hidden="true") ×
h4(class="modal-title") Provide a few details and we'll be in touch...
div(class="modal-body")
form(id="signupForm", role="form")
input(type="hidden", id="theme", name="theme", value="flatly")
div(class="form-group")
label(for="name") Name
input(type="text", class="form-control", id="name", name="name", placeholder="Your name")
div(class="form-group")
label(for="email") Email address
input(type="email", class="form-control", id="email", name="email", placeholder="Your email address")
div(class="form-group")
label(for="previewAccess") Interested in Preview Access?
select(class="form-control", name="previewAccess")
option Yes
option No
div(class="modal-footer")
button(id="signup", type="button", class="btn btn-primary") Sign Up!
script(src="../static/jquery/jquery.js")
script(src="../static/bootstrap/js/bootstrap.min.js")
script.
$(document).ready(function() {
$("#signup").click(function() {
$.post( "/signup", $("#signupForm").serialize(),
function(data) {
$("#signupSuccess").show();
$("#signupDuplicate").hide();
$("#signupError").hide();
}
)
.error(function(xhr) {
switch(xhr.status) {
case 409:
$("#signupSuccess").hide();
$("#signupDuplicate").show();
$("#signupError").hide();
break;
default:
$("#signupSuccess").hide();
$("#signupDuplicate").hide();
$("#signupError").show();
}
})
.always(function() {
$("#signupModal").modal('hide');
});
})
})