-
Notifications
You must be signed in to change notification settings - Fork 1
/
deals.html
58 lines (34 loc) · 1.98 KB
/
deals.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
<!DOCTYPE html>
<html>
<head>
<!-- initialize for google maps -->
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="application.css" />
<title>Geo Located Deals</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<!-- Variable for map, current latitude and longitude -->
<script>var mymap;</script>
<script>var clat; var clng;</script>
<script type="text/Javascript" src="load_api.js"></script>
<script type="text/Javascript" src="geo.js"></script>
</head>
<body onload="initialize()">
<div id="outer-container">
<div id="header">
<h1 style="text-align: center;">GeoLocated Deals</h1>
</div>
<div style="clear: both"></div>
<div id="left-nav">
<h2 color="#ffffff">Click on the Show current location button to get your current location and to get deals near you, click the Deals button.</h2>
<h2>
<button id="drop" onclick="CurrentLocation()">Show current location</button><br />
<button id="load" onclick='loadScript("http://api.groupon.com/v2/deals.json?client_id=7dd6695c43abb73bd81f14bf26d427e4e4990cf5&lat=" + clat + "&lng=" + clng + "&radius=20&show=division,title,smallImageUrl,options&callback=parseDeals")'>Deals</button><br/>
<button id="load" onclick='loadScript("http://api.groupon.com/v2/deals.json?client_id=7dd6695c43abb73bd81f14bf26d427e4e4990cf5&lat=40.714623&lng=-74.006605&radius=20&show=division,title,smallImageUrl,options&callback=parseDeals")'>New York Deals</button><br/>
<button id="load" onclick='loadScript("http://api.groupon.com/v2/deals.json?client_id=7dd6695c43abb73bd81f14bf26d427e4e4990cf5&lat=34.0522222&lng=-118.2427778&radius=20&show=division,title,smallImageUrl,options&callback=parseDeals")'>Los Angeles Deals</button><br/>
</body>
</h2>
</div>
<div id="map"></div>
<div style="clear: both"></div>
</div>
</html>