First Annual Naked Day: April 05
Friday Mar 31 2006
Update!! // Some where along the lines theis_naked_day function wasn't working across all PHP configurations. There is now an updated naked_day function which is recommended for you to use
That's right, I'm starting the first annual CSS Naked Day. In the spirit of promoting Web Standards along with good semantic markup and proper hierarchy structures, April 5th will be a day of nakedness for all webmasters to remove their style sheets from their website for one day. Signining up is not required, just simply comment in this thread with a link to your website and let everyone else know that you're participating.
Details
There's not much details about it. This is merely to see if you're up to the challenge to put your website on the line. If you run an e-commerce website, you ought not participate; this is purely for those with personal blogs or for those who run publications or...whatever. All the more props to you if you run a large website!
The fact of the matter is, if you're writing good solid markup to begin with, it shouldn't be all that bad anyway. It will be a test case to see how usable your website is to others without a design.
So in the meantime, don't hesitate to prepare your site for the big day. If you feel the need to explain why your site is naked
(without design) to your visitors, simply put the following markup at the top fo your page (remember that this is totally optional):
Markup for your naked day participation
<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.dustindiaz.com" title="Web Standards Naked Day Host Website">
Annual CSS Naked Day</a> website for more information.</p>
Once April 5th is over and you've added your style sheets back to your website, simply remove the message. Cheers to all those who want to join!
FYI
I will indeed be participating myself! So don't feel left out. Update:// I've added the Naked List by popular demand. I'll keep the list updated up until the sixth. Update Two:// Here's a simple PHP function for those who want to participate every year without the fuss of manually removing them on the day of. Note, this will keep you site naked during the entire 48 hour period of April 5th (which is what I'm recommending):(Updated) PHP is_naked_day function
<?php
function is_naked_day() {
$start = date('U', mktime(-12,0,0,04,05,date('Y')));
$end = date('U', mktime(36,0,0,04,05,date('Y')));
$z = date('Z') * -1;
$now = time() $z;
if ( $now >= $start && $now < = $end ) {
return true;
}
else {
return false;
}
}
?>
Props to Luke Wertz for whipping this up in less than 30 seconds.
Here is a sample usage of the function:
using the is_naked_day function
<?php
if ( is_naked_day() ) {
echo "<!--
It's Naked Day didn't ya know it
See http://naked.dustindiaz.com for more information
-->";
}
else {
?>
<style type="text/css">
<!--
@import"/css/your_style_sheet.css";
-->
</style>
<?php
}
?>
Once again, thanks everyone for making this first annual naked day so successful! You Rock!
recent
- Matador: The Obvious MVC Framework for Node
- Sandboxing JavaScript
- Crouching Ender, hidden command
- Ender.js - The open submodule library
- Qwery - The Tiny Selector Engine
- Klass
- Smallest DOMReady code, ever.
- $script.js - Another JavaScript loader
- About that slowness on Twitter...
- Autocomplete Fuzzy Matching
- JavaScript Cache Provider
- JavaScript Animate
- Asynchronous method queue chaining in JavaScript
- Something changed
- Unofficial Twitter Widget Documentation
i am dustin diaz

