-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
142 lines (130 loc) · 5.67 KB
/
index.php
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
<?php include "_include/classes.php"; include "_include/theme/head.php"; ?>
<!-- Intro Section -->
<section id="intro" class="intro-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<br />
<br />
<br />
<h1>BE A HERO.</h1>
<h3>Nearly 1 in 50 people live with paralysis.</h3>
</div>
</div>
</div>
</section>
<div id="atlas" class="anchor"></div>
<!-- Map Section -->
<!-- <div align="center">
<h1>Map</h1> </div> -->
<div class="report"><button class="btn btn-danger btn-block" data-toggle="modal" data-target=".reviewForm">Report Obstruction</button></div>
<section id="map" class="map-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<script>
// Note: This example requires that you consent to location sharing when
// prompted by your browser. If you see the error "The Geolocation service
// failed.", it means you probably did not give permission for the browser to
// locate you.
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 6
});
var infoWindow = new google.maps.InfoWindow({map: map});
// Try HTML5 geolocation.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = {
lat: position.coords.latitude,
lng: position.coords.longitude,
};
$.post( "classes.php", add_lat_long(lat.toString(),lng.toString()) {
alert( "Data Loaded: " + pos);});
infoWindow.setPosition(pos);
infoWindow.setContent('Location found.');
map.setCenter(pos);
}, function() {
handleLocationError(true, infoWindow, map.getCenter());
});
} else {
// Browser doesn't support Geolocation
handleLocationError(false, infoWindow, map.getCenter());
}
}
function handleLocationError(browserHasGeolocation, infoWindow, pos) {
infoWindow.setPosition(pos);
infoWindow.setContent(browserHasGeolocation ?
'Error: The Geolocation service failed.' :
'Error: Your browser doesn\'t support geolocation.');
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCJwwNTTFGz7GqqTQWhZGmrru1ZJcQvtB8&signed_in=true&callback=initMap"
async defer>
</script>
</div>
</div>
</div>
</section>
<!-- Reviews Section -->
<section id="reviews" class="review-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="responsive">
<div>
<div class="review">
<h3>Title</h3><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a><div class="fb-share-button" data-href="http://ec2-54-163-131-112.compute-1.amazonaws.com/#info" data-layout="button"></div>
<p>Content</p>
<p class="posted"> 10:00 @ 2/6/2016</p>
</div>
</div>
<div>
<div class="review">
<h3>Title</h3><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a><div class="fb-share-button" data-href="http://ec2-54-163-131-112.compute-1.amazonaws.com/#info" data-layout="button"></div>
<p>Content</p>
<p class="posted"> 10:00 @ 2/6/2016</p>
</div>
</div>
<div>
<div class="review">
<h3>Title </h3><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a><div class="fb-share-button" data-href="http://ec2-54-163-131-112.compute-1.amazonaws.com/#info" data-layout="button"></div>
<p>Content</p>
<p class="posted"> 10:00 @ 2/6/2016</p>
</div>
</div>
<div>
<div class="review">
<h3>Title </h3><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a><div class="fb-share-button" data-href="http://ec2-54-163-131-112.compute-1.amazonaws.com/#info" data-layout="button"></div>
<p>Content</p>
<p class="posted"> 10:00 @ 2/6/2016</p>
</div>
</div>
<div>
<div class="review">
<h3>Title </h3><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a> <div class="fb-share-button" data-href="http://ec2-54-163-131-112.compute-1.amazonaws.com/#info" data-layout="button"></div>
<p>Content</p>
<p class="posted"> 10:00 @ 2/6/2016</p>
</div>
</div>
</div>
<!-- /.responsive -->
</div>
</div>
</div><br>
</section>
<!-- Info Section -->
<section id="info" class="info-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2>Mission</h2>
<br />
<br />
<h4>The Reeve Foundation is dedicated to curing spinal cord injury by funding innovative research, and improving the quality of life for people living with paralysis through grants, information and advocacy.</h4>
</div>
</div>
</div>
</section>
<?php include "_include/theme/foot.php"; ?>