|
17 | 17 | <script src='/scripts/9/engine.js' type='text/javascript'></script> |
18 | 18 | <script src='/scripts/9/data.js' type='text/javascript'></script> |
19 | 19 |
|
20 | | - <script> |
21 | | - (function(){var p=[],w=window,d=document,e=f=0;p.push('ua='+encodeURIComponent(navigator.userAgent));e|=w.ActiveXObject?1:0;e|=w.opera?2:0;e|=w.chrome?4:0; |
22 | | - e|='getBoxObjectFor' in d || 'mozInnerScreenX' in w?8:0;e|=('WebKitCSSMatrix' in w||'WebKitPoint' in w||'webkitStorageInfo' in w||'webkitURL' in w)?16:0; |
23 | | - e|=(e&16&&({}.toString).toString().indexOf("\n")===-1)?32:0;p.push('e='+e);f|='sandbox' in d.createElement('iframe')?1:0;f|='WebSocket' in w?2:0; |
24 | | - f|=w.Worker?4:0;f|=w.applicationCache?8:0;f|=w.history && history.pushState?16:0;f|=d.documentElement.webkitRequestFullScreen?32:0;f|='FileReader' in w?64:0; |
25 | | - p.push('f='+f);p.push('r='+Math.random().toString(36).substring(7));p.push('w='+screen.width);p.push('h='+screen.height);var s=d.createElement('script'); |
26 | | - s.src='//api.whichbrowser.net/rel/detect.js?' + p.join('&');d.getElementsByTagName('head')[0].appendChild(s);})(); |
27 | | - </script> |
28 | | - |
29 | 20 | <meta name="application-name" content="HTML5test"/> |
30 | 21 |
|
31 | 22 | <link rel="apple-touch-icon" sizes="57x57" href="/images/icons/apple-touch-icon-57x57.png" /> |
@@ -194,20 +185,6 @@ <h3>Help us improve HTML5 test by donating</h3> |
194 | 185 | <script> |
195 | 186 | <!-- |
196 | 187 |
|
197 | | - |
198 | | - function waitForWhichBrowser(cb) { |
199 | | - var callback = cb; |
200 | | - |
201 | | - function wait() { |
202 | | - if (typeof WhichBrowser == 'undefined') |
203 | | - window.setTimeout(wait, 100) |
204 | | - else |
205 | | - callback(); |
206 | | - } |
207 | | - |
208 | | - wait(); |
209 | | - } |
210 | | - |
211 | 188 | function submit(method, payload) { |
212 | 189 | var httpRequest; |
213 | 190 | if (window.XMLHttpRequest) { |
@@ -252,9 +229,8 @@ <h3>Help us improve HTML5 test by donating</h3> |
252 | 229 |
|
253 | 230 |
|
254 | 231 |
|
255 | | - |
256 | | - |
257 | | - waitForWhichBrowser(function() { |
| 232 | + |
| 233 | + loadWhichBrowser(function() { |
258 | 234 |
|
259 | 235 | Browsers = new WhichBrowser({ |
260 | 236 | useFeatures: true, |
|
0 commit comments