Skip to content

Instantly share code, notes, and snippets.

@ab
Created July 31, 2017 03:00
Show Gist options
  • Save ab/6be1fe0ccb1dedc41b7356fbf67d3780 to your computer and use it in GitHub Desktop.
Save ab/6be1fe0ccb1dedc41b7356fbf67d3780 to your computer and use it in GitHub Desktop.
Dead pixel test page
<!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