aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorArmen Kesablyan2012-02-07 16:55:34 -0800
committerArmen Kesablyan2012-02-07 16:55:34 -0800
commit10f0ad4c15f090b2d0d50d11e4c7aaf291e9eb0e (patch)
tree12b31910a3c7c7fa2ee0b26d8aaa611710e139a5 /index.html
parent7f8730c3add146f1ba107e6fc22d1f5a8348ed8b (diff)
parent668510892537eaaeb2e11520831d87b44b2489b7 (diff)
downloadninja-10f0ad4c15f090b2d0d50d11e4c7aaf291e9eb0e.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into text-tool
Conflicts: _scss/compass_app_log.txt css/ninja.css
Diffstat (limited to 'index.html')
-rw-r--r--index.html22
1 files changed, 21 insertions, 1 deletions
diff --git a/index.html b/index.html
index 44f8ec7e..f3018823 100644
--- a/index.html
+++ b/index.html
@@ -168,11 +168,31 @@
168 168
169 <script type="text/javascript"> 169 <script type="text/javascript">
170 window.onload = function() { 170 window.onload = function() {
171 // Check if we are running in Chrome
172 if(navigator.userAgent.toLowerCase().indexOf("chrome") === -1) {
173 window.location = "./redirect.html";
174 }
175 // Load the version json
176 var req = new XMLHttpRequest();
177 req.open("GET", "versions.json");
178 req.onreadystatechange = (function(req) {
179 return function(event) {
180 if (req.readyState === 4) {
181 if (req.status === 200) {
182 window.ninjaVersion = JSON.parse(req.responseText);
183 } else {
184 console.log("Ninja version file could not be loaded");
185 }
186 }
187 }
188 })(req);
189 req.send();
171 // 190 //
172 var star = document.getElementById('star'); 191 var star = document.getElementById('star');
173 // 192 //
174 njstar(star.getContext("2d")); 193 njstar(star.getContext("2d"));
175 } 194 };
195
176 function njstar (ctx) { 196 function njstar (ctx) {
177 ctx.save(); 197 ctx.save();
178 ctx.translate(0,0); 198 ctx.translate(0,0);