Skip to content

Commit

Permalink
Remove requirement for jQuery.
Browse files Browse the repository at this point in the history
  • Loading branch information
isometriks committed Jan 12, 2012
1 parent 57e7bab commit 8115f74
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions blaccupy.js
@@ -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>');
});
} }

0 comments on commit 8115f74

Please sign in to comment.