-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (112 loc) · 6.11 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
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<title>Private Practice</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="bower_components/css-spinners/css/spinner/spinner.css" type="text/css">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Alfa+Slab+One' type='text/css'>
<!-- Handlebars template for the InfoWindows -->
<script id="infowindow-template" type="text/x-handlebars-template">
<div class="row">
<div class="col-md-6 doctor-photo">
<img class="img-circle img-responsive" src="{{profilePicture}}" alt="Profile Photo for {{name}}">
</div>
<div class="col-md-6 col-sm-12">
<div><strong>{{name}}</strong></div>
<div class="doctor-address">{{address}}</div>
<div><a href="{{attributionUrl}}" target="_blank">View Full Profile</a></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p class="doctor-bio">{{bio}}</p>
</div>
</div>
<div class="row">
<div class="col-md-12">
<a target="_blank" href="https://betterdoctor.com">Powered By BetterDoctor</a>
</div>
</div>
</script>
</head>
<body>
<!-- Menu Panel -->
<div class="panel panel-default menu">
<div class="panel-heading">
<div class="input-group input-group-sm">
<input type="text" data-bind="textInput: locationFilter" class="form-control ns-control" placeholder="Filter Locations">
<span class="input-group-btn">
<button class="btn btn-ns-default"
data-bind="click: updateShowLocations"
type="button">
<i class="glyphicon glyphicon-chevron-up"
data-bind="css: { 'glyphicon-chevron-up': showLocations(), 'glyphicon-chevron-down': !showLocations()}"></i>
</button>
</span>
</div>
<p>
<img data-bind="click: showHome" src="img/my-location.png" class="pointer" alt="My Location">
<span data-bind="text: address"></span>
<span data-bind="visible: currentWeather().length > 0">(<span data-bind="text: currentWeather"></span>°)</span>
</p>
<div class="radio">
<a href="#" data-bind="click: updateShowWelcome">Change Address</a>
<label>
<input type="radio" name="docGender" value="male" data-bind="checked: doctorGender">Male
</label>
<label>
<input type="radio" name="docGender" value="female" data-bind="checked: doctorGender">Female
</label>
<label>
<input type="radio" name="docGender" value="both" data-bind="checked: doctorGender">Both
</label>
</div>
</div>
<div class="panel-body locations-panel" data-bind="foreach: filteredLocations, css: { hide: !showLocations() }">
<div class="location pointer" data-bind="click: $parent.selectLocation, css: { 'location-selected': $parent.isLocationSelected($data.id) }">
<div><strong data-bind="text: $data.name"></strong></div>
<span data-bind="text: $data.address"></span> - <em data-bind="text: $data.distance"></em> mi
</div>
</div>
</div>
<!-- Main application screen -->
<div id="welcomeScreen" class="welcome-screen" data-bind="css: { 'hide-welcome-screen': !showWelcome(), 'show-welcome-screen': showWelcome() }">
<div id="copy-and-address" class="welcome-content" data-bind="visible: !hasPossibleLocations()">
<div><h1>Private Practice</h1></div>
<p>Let us help you find a doctor near you!</p>
<p>Let's get started by entering your address below:</p>
<div class="form-group">
<div id='addressForm'>
<input class="form-control"
id="address"
data-bind="disable: isLoading()"
placeholder="where to search">
<div class="text-center">
<p data-bind="text: message, css: { 'error': isError }"></p>
<button type="submit" class="btn btn-ns-default btn-ns-submit" data-bind="click: submitAddress, disable: isLoading()">
Submit
</button>
</div>
<div class="text-center" data-bind="visible: isLoading()">
<div class="spinner-loader"></div>
</div>
</div>
</div>
</div>
</div>
<!-- The google map will be loaded into the div below -->
<div id="map" class="map"></div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/handlebars/handlebars.min.js"></script>
<script src="bower_components/q/q.js"></script>
<script src="js/vendor/knockout-3.3.0.js"></script>
<script src="js/mapapi.js"></script>
<script src="js/api.js"></script>
<script src="js/app.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBFNVE7q2V_SndbU3tHKsxX8gJu7fQeoKQ&callback=mapApi.initMap&libraries=places" async defer></script>
</body>
</html>