forked from Integralist/RequireJs-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-googlemaps.html
More file actions
64 lines (57 loc) · 1.89 KB
/
example-googlemaps.html
File metadata and controls
64 lines (57 loc) · 1.89 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
<!doctype html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Require Js</title>
<style type="text/css">
html, body {
margin: 10px;
padding: 0px;
font-family: Georgia;
}
#header {
border: 1px solid red;
background-image: -webkit-linear-gradient(top, white, #c77);
background-image: linear-gradient(top, white, #c77);
background-image: -moz-linear-gradient(top, white, #c77);
background-image: -ms-linear-gradient(top, white, #c77);
padding: 5px;
width: 490px;
font-size: 1.3em;
color: #333;
text-shadow: 1px 1px #ccc;
margin-bottom: 10px;
}
#header div:nth-child(2) { font-family: courier; font-size: 1em; }
#header div:nth-child(3) { font-size: 0.75em; margin-top: 5px; }
#map-canvas {
width: 500px;
height: 600px;
border: 1px solid #999;
box-shadow: 2px 2px 4px #ccc;
}
#search-box {
color: #0BF;
text-shadow: 1px 1px #aaa;
width: 300px;
height: 30px;
font-size: 1.5em;
}
</style>
</head>
<body>
<h1>RequireJS Loading GoogleMaps using (jQuery's) Deferred/Promises API</h1>
<div id="header">
<div id="note">Note: The maps API will load after 5 seconds, but you can search immediately.</div>
<div>Example searches: "nyc", "ca", "tx"</div>
<div>Tip: Refresh to try again</div>
</div>
<div style="position: relative;">
<div id="map-canvas"></div>
<div style="position: absolute; left: 100px; top: 30px;">
<input id="search-box" type="text" placeholder="Search address">
</div>
</div>
<script data-main="Assets/Scripts/example-googlemaps" src="Assets/Scripts/Require.min.js"></script>
</body>
</html>