summaryrefslogtreecommitdiff
path: root/design/templates/archives/map.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2013-04-24 14:11:12 -0400
committerluxagraf <sng@luxagraf.net>2013-04-24 14:11:12 -0400
commitf89e7453c343b8d1e4f50efec9cb331db42ff99e (patch)
tree4d6cfb1323aea48b3225e75b37b0aec63367f380 /design/templates/archives/map.html
parent8e75b46e1ccbd897b32932db4efe0de1f78f60a5 (diff)
changed map to have fallback for CDN hosted scripts
Diffstat (limited to 'design/templates/archives/map.html')
-rw-r--r--design/templates/archives/map.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/design/templates/archives/map.html b/design/templates/archives/map.html
index 76713df..05df67c 100644
--- a/design/templates/archives/map.html
+++ b/design/templates/archives/map.html
@@ -10,10 +10,15 @@ Google Maps code
==============================================#}
{% block extrahead %}
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
- <!--[if lte IE 8]>
- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
- <![endif]-->
- <script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
+ <!--[if lte IE 8]>
+ <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
+ <![endif]-->
+ <script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
+ <script type="text/javascript">
+ if (typeof L === "undefined") {
+ document.write(unescape("%3Cscript src='/media/js/leaflet-0.5/leaflet.js' type='text/javascript'%3E%3C/script%3E"));
+}
+ </script>
<style>
#map-canvas img{ border: none;}