Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Try to use local built tiles.js for demo page

  • Loading branch information...
commit 531c4b3b116b185372cd9c62435583f0b83ba0a6 1 parent d776f16
@joelfillmore joelfillmore authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 demos/index.html
View
12 demos/index.html
@@ -4,7 +4,6 @@
<meta charset="utf-8">
<title>Tiles.js Basic Demos</title>
-
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="demo.css" />
@@ -26,7 +25,16 @@
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
- <script src="http://cloud.github.com/downloads/thinkpixellab/tilesjs/tiles.js"></script>
+
+ <script src="../tiles.js"></script>
+ <script type="text/javascript">
+ // fallback to latest version on github if local built version does not exist
+ if (typeof Tiles == 'undefined') {
+ var url = 'http://cloud.github.com/downloads/thinkpixellab/tilesjs/tiles.js';
+ document.write('<' + 'script src="' + url + '"></' + 'script' + '>');
+ }
+ </script>
+
<script src="demo.js"></script>
</head>
<body>
Please sign in to comment.
Something went wrong with that request. Please try again.