aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
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);