-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
80 lines (72 loc) · 3.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <!--320-->
<link rel="icon" type="image/png" href="img/logo.png">
<title>Hotspot Mobile App</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="top-div">
<a href="chat/"><img class="thelogo" src="img/logo.png"></a><br />
<img class="titleImg" src="img/Title.png">
<h3><p class="titleMotto">Because meeting strangers is hard.</p></h3>
<form role="form" id="subscribe" class="form-inline signup">
<div class="form-group">
<input type="email" class="form-control" id="email" placeholder="Enter email" required>
<input type="submit" class="btn btn-default" id="submit" onclick="">
</div>
<div class="forminfo" id="forminfo">
<label for="exampleInputEmail1" class="subMessage">Sign-up for Alerts!</label>
</div>
</form>
<div id="login">
<button class="login" type="submit" onclick="javascript:location.href='/chat'" >Sign In</button>
</div>
<br />
<a href="https://play.google.com/store/apps/details?id=com.ticknardif.hotspot&hl=en" ><img class="android" src="img/android-app.png"></a>
<br/>
<img class="phone" src="img/phone.png">
<br /><br />
<small>
<p>©2014 Hotspot | <a href="legal.html">Legal</a> | <a href="contact.html">Contact</a></p>
</small>
</div>
<!--START JQuery-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
$("#submit").click(function(e) {
var mydata;
var email = $("#email").val();
if (email == '' || email.indexOf("@") == -1) {
alert("Insert a valid Email Address");
}else{
// Returns successful data submission message when the entered information is stored in database.
$.post("util/subscribe.php", {
email: email
}, function(data) {
$('#forminfo').html(data);
});
}
e.preventDefault();
//$('#forminfo').html('Thanks for Subscribing, you will recieve a confirmation email soon.');
});
});
</script>
</body>
</html>