forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.html
41 lines (30 loc) · 1.13 KB
/
output.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<meta http-equiv="refresh" content="0;url=./test/index.html">
<a href="./test/index.html" style="font-size: 80px">this page deprecated.. go to the Test Suite</a>
<script type="dont/run/this">
function _bBeaconComplete(data){
window.console && console.log('beaconComplete',data);
}
window._bTestResults = {};
for (var feat in Modernizr) {
if (/^_/.test(feat)) continue;
if (/input|video|audio/.test(feat) && Modernizr[feat]){
for (var thing in Modernizr[feat]){
_bTestResults[feat + ':' +thing] = Modernizr[feat][thing] ? '1' : '0';
}
} else {
_bTestResults[feat] = Modernizr[feat] ? '1' : '0';
}
}
// Beacon the results to Browserscope.
(function() {
var _bTestKey = 'agt1YS1wcm9maWxlcnINCxIEVGVzdBjg8PMBDA';
var _bScript = document.createElement('script');
_bScript.src = 'http://www.browserscope.org/user/beacon/' + _bTestKey + '?callback=_bBeaconComplete';
_bScript.setAttribute('async', 'true');
var scripts = document.getElementsByTagName('script');
var lastScript = scripts[scripts.length - 1];
lastScript.parentNode.insertBefore(_bScript, lastScript);
})();
</script>