Permalink
Browse files

Remove requirement for jQuery.

  • Loading branch information...
1 parent 57e7bab commit 8115f7451ff9ecee25d17abf075489e73f164165 @isometriks isometriks committed Jan 12, 2012
Showing with 6 additions and 10 deletions.
  1. +6 −10 blaccupy.js
View
16 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('<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>');
- });
+ 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 = '<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.