pullo — 2013-11-03T15:17:30-05:00 — #1
Here's what we've seen of interest this week.
Cryptography in the Browser - this is a theme that crops up in the JS forums from time to time. Here's how it's done.
Offline First: Your Next Progressive Enhancement Technique? - by SitePoint's Craig Buckler
Working with jQuery DataTables - a look at the basics of DataTable, as well as how to use some of the advanced features
What's so special about Google's AngularJS - an interview with Misko Hevery, the founding co-author of AngularJS
Learn Node.js The Troll Way - an amusing node.js tutorial in which the author constructs a bot to troll his brother on Reddit
Riot.js — The 1kb client-side MVP framework
HTML thinks that "chucknorris" is a colour!
Seriously! Try this out. What do you get?
<p>Chuck Norris fact: Chuck Norris doesn't call the wrong number. You answer the wrong phone.</p>
Extra points for anyone who can explain why this happens (without consulting Google).
Also, feel free to [PM Paul or [URL="http://www.sitepoint.com/forums/private.php?do=newpm&u=184222"]PM me](http://www.sitepoint.com/forums/private.php?do=newpm&u=158377) if you have anything interesting for the next issue. Happy reading!
francky — 2013-11-07T10:25:23-05:00 — #2
Or try this one:
<title>Pullo aus 'm Pott</title>
<h3>Pullo fact: I'm not Chuck Norris. You got a better bgcolor.</h3>
bgcolor="greenred" is also a beautiful color.
Not to be confused with bgcolor="redgreen".
Every fantasy name has a fantasy meaning!
I don't know why. Anyway it's not the doctype html5 + deprecated attribute: html4.1-Transitional and xhtml1.0-Transitional are valid (x)html (*), but give the same effect.
Also it's not the required but missed <meta> for the charset.
The html-specs don't say "If an invalid value is given, a User Agent should ...".
- Note: all browsers seem to do it in the same way.
- Note: a look in Firebug does not show any value for a background color, though the bgcolor is present! :shifty:
Strange things happen!
(*) Valid in the html-validator. - HTML-Tidy is giving alarm.
pullo — 2013-11-09T07:55:00-05:00 — #3
Thanks for the response. That's a nice example.
As you say, basically anything you type into the
bgcolor attribute gives you a value.
I had quite a lot of fun with this, for example I found out that:
bgcolor="crap" gives your brown and
bgcolor="sick" gives you green.
Anyway, the reason why this is as it is, appears to be a hangover from the Netscape days.
This article covers it in quite some detail: http://scrappy-do.blogspot.de/2004/08/little-rant-about-microsoft-internet.html
And here is the original post on StackOverflow that I was inspired by: http://stackoverflow.com/questions/8318911/why-does-html-think-chucknorris-is-a-color
ralphm — 2013-11-11T21:23:53-05:00 — #4
Why mess around with fake color values, when real ones like these are available?
pullo — 2013-11-12T04:54:34-05:00 — #5
eff0ff reminds me of my school days and using a hex calculator to swear at each other.
Funnily, we never thought of
fac0ff. I wonder why.
ralphm — 2013-11-12T08:05:55-05:00 — #6
Ah yes, the good old calculator! I'm sure at high school the first option would have been some variation of #b000b5 :lol:
francky — 2013-11-12T22:40:45-05:00 — #7
20 shades of #b000b5 ?
BTW: I'm preparing something about the chucknorris phenomenon: in a few days.
ralphm — 2013-11-13T01:29:46-05:00 — #8
"Tell him it's time to #d1e"
paulob — 2013-11-13T03:54:40-05:00 — #9
No, no, then he #bedead.
ralphm — 2013-11-13T04:23:52-05:00 — #10
I'd be putting on a #facade if I pretended to care, but I guess his mama would be quite #de5018.
paulob — 2013-11-13T04:59:02-05:00 — #11
You can't #deface chucknorris like that !
ralphm — 2013-11-13T07:25:14-05:00 — #12
I can do whatever I like, #a5501e.
paulob — 2013-11-13T13:38:20-05:00 — #13
Ok you win
ralphm — 2013-11-13T16:43:04-05:00 — #14
Aw, you're no fun, #c55cad.
francky — 2013-11-13T23:44:30-05:00 — #15
But beware of the #5en5e1, he will #c0Eebc (#500NER or #L8TERZ).
paulob — 2013-11-14T05:14:36-05:00 — #16
You need to start drinking #decaff
ralphm — 2013-11-14T07:09:11-05:00 — #17
If not real #c0ffee, then it has to be #beeeea
francky — 2013-11-14T21:36:04-05:00 — #18
Coming back on the chucknorris-background, I couldn't resist to do some experiments.
The result: some demo pages.
While the strange background-coloring is a matter of html and css (*), I've made a topic of it in the css department of the forum.
You can have a look at: