-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
586 lines (494 loc) · 23 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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
<!DOCTYPE html>
<html data-ng-app="myApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to NUFinder</title>
<script type="text/javascript" src="js/jquery-3.1.1.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.6.1/firebase.js"></script>
<script type="text/javascript" src="js/angular-1.4.4.js"></script>
<script src="js/new/angularfire.js"></script>
<script type="text/javascript" src="js/bootstrap-3.3.7.js"></script>
<script type="text/javascript" src="js/bootstrap-tour.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap-3.3.7.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-tour.min.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/footer.css">
<link rel="shortcut icon" href="images/logo.jpg" type="image/jpg"/>
<script>
var config = {
apiKey: "AIzaSyBbaKF-ijGLlCvMJOuF2iUHtSv7B80r8N4",
authDomain: "contactlist-2392c.firebaseapp.com",
databaseURL: "https://contactlist-2392c.firebaseio.com",
storageBucket: "contactlist-2392c.appspot.com",
messagingSenderId: "74462320695"
};
firebase.initializeApp(config);
</script>
</head>
<body data-ng-controller='nuFinderController'>
<!-- Navbar Starts-->
<nav class="navbar navbar-default navbar-inverse" style="margin-bottom: 0px;border-radius: 0px;">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<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" id="step-one" href="#" style="color:#dcbd2f;font-size: 20px;font-weight: bold;"><span class="glyphicon glyphicon-screenshot" style="color: #dcbd2f;margin-right: 5px;"></span>NUFinder</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#">Home</a>
</li>
<li class="dropdown" id="step-two">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Report <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="pages/reportItem.html">Report Found Items</a></li>
</ul>
</li>
<li class="dropdown" id="step-three">
<a href="pages/search.html">Search Item</a>
</li>
<li class="dropdown">
<a href="pages/userStories.html">User Stories</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">About <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href ="pages/feedback.html">Feedback</a></li>
<li role="separator" class="divider"></li>
<li><a href ="pages/contactus.html">Contact Us</a></li>
</ul>
</li>
<li class="dropdown">
<a href="pages/userRegistration.html">Register</a>
</li>
</ul>
<button id='loginButton' class="btn btn-default pull-right" style="margin-top: 8px;color: #44b4dc;" data-toggle="modal" data-target="#loginModal" data-ng-show="!loggedInUserUID">Login</button>
<button id="tourBtn" class="btn pull-right" style="margin-top: 8px;color: #000;margin-right: 10px;background-color: #dcbd2f;">Take Tour</button>
<button id='logoutButton' class="btn pull-right" style="margin-top: 8px;color: #000;margin-right: 10px;background-color: #dcbd2f;" data-ng-click="signoutEmailUser();" data-ng-show="loggedInUserUID">Logout
</button>
</div>
</div>
</nav>
<!-- Navbar Ends-->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img class="first-slide" src="images/carousel/lost-and-found-1.jpg" alt="First slide">
<div class="container">
<div class="carousel-caption" style="color:white;">
<h1>Lost an important belonging?</h1>
<p>Our website can help you find it! Make use of our extensive resources to get back your lost belongings</p>
<p><a class="btn btn-lg btn-primary" href="pages/userRegistration.html" role="button">Join us today</a></p>
</div>
</div>
</div>
<div class="item">
<img class="second-slide" src="images/carousel/lost-and-found-2.jpg" alt="Second slide">
<div class="container">
<div class="carousel-caption" style="color:white;">
<h1>Found an item somewhere?</h1>
<p>Find out how our website can make it possible to unite the item with its owner ! All without any hassle to you</p>
<p><a class="btn btn-lg btn-primary" href="pages/reportItem.html" role="button">Report now</a></p>
</div>
</div>
</div>
<div class="item">
<img class="third-slide" src="images/carousel/lost-and-found-4.jpg" alt="Third slide">
<div class="container">
<div class="carousel-caption">
<h1>Read the success stories!</h1>
<p>We have successfully united several owners with their lost belongings, all through the help of our website. Several responsible citizens deserve the credit !</p>
<p><a class="btn btn-lg btn-primary" href="pages/userStories.html" role="button">Browse stories</a></p>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="row text-center" style="margin: 25px;">
<div class="span12">
<h2 class="section-header hero-title">
<span style="font-size: 50px; color: #A51C30;font-family: Georgia, serif;">NUFinder</span>
</h2>
<div class="intro-text">
<p style="font-size: 25px; font-family: Georgia, serif;">
Northeastern Campus's most helpful and innovative website for students and staff alike. We aim to help the Northeastern community by locating and reporting all types of lost items ranging from Husky cards to laptops, keys to backpacks and even pets, such as cats and dogs.</p>
<p>
</p>
<p style="text-align: center;">
</p>
</div>
</div>
</div>
<div class="row" style="margin: 20px;border: 1px solid;background-color: #fff;" id="recentActivities">
<div class="panel with-nav-tabs panel-default" style="border: none;background-color: #fff;">
<div class="panel-heading" style="border: none;background-color: #fff;">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab1default" data-toggle="tab">Recently Found</a></li>
<li><a href="#tab2default" data-toggle="tab">Recently Lost</a></li>
<li><a href="#tab3default" data-toggle="tab">User Stories</a></li>
</ul>
</div>
<div class="panel-body">
<div class="tab-content">
<div class="tab-pane fade in active" id="tab1default">
<div>
<div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Dell Laptop</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span> Snell Library</strong>
</div>
<img src="images/items/dell.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">iPhone 4s</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span> Dana Hall</strong>
</div>
<img src="images/items/iphone.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Wallet</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span> Curry Center</strong>
</div>
<img src="images/items/wallet.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Wireless earphones</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span> Shillman Hall</strong>
</div>
<img src="images/items/headphones.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Charlie card</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span> Ell Hall</strong>
</div>
<img src="images/items/charlie.jpg">
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Husky card</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span> Ruggles Station</strong>
</div>
<img src="images/items/husky.png">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="tab2default">
<div>
<div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">iPad Air</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span>Krentzman Quad</strong>
</div>
<img src="images/items/ipad.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Sony DigiCam</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span>Richards Hall</strong>
</div>
<img src="images/items/sony.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Coffee Mug</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span>Marino Center</strong>
</div>
<img src="images/items/coffeemug.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Notes and Pen</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span>Ryder Hall</strong>
</div>
<img src="images/items/notebooks.jpg" >
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Debit Card</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span>Curry Center</strong>
</div>
<img src="images/items/debitcard.jpg">
</div>
<div class="col-sm-6 col-md-4 col-lg-2" style="margin-bottom: 20px;text-align: center;">
<div>
<p style="color: #337ab7; margin-bottom: 0px;">Snow Jacket</p>
<strong style="font-size: 12px;"><span style="color: #ff0000" class="glyphicon glyphicon-map-marker"></span>Snell Library</strong>
</div>
<img src="images/items/jacket.jpg">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="tab3default">
<div class="row" style="padding: 20px;">
<div class="col-md-12 col-sm-12 col-lg-12">
<div class="panel panel-info">
<div class="panel-heading" style="background-color: #000; color: #fff;">
<h3 class="panel-title" style="color: #44b4dc;">
<span class="glyphicon glyphicon-list-alt"></span> <span style="margin-left: 5px;">Recent Posts</span>
</h3>
</div>
<div class="panel-body">
<ul class="media-list">
<li class="media">
<div class="media-body">
<h4 class="media-heading">
<a href="#" class="text-info">
John Doe
</a>
</h4>
<p class="margin-top-10 margin-bottom-20">
<span class="glyphicon glyphicon-comment" style="color: #44b4dc;"></span> I recovered my lost documents. This site works wonderfully well.
</p>
</div>
</li>
<li class="media">
<div class="media-body">
<h4 class="media-heading">
<a href="#" class="text-info">
Sherlock Holmes
</a>
</h4>
<p class="margin-top-10 margin-bottom-20">
<span class="glyphicon glyphicon-comment" style="color: #44b4dc;"></span> This site works as good as my intelligence!
</p>
</div>
</li>
<li class="media">
<div class="media-body">
<h4 class="media-heading">
<a href="#" class="text-info">
John Moriarity
</a>
</h4>
<p class="margin-top-10 margin-bottom-20">
<span class="glyphicon glyphicon-comment" style="color: #44b4dc;"></span> Found my precious phone through this site. Awesome experience. Great job!
</p>
</div>
</li>
</ul>
<a href="pages/userStories.html" class="btn btn-default btn-block">More Blog Posts »</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End of your code -->
<footer class="footer-distributed">
<div class="footer-left">
<h3>NU<span>Finder</span></h3>
<p class="footer-links">
<a href="#">Home</a>
·
<a href="pages/userStories.html">Testimonials</a>
·
<a href="pages/contactus.html">Contact</a>
</p>
<p class="footer-company-name">NUFinder © 2016</p>
</div>
<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p><span>360 Huntington Ave</span> Boston, MA 02115</p>
</div>
<div>
<i class="fa fa-phone"></i>
<p>+1 8575 2206 12</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about">
<span>About the company</span>
We at NUFinder, aim to help the Northeastern community by locating and reporting all types of lost items.
</p>
<div class="footer-icons">
<a href="https://www.facebook.com/"><img src="images/facebook.png"></a>
<a href="https://www.twitter.com"><img src="images/twitter.png"></a>
<a href="https://www.linkedin.com"><img src="images/linkedin.png"></a>
<a href="https://www.github.io"><img src="images/github.png"></a>
</div>
</div>
</footer>
<!-- Login Modal Starts-->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Login to <span style="color:#dcbd2f">NUFinder</span></h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-6">
<div class="well">
<form id="loginNUFinderForm">
<div class="form-group">
<label for="username" class="control-label" required>Username</label>
<input type="email" class="form-control" id="username" name="username" required="" title="Please enter you username" placeholder="[email protected]" data-ng-model="emailLogin">
<span class="help-block"></span>
</div>
<div class="form-group">
<label for="password" class="control-label" required>Password</label>
<input type="password" class="form-control" id="password" name="password" required="" title="Please enter your password" data-ng-model="passLogin">
</div>
<div id="loginError" class="alert alert-error hide">Wrong username or password</div>
</form>
<button type="submit" class="btn btn-success btn-block" data-ng-click="loginEmailUser();">Login</button>
<button type="submit" class="btn btn-success btn-block" data-ng-click="loginWithGoogle();" data-dismiss='modal'>Google Login</button>
</div>
</div>
<div class="col-xs-6">
<div class="well">
<form id="loginNUFinderForm">
<div class="form-group">
<p class="lead">Register now for <span class="text-success">FREE</span></p>
<ul class="list-unstyled" style="line-height: 2">
<li><span class="glyphicon glyphicon-ok text-success"></span> See all your posts</li>
<li><span class="glyphicon glyphicon-ok text-success"></span> Create new post</li>
<li><span class="glyphicon glyphicon-ok text-success"></span> Search all latest posts</li>
<li><span class="glyphicon glyphicon-ok text-success"></span> Use location for posts</li>
<li><span class="glyphicon glyphicon-ok text-success"></span> Upload images of items</li>
<li><span class="glyphicon glyphicon-ok text-success"></span> Find your lost items! </li>
</ul>
</div>
<button type="submit" class="btn btn-info btn-block" onclick="window.location='pages/userRegistration.html'">Register for NUFinder</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Login Modal Ends-->
<script type="text/javascript">
var tour = new Tour({name: "sanket",
steps: [
{
element: "#step-one",
placement: "auto",
title: "Step 1",
content: "Visit NUFinder",
},
{
element: "#step-two",
placement: "auto",
title: "Step 2",
content: "Report a found item!"
},
{
element: "#step-three",
placement: "auto",
title: "Step 3",
content: "Search a lost item!"
}
],
storage: window.localStorage,
backdrop: true
});
tour.init();
$("#tourBtn").click(function(){
tour.restart();
});
var app = angular.module('myApp', ['firebase']);
app.controller('nuFinderController', function($scope,$timeout) {
$scope.loggedInUserUID='';
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
$timeout(function(){
$scope.loggedInUserUID = user.uid;
console.log('loggedInUserUID in onAuthStateChanged: '+ $scope.loggedInUserUID);
},1);
} else {
// No user is signed in.
$timeout(function(){
$scope.loggedInUserUID = user;
},1);
}
});
var user = firebase.auth().currentUser;
var name, email, photoUrl, uid;
if (user != null) {
name = user.displayName;
email = user.email;
photoUrl = user.photoURL;
uid = user.uid;
}
$scope.createNewEmailUser=function() {
firebase.auth().createUserWithEmailAndPassword($scope.emailRegister, $scope.passRegister)
.then(function(user){
$('#loginModal').modal('hide');
})
.catch(function(error){
var errorCode = error.code;
var errorMessage = error.message;
});
}
$scope.loginEmailUser=function() {
firebase.auth().signInWithEmailAndPassword($scope.emailLogin, $scope.passLogin)
.then(function(user){
$('#loginModal').modal('hide');
})
.catch(function(error){
var errorCode = error.code;
var errorMessage = error.message;
});
}
$scope.loginWithGoogle = function() {
// Instantiate the Google authentication provider
var provider = new firebase.auth.GoogleAuthProvider();
// Handle the authentication request using the Popup method
firebase.auth().signInWithPopup(provider)
.then(function(result) {
var user = result.user;
$('#loginModal').modal('hide');
})
.catch(function(error) {
});
}
$scope.signoutEmailUser=function(){
firebase.auth().signOut().then(function() {
$('#loginModal').modal('show');
}, function(error) {
});
}
});
</script>
</body>
</html>