Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57e7bab
commit 8115f74
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,11 @@ | |||
// Rich Jones of Gun.io, public domain. Fork me, please! http://github.com/Miserlou/ | // Rich Jones of Gun.io, public domain. Fork me, please! http://github.com/Miserlou/ | ||
now = new Date(); | var now = new Date(); | ||
|
|
||
if (now.getDate() == 18 && now.getMonth() == 0 && now.getFullYear() == 2012) { | if (now.getDate() == 18 && now.getMonth() == 0 && now.getFullYear() == 2012) { | ||
|
|
||
$(document).ready(function() { | window.onload = function(){ | ||
$('body').css('background', '#000000'); | var oBody = document.getElementsByTagName('body')[0]; | ||
$('body').css('text-align', 'center'); | oBody.style.cssText = "background: #000000; text-align: center; color: #111; font: 2.2em Helvetica; vertical-align: middle"; | ||
$('body').css('color', '#111111'); | oBody.innerHTML = '<div style="width: 960px; margin: 0 auto;"><br /><br />This website is..<br /> <br /><div style="color: #222222">BLACKED OUT!</div><br />..in protest of <a href="https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act" target="_blank" style="color: #220022">pending</a> <a href="https://en.wikipedia.org/wiki/PROTECT_IP_Act" target="_blank" style="color: #220022">legislation</a> which threatens the freedoms of websites like this one and the freedoms of the people who use them.<br /><br />Please <a href="http://americancensorship.org/" target="_blank" style="color: #220022">help protect our free speech</a> against the corporate and political interests which seek to take them away!<br /><br />(And don\'t worry, we\'ll be back in business tomorrow!)</div>'; | ||
$('body').css('font-family','Helvetica'); | } | ||
$('body').css('font-size','2.2em'); | |||
$('body').css('vertical-align','middle'); | |||
$('body').html('<div style="width: 960px; margin: 0 auto;"><br /><br />This website is..<br /> <br /><div style="color: #222222">BLACKED OUT!</div><br />..in protest of <a href="https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act" target="_blank" style="color: #220022">pending</a> <a href="https://en.wikipedia.org/wiki/PROTECT_IP_Act" target="_blank" style="color: #220022">legislation</a> which threatens the freedoms of websites like this one and the freedoms of the people who use them.<br /><br />Please <a href="http://americancensorship.org/" target="_blank" style="color: #220022">help protect our free speech</a> against the corporate and political interests which seek to take them away!<br /><br />(And don\'t worry, we\'ll be back in business tomorrow!)</div>'); | |||
}); | |||
} | } |