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>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
/*why is this so indented?*/
|
/*why is this so indented?*/
|
||||||
x = document.getElementById("db");
|
//x = document.getElementById("db");
|
||||||
mast = document.getElementById("mast");
|
//mast = document.getElementById("mast");
|
||||||
style = window.getComputedStyle(mast);
|
//style = window.getComputedStyle(mast);
|
||||||
var color = style.getPropertyValue('color');
|
//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
|
//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";
|
document.getElementById("jscanary").className = "js";
|
||||||
bgColor();
|
bgColor();
|
||||||
document.addEventListener("scroll", bgColor);
|
document.addEventListener("scroll", bgColor);
|
||||||
window.addEventListener("resize", bgColor);
|
window.addEventListener("resize", bgColor);
|
||||||
}
|
//}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
(function (i, s, o, g, r, a, m) {
|
(function (i, s, o, g, r, a, m) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user