Created
July 31, 2017 03:00
-
-
Save ab/6be1fe0ccb1dedc41b7356fbf67d3780 to your computer and use it in GitHub Desktop.
Dead pixel test page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Pixel test page</title> | |
</head> | |
<body> | |
<div id="nav"> | |
<a href="?black" style="color:black">black</a> | |
<a href="?white" style="color:white; background: gray">white</a> | |
<a href="?red" style="color:red">red</a> | |
<a href="?green" style="color:green">green</a> | |
<a href="?blue" style="color:blue">blue</a> | |
<a href="?yellow" style="color:yellow">yellow</a> | |
<a href="?magenta" style="color:magenta">magenta</a> | |
<a href="?cyan" style="color:cyan">cyan</a> | |
<a href="?gray" style="color:gray">gray</a> | |
</div> | |
<script type="text/javascript"> | |
if (window.location.search) { | |
var color = window.location.search.substr(1); | |
console.log("setting color to", color); | |
document.body.bgColor = color; | |
document.getElementById("nav").style.display = "none"; | |
document.title = color + " pixel test page"; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment