skip color check on page load
This commit is contained in:
parent
e001115628
commit
2727f55a2b
12
index.html
12
index.html
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user