Skip to content

Instantly share code, notes, and snippets.

@llimllib
Created January 17, 2012 00:00
Show Gist options
  • Save llimllib/1623719 to your computer and use it in GitHub Desktop.
Save llimllib/1623719 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Is the Internet Boring Today?</title>
<style>
a {
color: #ddd;
text-decoration: none;
font-family: Arial, sans-serif;
}
a:hover {
text-decoration: underline;
}
a#answer {
color: black;
font-weight: bold;
font-size: 120pt;
}
a#answer:hover {
text-decoration: none;
}
body {
text-align: center;
padding-top: 200px;
margin:0px;
}
div#footer {
position:absolute;
bottom:0;
width:100%;
height:40px; /* Height of the footer */
text-align: center;
}
</style>
</head>
<body>
<a href="http://sopastrike.com" title="Help Stop Censorship" id="answer">
<noscript>NO</noscript>
</a>
<div>
<a href="http://sopastrike.com/" id="link">Help Stop SOPA and PIPA</a>
</div>
<div id="footer">
<a href="http://twitter.com/llimllib" id="footerlink1">@llimllib</a>
<a href="http://twitter.com/J_A_L" id="footerlink2">@J_A_L</a>
</div>
<script type="text/javascript">
function istheinternetboring(debug) {
d = new Date();
var ans = document.getElementById('answer');
if (debug !== undefined || d.getFullYear() == 2012 && d.getMonth() == 0 && d.getDate() == 18) {
ans.innerHTML = "YES";
ans.style.color="white";
document.getElementsByTagName("body")[0].style["background-color"] = "black";
document.getElementById('link').style.color="#333";
document.getElementById('footerlink1').style.color="#333";
document.getElementById('footerlink2').style.color="#333";
} else {
ans.innerHTML = "NO";
}
}
window.onload = function() { istheinternetboring(); };
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28388251-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment