Permalink
Browse files

New style call to WhichBrowser

  • Loading branch information...
NielsLeenheer committed Nov 19, 2013
1 parent 922ae83 commit d3981c98195cdc1adce2040b265bb5eb22281a9a
Showing with 25 additions and 3 deletions.
  1. +8 −1 backend/templates/browser.html
  2. +8 −1 index.html
  3. +9 −1 qr.html
@@ -18,7 +18,14 @@
<script src='/scripts/engine.js' type='text/javascript'></script>
<script src='/scripts/reporting.js' type='text/javascript'></script>
- <script src='http://api.whichbrowser.net/rel/detect.js?k=78ed279e82c387242d3d65792a13191b'></script>
+ <script>
+ (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;
+ e|='getBoxObjectFor' in d || 'mozInnerScreenX' in w?8:0;e|=('WebKitCSSMatrix' in w||'WebKitPoint' in w||'webkitStorageInfo' in w||'webkitURL' in w)?16:0;
+ 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;
+ 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;
+ 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');
+ s.src='http://api.whichbrowser.net/dev/detect.js?' + p.join('&');d.getElementsByTagName('head')[0].appendChild(s);})();
+ </script>
<link rel="icon" href="/images/icon.png">
<link rel="apple-touch-icon" href="/images/button.png">
View
@@ -20,7 +20,14 @@
<script src='/scripts/engine.js' type='text/javascript'></script>
<script src='/scripts/data.js' type='text/javascript'></script>
- <script src='http://api.whichbrowser.net/dev/detect.js?k=78ed279e82c387242d3d65792a13191b'></script>
+ <script>
+ (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;
+ e|='getBoxObjectFor' in d || 'mozInnerScreenX' in w?8:0;e|=('WebKitCSSMatrix' in w||'WebKitPoint' in w||'webkitStorageInfo' in w||'webkitURL' in w)?16:0;
+ 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;
+ 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;
+ 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');
+ s.src='http://api.whichbrowser.net/dev/detect.js?' + p.join('&');d.getElementsByTagName('head')[0].appendChild(s);})();
+ </script>
<link rel="icon" href="/images/icon.png">
<link rel="apple-touch-icon" href="/images/button.png">
View
10 qr.html
@@ -36,7 +36,15 @@
</style>
<script src='/scripts/engine.js' type='text/javascript'></script>
- <script src='http://api.whichbrowser.net/dev/detect.js?k=78ed279e82c387242d3d65792a13191b'></script>
+
+ <script>
+ (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;
+ e|='getBoxObjectFor' in d || 'mozInnerScreenX' in w?8:0;e|=('WebKitCSSMatrix' in w||'WebKitPoint' in w||'webkitStorageInfo' in w||'webkitURL' in w)?16:0;
+ 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;
+ 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;
+ 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');
+ s.src='http://api.whichbrowser.net/dev/detect.js?' + p.join('&');d.getElementsByTagName('head')[0].appendChild(s);})();
+ </script>
</head>

0 comments on commit d3981c9

Please sign in to comment.