Skip to content

Commit 817622d

Browse files
committed
Adding modal window example file
1 parent 12cd9e8 commit 817622d

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

js/jquery.storelocator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ $.fn.storeLocator = function(options) {
2121
'listColor1' : 'ffffff',
2222
'listColor2' : 'eeeeee',
2323
'bounceMarker' : true,
24-
'slideMap' : false,
25-
'modalWindow' : true
24+
'slideMap' : true,
25+
'modalWindow' : false
2626
}, options);
2727

2828
return this.each(function() {

js/jquery.storelocator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modal-example.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Map Example 2 - Modal Window</title>
5+
<meta charset="UTF-8">
6+
<link rel="stylesheet" type="text/css" href="css/map.css" />
7+
</head>
8+
9+
<body>
10+
11+
<div id="store-locator-container">
12+
<div id="page-header">
13+
<h1>Using Chipotle as an Example</h1>
14+
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
15+
You can use just the city as the address - ex: Edina, MN.</p>
16+
</div>
17+
18+
<div id="form-container">
19+
<form id="user-location" method="post" action="#">
20+
<div id="form-input">
21+
<label for="address">Enter Address or Zip Code:</label>
22+
<input type="text" id="address" name="address" />
23+
</div>
24+
25+
<div id="submit-btn"><input type="image" id="submit" name="submit" src="images/submit.jpg" alt="Submit" /></div>
26+
</form>
27+
</div>
28+
29+
<div id="map-container">
30+
<div id="loc-list">
31+
<ul id="list"></ul>
32+
</div>
33+
<div id="map"></div>
34+
</div>
35+
</div>
36+
37+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
38+
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
39+
<script src="js/jquery.storelocator.js"></script>
40+
<script>
41+
$(function() {
42+
$('#map-container').storeLocator({'slideMap': false, 'modalWindow': true});
43+
});
44+
</script>
45+
46+
</body>
47+
</html>

0 commit comments

Comments
 (0)