From 8115f7451ff9ecee25d17abf075489e73f164165 Mon Sep 17 00:00:00 2001 From: isometriks Date: Thu, 12 Jan 2012 16:54:23 -0500 Subject: [PATCH] Remove requirement for jQuery. --- blaccupy.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/blaccupy.js b/blaccupy.js index 7212fba..e8a3478 100644 --- a/blaccupy.js +++ b/blaccupy.js @@ -1,15 +1,11 @@ // 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) { - $(document).ready(function() { - $('body').css('background', '#000000'); - $('body').css('text-align', 'center'); - $('body').css('color', '#111111'); - $('body').css('font-family','Helvetica'); - $('body').css('font-size','2.2em'); - $('body').css('vertical-align','middle'); - $('body').html('


This website is..

BLACKED OUT!

..in protest of pending legislation which threatens the freedoms of websites like this one and the freedoms of the people who use them.

Please help protect our free speech against the corporate and political interests which seek to take them away!

(And don\'t worry, we\'ll be back in business tomorrow!)
'); - }); + window.onload = function(){ + var oBody = document.getElementsByTagName('body')[0]; + oBody.style.cssText = "background: #000000; text-align: center; color: #111; font: 2.2em Helvetica; vertical-align: middle"; + oBody.innerHTML = '


This website is..

BLACKED OUT!

..in protest of pending legislation which threatens the freedoms of websites like this one and the freedoms of the people who use them.

Please help protect our free speech against the corporate and political interests which seek to take them away!

(And don\'t worry, we\'ll be back in business tomorrow!)
'; + } }