-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontact.html
More file actions
executable file
·203 lines (190 loc) · 6.69 KB
/
contact.html
File metadata and controls
executable file
·203 lines (190 loc) · 6.69 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
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
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel='icon' href='favicon.ico' type='image/x-icon'/>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<style>
body,
html {
width: 100%;
height: auto%;
font-family: "Lato";
color: white;
background-image: url(pics/contact3.png);
background-repeat: no-repeat;
background-size: cover;
background-position: absolute;
}
h1 {
padding-top: 5%;
font-weight: 700;
font-size: 5em;
}
.content{
text-align: center;
text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
0px 8px 13px rgba(0,0,0,0.1),
0px 18px 23px rgba(0,0,0,0.1);
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Cruising</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="destination_departure.html">Book Now</a></li>
<li class="active"><a href="contact.html">Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="login.html" onclick="return logout();">Log Out <i class="fa fa-user"></i></a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="content">
<h1>Contact Us</h1>
</div>
</div>
</div>
<div class="row">
<div>
<form class="needs-validation">
<div class="form-group">
<!--<label for="exampleFormControlTextarea1">Example textarea</label>-->
<textarea class="form-control" id="exampleFormControlTextarea1" rows="6" placeholder="Type a message here, please be detailed..."></textarea>
</div>
<div class="row">
<center><input class="btn btn-primary" onclick="addData();" type="button" value="Submit"></center>
</div>
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<img src="pics/riyazh.jpg" alt="Riyazh" width="300" height="300">
</div>
<div class="col-sm-4">
<img src="pics/paul.jpeg" alt="Paul" width="300" height="300">
</div>
<div class="col-sm-4">
<img src="pics/Syed2.jpeg" alt="Syed" width="300" height="300">
</div>
</div>
<div class="row">
<div class="col-sm-4">
<center><h4>Riyazh Dholakia: Full Stack Developer</h4></center>
</div>
<div class="col-sm-4">
<center><h4>Biprojoyti Paul: Full Stack Developer</h4></center>
</div>
<div class="col-sm-4">
<center><h4>Syed Kalam: Full Stack Developer</h4></center>
</div>
</div>
<div class="row">
<div class="col-sm-2">
</div>
<div class="col-sm-3">
<img src="pics/q.jpeg" alt="Randall" width="300" height="300">
</div>
<div class="col-sm-2">
</div>
<div class="col-sm-5">
<img src="pics/sujal2.jpg" alt="Sujal" width="300" height="300">
</div>
</div>
<div class="row">
<div class="col-sm-2">
</div>
<div class="col-sm-3">
<center><h4>Randall Byrd: Full Stack Developer</h4></center>
</div>
<div class="col-sm-2">
</div>
<div class="col-sm-5">
<center><h4>Sujal Patel: Full Stack Developer</h4></center>
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/5.8.3/firebase.js"></script>
<script>
var User;
// Initialize Firebase
var config = {
apiKey: "AIzaSyAmbS9EKpnJRTE5AAnKKgUFMkdDF7KOePk",
authDomain: "cruising-23cb7.firebaseapp.com",
databaseURL: "https://cruising-23cb7.firebaseio.com",
projectId: "cruising-23cb7",
storageBucket: "cruising-23cb7.appspot.com",
messagingSenderId: "322449955301"
};
firebase.initializeApp(config);
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
User=user;
var displayName = user.displayName;
var email = user.email;
var emailVerified = user.emailVerified;
var photoURL = user.photoURL;
var isAnonymous = user.isAnonymous;
var uid = user.uid;
var providerData = user.providerData;
// ...
} else {
// User is signed out.
// ...
}
});
function addData(){
var messgae=document.getElementById('exampleFormControlTextarea1').value;
firebase.database().ref('contacts').push({messgae:messgae,email:User.email},function(){
alert('Message send successfully');
location.reload();
return false;
})
}
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script>
function logout() {
print("success");
firebase.auth().signOut()
console.log("success");
print("success");
</script>
</body>
</html>