skip color check on page load

This commit is contained in:
Chuck Dries 2017-02-14 03:57:09 -07:00
parent e001115628
commit 2727f55a2b

View File

@ -144,16 +144,16 @@
</div>
<script>
/*why is this so indented?*/
x = document.getElementById("db");
mast = document.getElementById("mast");
style = window.getComputedStyle(mast);
var color = style.getPropertyValue('color');
if (color == "rgb(255, 255, 255)") { //we should check that the stylesheet is being applied to avoid making the entire page unreadable
//x = document.getElementById("db");
//mast = document.getElementById("mast");
//style = window.getComputedStyle(mast);
//var color = style.getPropertyValue('color');
//if (color == "rgb(255, 255, 255)") { //we should check that the stylesheet is being applied to avoid making the entire page unreadable
document.getElementById("jscanary").className = "js";
bgColor();
document.addEventListener("scroll", bgColor);
window.addEventListener("resize", bgColor);
}
//}
</script>
<script>
(function (i, s, o, g, r, a, m) {