-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (79 loc) · 2.92 KB
/
Copy pathindex.html
File metadata and controls
79 lines (79 loc) · 2.92 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
<!doctype html>
<html>
<head>
<title>Tegan - Google Maps project</title>
<!-- Styles -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link rel="stylesheet" href="styles/style.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Lobster|Raleway" rel="stylesheet">
<!-- Scripts -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDBB5hxZUdxmzG7ZwDq4SvzGmRoaKGs1Gs&libraries=places"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body ng-app="mapApp">
<header>
<div class="container">
<h1>Favorite Places</h1>
</div>
</header>
<div class="content" ng-controller="mapCtrl">
<div class="container">
<p class="themepark__intro">I love to travel and visit different theme parks. Here is a list of all the theme parks I have been lucky enough to visited. Choose different parks using the drop down below.</p>
<div class="row">
<div class="col-md-6">
<select ng-model="park" ng-change="changePark(park)" ng-options="park.name for park in themepark.details"></select>
<h2 class="themepark__title">{{currentpark.name}}</h2>
<p><strong>Country:</strong> {{currentpark.country}}</p>
<p>{{currentpark.description}}</p>
<img class="themepark__image" ng-src="images/{{currentpark.image}}.png">
</div>
<div class="col-md-6">
<div id="map"></div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h2>Find your own favorite place</h2>
<p>Now that I have shared some of my favorite places, where are yours? Where do you like to go?</p>
<div class="row">
<div class="col-4">
<label>Latitude</label>
</div>
<div class="col-8">
<input type="number" name="lat" ng-model="yourlat" ng-change="findYours()">
</div>
</div>
<div class="row">
<div class="col-4">
<label>Longitude</label>
</div>
<div class="col-8">
<input type="number" name="long" ng-model="yourlong" ng-change="findYours()">
</div>
</div>
<div class="row">
<div class="col-4">
<label>Where to visit?</label>
</div>
<div class="col-8">
<input type="text" name="search" ng-model="searchBy" ng-change="findYours()">
</div>
</div>
</div>
<div class="col-md-6">
<div id="yourmap" class="yourplace"></div>
</div>
</div>
</div>
</div>
<footer>
<div class="container">
<p>Written by Tegan Barry</p>
<p><strong>Using:</strong> HTML, CSS, AngularJS, Bootstrap, Karma, Jasmine and angular-google-maps-mock</p>
</div>
</footer>
</body>
</html>