We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[data-code]
1 parent 16de35e commit 9bf803fCopy full SHA for 9bf803f
docs/index.html
@@ -666,5 +666,22 @@
666
const [browser, version] = getBrowser(navigator.userAgent)
667
document.getElementById('your-browser').innerText = browser + " " + version
668
</script>
669
+ <script>
670
+ for(const el of document.querySelectorAll('[data-code]')) {
671
+ let supported = false
672
+ const code = el.getAttribute('data-code')
673
+ try {
674
+ supported = eval(`${code}`)
675
+ } catch (e) {
676
+ supported = false
677
+ }
678
+ Promise.resolve(supported).then((value) => {
679
+ el.setAttribute('data-supported', Boolean(value))
680
+ if (!value && el.hasAttribute('data-transpiled')) {
681
+ if (!value) el.textContent = '**'
682
683
+ })
684
685
+ </script>
686
</body>
687
</html>
0 commit comments