aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-01-30 18:25:03 -0800
committerJose Antonio Marquez2012-01-30 18:25:03 -0800
commit6dc03672707a91085954359d82c14bd876f85b12 (patch)
treeb213ff3f082341797c59b4643fbcb5e7d50ccbb4 /index.html
parent3b4291c783c4b8fb07f111a240049069277f3c49 (diff)
parent682f895b42863fc36574f04aa930b7d4c9a1c114 (diff)
downloadninja-6dc03672707a91085954359d82c14bd876f85b12.tar.gz
Merge branch 'refs/heads/NinjaInternal' into FileIO
Conflicts: _scss/compass_app_log.txt _scss/imports/scss/_Stage.scss
Diffstat (limited to 'index.html')
-rwxr-xr-xindex.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/index.html b/index.html
index ba2f70f8..f12c9d90 100755
--- a/index.html
+++ b/index.html
@@ -169,11 +169,27 @@
169 169
170 <script type="text/javascript"> 170 <script type="text/javascript">
171 window.onload = function() { 171 window.onload = function() {
172 // Load the version json
173 var req = new XMLHttpRequest();
174 req.open("GET", "versions.json");
175 req.onreadystatechange = (function(req) {
176 return function(event) {
177 if (req.readyState === 4) {
178 if (req.status === 200) {
179 window.ninjaVersion = JSON.parse(req.responseText);
180 } else {
181 console.log("Ninja version file could not be loaded");
182 }
183 }
184 }
185 })(req);
186 req.send();
172 // 187 //
173 var star = document.getElementById('star'); 188 var star = document.getElementById('star');
174 // 189 //
175 njstar(star.getContext("2d")); 190 njstar(star.getContext("2d"));
176 } 191 };
192
177 function njstar (ctx) { 193 function njstar (ctx) {
178 ctx.save(); 194 ctx.save();
179 ctx.translate(0,0); 195 ctx.translate(0,0);