-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
76 lines (65 loc) · 2.9 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
<!doctype html>
<html lang="en" ng-app="HoliDice">
<head>
<meta charset="utf-8">
<title>HoliDice</title>
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="bower_components/angularjs-datepicker/src/css/angular-datepicker.css" />
<link rel="stylesheet" href="css/autocomplete-jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angularjs-datepicker/src/js/angular-datepicker.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.js"></script>
<script src="js/secrets.js"></script>
<script src="js/app.js"></script>
<script src="js/holiDiceController.js"></script>
<script src="js/flightSearchFactory.js"></script>
<script src="js/resultsFactory.js"></script>
<script src="js/randomAirportFactory.js"></script>
<script src="js/airportSelection.js"></script>
<script src="js/autocomplete.js"></script>
</head>
<body ng-controller="HoliDiceController as HDCtrl">
<div id="content">
<h1 id="logo">HoliDice</h1>
<form class="form-horizontal" id="input-form">
<div class="ui-widget">
<input id="origin" class="input-box" ng-model="HDCtrl.startLocation"
placeholder="Where do you want to fly from?" />
</div>
<datepicker date-format="yyyy-MM-dd">
<input type="text" class="input-box" ng-model="HDCtrl.depDate"
placeholder="When do you want to leave?" />
</datepicker>
<br>
<datepicker date-format="yyyy-MM-dd">
<input type="text" class="input-box" ng-model="HDCtrl.returnDate"
placeholder="When do you want to return?" />
</datepicker>
<br>
<button class="btn btn-primary" id="searchButton"
ng-click="HDCtrl.doSearch()">Find</button>
</form>
<div class="loading" ng-show="HDCtrl.loading">
<img src="http://www.animatedimages.org/data/media/710/animated-dice-image-0004.gif" alt="dice gif" width="100" /><br>
Loading...
</div>
<div class="all-results" ng-show="HDCtrl.validate">
<div class="journey-results">
<h4 data-ng-bind="HDCtrl.outboundName"></h4>
<p>To:</p>
<h4 data-ng-bind="HDCtrl.inboundName"></h4>
</div>
<br>
<div class="journey-details">
<p>Carrier: <span data-ng-bind="HDCtrl.carrierName"></span></p>
<p>Flight Number: <span data-ng-bind="HDCtrl.flightNumber"></span></p>
<p>Price: <span data-ng-bind="HDCtrl.price"></span></p>
<p>Departure Time: <span data-ng-bind="HDCtrl.departureTime"></span></p>
</div>
<a class="btn btn-primary" ng-href="http://skyscanner.net/transport/flights/{{HDCtrl.buyURL}}">Compare & Book</a>
</div>
</div>
</body>
</html>