2021-07-04 05:18:21 +03:00
|
|
|
<script src='modernizr.js'></script>
|
|
|
|
<body></body>
|
|
|
|
<script>
|
2021-07-12 18:35:59 +03:00
|
|
|
const report = {};
|
2021-07-04 05:18:21 +03:00
|
|
|
for (const name in Modernizr) {
|
|
|
|
if (name.startsWith('_'))
|
|
|
|
continue;
|
|
|
|
if (['on', 'testAllProps', 'testProp', 'addTest', 'prefixed'].includes(name))
|
|
|
|
continue;
|
|
|
|
let value = Modernizr[name];
|
|
|
|
report[name] = value;
|
|
|
|
}
|
|
|
|
document.body.style.whiteSpace = 'pre';
|
2021-07-12 18:35:59 +03:00
|
|
|
document.body.textContent = JSON.stringify(report, undefined, 4);
|
|
|
|
window.report = JSON.parse(document.body.textContent);
|
|
|
|
</script>
|