-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathac_index.html
109 lines (87 loc) · 4.53 KB
/
ac_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
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon(s) in the root directory -->
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jquerymobile/1.4.2/jquery.mobile.min.css" />
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/map.css">
<script src="js/vendor/modernizr-2.7.1.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Main Page -->
<div id="main" data-role="page">
<div data-role="header" data-position="fixed">
<h1>Park-Me-Happy</h1>
</div>
<form action="http://mujtaba-test.apigee.net/v1/parkingrisks/postcode/" id="postCodeSearch">
<input type="text" name="postCode" id="postCode" value="" placeholder="Enter Post Code (with no spaces)..."/>
<input type="submit" value="Search" />
</form>
<div id="postCodeResult"></div>
<form action="http://data.police.uk/api/crimes-street/all-crime" id="streetCrime">
<input type="submit" value="Get Police Street Crime Data" />
</form>
<div data-role="content">
<h3></h3>
<a onclick="showSampleCrimeMap()" data-role="button">Show Sample Street Crime Data</a>
</div>
<div data-role="content">
<h3></h3>
<a onclick="showSampleHeatMap()" data-role="button">Show Sample Heatmap Data</a>
</div>
<div data-role="content">
<h3></h3>
<a onclick="getCurrentLocation()" data-role="button">Search Near Me</a>
</div>
<div id="locationerrorpopup" data-role="popup" data-dismissible="true"
class="ui-corner-all">
<div data-role="header">
<h1>Location Error</h1>
</div>
<div id="errorpopuptext" data-role="content">
<p>Error: location services may be turned off</p>
</div>
</div>
<form action="http://mujtaba-test.apigee.net/v1/carparknorwich/content.xml" id="carParkNorwich">
<input type="submit" value="Get Norwich Car Park Data" />
</form>
<div id="result"></div>
<div data-role="footer" data-position="fixed">
<h3></h3>
<a href="about.html" data-role="button" class="ui-btn-right">About</a>
</div>
</div>
<div id="locationerrordialog" data-role="page">
<div data-role="header">
<h1>Location Error</h1>
</div>
<div id="errortext" data-role="content">
<p>Error: location services may be turned off</p>
</div>
</div>
<div data-role="page" id="map-page" data-add-back-btn="true">
<div data-role="header" data-position="fixed">
<h1>Park-Me-Happy Map</h1>
</div>
<div data-role="content" id="map-canvas">
<!-- map loads here... -->
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.0.min.js"><\/script>')</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.2/jquery.mobile.min.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?libraries=visualization&key=AIzaSyDwZEp-H7ZEyr1x4JPerPlfgdxNnn3fzUQ&sensor=true"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!--<script src="http://uk-postcodes.com/postcode/WR141ET.json?callback=?"></script>-->
</body>
</html>