-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-1.html
More file actions
153 lines (146 loc) · 5.43 KB
/
index-1.html
File metadata and controls
153 lines (146 loc) · 5.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>About Us</title>
<meta charset="utf-8">
<meta name = "format-detection" content = "telephone=no" />
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/grid.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery.js"></script>
<script src="js/jquery-migrate-1.2.1.js"></script>
<script src="js/jquery.stellar.js"></script>
<script src="js/script.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDQf4f8pMlnmHj__IkX_fKLcjRL5VtGMTE&signed_in=true&libraries=geometry&sensor=false"
async defer></script>
<script src="https://cdn.firebase.com/js/client/2.3.1/firebase.js"></script>
<script src = "js/fire_base_constants.js"></script>
<script src = "js/dbAPI.js"></script>
<script src="js/login.js"></script>
<script>
checkSession();
</script>
<script src="js/match-walks.js"></script>
<!--[if (gt IE 9)|!(IE)]><!-->
<script src="js/wow.js"></script>
<script>
$(document).ready(function () {
if ($('html').hasClass('desktop')) {
new WOW().init();
}
});
</script>
<!--<![endif]-->
<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
<img src="images/ie8-panel/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
<![endif]-->
</head>
<body class="index-1">
<!--==============================header=================================-->
<header id="header">
<div id="stuck_container">
<div class="container">
<div class="row">
<div class="grid_12">
<h1><a href="index.html">WalkPool</a><span>You can walk with me</span></h1>
<nav>
<ul class="sf-menu">
<li><a href="index.html">Home</a>
</li>
<li class="current"><a href="index-1.html">Share a Walk</a></li>
<li ><a href="index-2.html">Plan a Walk</a></li>
<li><a href="index-5.html">Notifications</a></li>
<li ><a href="index-4.html">Contact Us</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header>
<!--=======content================================-->
<section id="content">
<div class="full-width-container block-1">
<div class="container">
<div class="row">
<div class="grid_12">
<header>
<h2><span>Share a walk</span></h2>
</header>
</div>
</div>
<table class="sticky-enabled" style="margin: 0px; width: 100%;">
<thead>
<tr>
<th align="center" bgcolor="#31bc86" colspan=4 color="white" >Invite a friend for a walk!</th>
</tr>
</thead>
<tbody id="row12">
</tbody>
</table>
</div>
</div>
</section>
<script type="text/javascript">
/*
var array = [{"EventID":"0","UID":"facebook:10207308437885698","Source":{"Latitude":36.00672199999999,"Longitude":-78.93727969999998},"Destination":{"Latitude":36.00415410000001,"Longitude":-78.93949309999999},"ArrivingTime":"04/11/2015 06:12:27","Recurring":1},
{"EventID":"1","UID":"facebook:10207308437885698","Source":{"Latitude":36.00672199999999,"Longitude":-78.93727969999998},"Destination":{"Latitude":36.00415410000001,"Longitude":-78.93949309999999},"ArrivingTime":"04/11/2015 06:12:27","Recurring":1}];
//array = getRequest();
//array =[];
console.log(array.length);
if(array.length == 0)
{
$("#row12").append('<tr i align=center><td class=user-name >'+'No Matching Routes Found'+'</td></tr>');
}
else {
for(var i =0;i<(array.length-1);i+=2)
{
$("#row12").append('<tr i align=center><td class=user-name >'+array[i].EventID+'</td><td class=user-name >'+array[i+1].EventID+'</td><td> <button type="button" onclick=createWalkRequest('+array[i].EventID +','+ array[i+1].EventID+');>Invite</button></td></tr>');
}
}
//console.log(rr);
/*for (var i = 1; i <=10; i++) {
var str = "<tr i align=center><td class=user-name >"+i+"</td></tr>";
$("#row").append(str);
};*/
//alert(pp.name);
</script>
<!--=======footer=================================-->
<script>
$(document).ready(function() {
findClosestWalks(function(array){
for(var i =0;i<(array.length-1);i+=2)
{
var uid = array[i+1].UID;
var eventID = array[i].EventID;
var eventID2 = array[i+1].EventID;
var source_lat = array[i+1].Source.Latitude;
var source_long = array[i+1].Source.Longitude;
var dest_lat = array[i+1].Destination.Latitude;
var dest_long = array[i+1].Destination.Longitude;
var ArrivalTime = array[i+1].ArrivingTime;
get_name_from_uid(uid, function(uname){
$("#row12").append('<tr i align=center><td class=user-name >'+uname+'</td><td>'+source_lat+'</td><td>'+source_long+'</td><td>'+dest_lat+'</td><td>'+dest_long+'</td><td>'+ArrivalTime+'</td><td> <button type="button" onclick=inviteFriend();>Invite</button></td></tr>');
});
}
});
if ($('html').hasClass('desktop')) {
$.stellar({
horizontalScrolling: false,
verticalOffset: 20,
resposive: true,
hideDistantElements: true,
});
}
});
</script>
</body>
</html>