browser: static usage styling
[sheet.git] / browser.plp
index 8c24298b66c1579ddafde4f3b848af16956e6cf2..3f7b6f865e6c462960bc5c1a21386100d462cd02 100644 (file)
@@ -9,7 +9,7 @@ Html({
        description =>
                "caniuse.",
        keywords => [qw'html css browser feature'],
-       stylesheet => [qw'circus dark mono red'],
+       stylesheet => [qw'circus dark mono red light'],
        data => ['browser-support.inc.pl'],
 });
 
@@ -187,18 +187,6 @@ sub showversions {
 }
 
 :>
-<script>
-var classmatch = / p(\d{2})/;
-Array.forEach(document.getElementsByTagName('TD'), function(val) {
-       var opacity;
-       if (opacity = classmatch.exec(val.className)) {
-               var c = document.defaultView.getComputedStyle(val, null).getPropertyValue('background-color');
-               var o = opacity[1] / 100;
-               val.style.backgroundColor = c.replace(/rgb\((.*)\)/, 'rgba($1, '+o+')');
-               val.style.textShadow = c+' 1px 1px 2px, ' + c+' -1px -1px 2px';
-       }
-});
-</script>
 <hr>
 
 <div class="legend">