How to participate
<h3>What happened to the design?</h3>
<p>To know more about why styles are disabled on this website visit the
<a href="http://naked.threepixeldrift.com" title="Web Standards Naked Day Host Website">
Annual CSS Naked Day</a> website for more information.</p>
What is going on
This option for those who feel a need to give their visitors a reference as to what's going on. This is not about getting traffic or making money. There are no ads on this site, nor will there ever be. This is about you, the people; getting naked.
Don't think, just strip
Here is a sample PHP function for you
<?php
function is_naked_day($d) {
$start = date('U', mktime(-12, 0, 0, 04, $d, date('Y')));
$end = date('U', mktime(36, 0, 0, 04, $d, date('Y')));
$z = date('Z') * -1;
$now = time() + $z;
if ( $now >= $start && $now <= $end ) {
return true;
}
return false;
}
?>
Use it like this
<head>
...
<?php
if ( is_naked_day(9) ) {
echo '<!-- naked day has no styles -->';
} else {
echo '<link rel="stylesheet" type="text/css" href="styles.css" />';
}
?>
...
</head>
Wait... isn't that 48 hours?
That's correct. CSS Naked Day lasts for one international day. Technically speaking,it will be "April 9th" somewhere in the world for 48 hours. This is to ensure that everyone's website will be publicly nude for the entire world to see at any given time during April 9.
Tools & Plugins
- Jim Auldridge has created a nice PHP Naked Day Timer Class that has fun methods that can determine if Naked Day is coming soon, if it's over, is it now, how long until.... Thanks Jim. Very fun. Check out the API doc as well.
- Aja's updated most excellent Wordpress Naked Day Plugin
- Tore Darell has provided a simple Rails Helper to go naked for 48 hours
- Josh Stodola has created an ASP.net Naked Day Class
- Reto has created a Naked Day plugin for the LifeType Blogging platform
- Tante shows us how to implement a snippet for Serendipity
- Paul Anthony has a classic ASP snippet of code
- Sasha Gerrand gives us a great Perl subroutine
- Jeff Triplett gives us a nice Django Snippet for you Python folk.
- Drupal users, get the module!
- And if all else fails, Marat threw together a nakedDay.js