What happened to the design?
To know more about why styles are disabled on this website visit the
Annual CSS Naked Day website for more information.
The 9th of April is CSS Naked Day. I’m a day ahead of the US so you all get to see mine first
Im showing you mine, now you show me yours
A few folks were curious about the date of CSS Naked Day. Here’s a few reasons why it’s on April 9th this year.
- The date should always be on a Tuesday, Wednesday, or Thursday (most highly trafficked days)
- It should be near the first week of April
- It should never be on April 1st (international prank day)
- There should be at least five days ahead of time before the announcement
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>
This post is tagged CSS














4 Comments
Very interesting indeed Paul.
yes, interesting indeed, and a PR6 BL.. not bad for a bit of fun….
I get the naked CSS design…
Now, where’s the real “naked” post?!? I’ll refresh again and when I come back, the real ‘naked’ post better be here … *wags finger*
heh =))
Woobie, read , don’t point fingers… It was the 9th, now it’s the 10th here in Japan…. back to normal… pm me if that is not what you meant.. hehehe
Incoming Links
Leave a Reply