diff options
author | Jose Antonio Marquez | 2012-01-30 18:25:03 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-01-30 18:25:03 -0800 |
commit | 6dc03672707a91085954359d82c14bd876f85b12 (patch) | |
tree | b213ff3f082341797c59b4643fbcb5e7d50ccbb4 /index.html | |
parent | 3b4291c783c4b8fb07f111a240049069277f3c49 (diff) | |
parent | 682f895b42863fc36574f04aa930b7d4c9a1c114 (diff) | |
download | ninja-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-x | index.html | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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); |