-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (68 loc) · 3.32 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
<!DOCTYPE html>
<html>
<head>
<title>hackBCA</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://yui.yahooapis.com/combo?pure/0.5.0/base-min.css&pure/0.5.0/grids-min.css&pure/0.5.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="http://yui.yahooapis.com/combo?pure/0.5.0/base-min.css&pure/0.5.0/grids-min.css&pure/0.5.0/grids-responsive-min.css">
<!--<![endif]-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<!-- Hide this line for IE (needed for Firefox and others) -->
<![if !IE]>
<link rel="icon" href="static/comingsoon/images/favicon.ico" type="image/x-icon" />
<![endif]>
<link rel="stylesheet" href="static/comingsoon/css/styles.css">
<link rel="stylesheet" href="css/styles.css">
<!-- This is needed for IE -->
<link rel="shortcut icon" href="static/comingsoon/images/favicon.ico" type="image/ico" />
</head>
<body>
<!-- <div id="background"></div> -->
<div id="cover">
<div id="container">
<div id="content">
<h1 id="title">hackBCA II</h1>
<h2 id="date">March 28th 2015</h2>
<div id="form">
<input type="text" class="email" id="email-form" name='email' placeholder="Enter Your Email">
<button id="getUpdates" onclick="x()">
<span>Get Updates</span>
</button>
<a href="http://hackbca.com/" class="hackBCAI">Check out hackBCA I</a>
</div>
</div>
</div>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
<script src="static/comingsoon/transition.js"></script>
<script src="transition.js"></script>
<script type="text/javascript">
function x () {
$.ajax({
type: "POST",
url: 'http://hackbca.herokuapp.com/',
data: {'email':$('.email').val()},
success: function(data){
if(data == "success"){
$('.error').remove();
$('#form').remove();
$('#content').append('<h3>We will email you soon!</h3>');
}else if(data == 'Cannot leave blank!'){
$('.error').remove();
$('#content').append('<h3 class="error" style="color:#e74c3c">Cannot leave blank!</h3>');
}else{
$('.error').remove();
$('#content').append('<h3 class="error" style="color:#e74c3c">Enter valid email!</h3>');
}
}
});
}
</script>
</body>
</html>