Galletas |
design. development. SF. and lots of cookies. |
Inspired by a video my dad sent me last week, I decided to make a pendulum entirely out of CSS3 animations. (Some JS involved to do the period calculations.)
A ternary operator is basically a quick way to write conditional statements. In javascript, the syntax is:
[if this] ? [do this] : [else this];
I used this in an email obfuscator function:
function em_obfusc(name,domain,txt) { var email= name+'@'+domain; document.write("<a href='mailto:" + email + "'>"); document.write(txt ? txt : email); document.write(''); }
To include this in a script tag in your HTML:
em_obfusc('NAME','DOMAIN','email');
(Source: hscripts.com)
Ok. here’s a moose
Man, I hate snow. More than almost...
I think about all of this stuff nearly every day and it kills me because there’s no good option and we’re all...
My recent flower of choice.
I’m glad I coerced my soon-to-be-former employer to buy an appropriate portrait lens before I left.
keys to every single garage and gate on potrero hill in SF.
I should stop taking photos of my roommate’s boyfriend, lest he get the wrong idea.
You think it’s like this, but it’s really like this.
The Sun and Inner Planets Moving Through...