-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (80 loc) · 3.25 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
<!DOCTYPE html>
<html lang="en">
<head lang="en">
<meta charset="UTF-8">
<title>Reputation Loop</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="icon" type="image/png" href="img/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="img/favicon-16x16.png" sizes="16x16" />
<!-- add styles -->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<!-- add javascript -->
<script src="js/angular.js"></script>
<script src="js/angular-sanitize.min.js"></script>
<script src="js/ui-bootstrap-tpls-0.13.0.js"></script>
<script src="js/app.js"></script>
<script src="https://maps.googleapis.com/maps/api/js"></script>
</head>
<body ng-app="myApp">
<header>
<nav role = "navigation" class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">It's Morry</a>
</div>
</div>
</nav>
</header>
<!-- Business Section -->
<business></business>
<!-- Review Section -->
<reviews></reviews>
<footer>
<div class="container">
<div class="text-right">
<div>Icons made by <a href="http://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a></div>
</div>
</div>
</footer>
<!-- Google Map -->
<script>
function initialize() {
// Convert location to GPS coordinates
var geocoder = new google.maps.Geocoder();
var lat=lng=0.0000;
var address = "509 Olive Way, Seattle, Washington 98010";
if (geocoder) {
geocoder.geocode({ 'address': address }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
lat=results[0].geometry.location.lat();
lng=results[0].geometry.location.lng();
var mapProp = {
center:new google.maps.LatLng(lat,lng),
zoom:12,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("map_canvas"), mapProp);
var marker=new google.maps.Marker({
position:new google.maps.LatLng(lat,lng),
title:'Click to zoom'
});
marker.setMap(map);
// Zoom to 9 when clicking on marker
google.maps.event.addListener(marker,'click',function() {
var infowindow = new google.maps.InfoWindow({
content:"509 Olive Way<br>Seattle, Washington 98010"
});
infowindow.open(map,marker);
map.setZoom(15);
// map.setCenter(marker.getPosition());
});
}
});
}
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</body>
</html>