Firefox OS User Agent
While we consider user agent sniffing a horrible practice on the client side, UA sniffing is done quite a bit on the server side to serve up the appropriate page version of a site, or redirect to, for example, the mobile version of the site. This can be a dangerous road but most large site with a separate mobile interface do it. The following is the user agent for Firefox OS:
Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0
At the moment, many large sites are sniffing for iPhone|Android instead of "Mobile", and thus they are serving their desktop site to Firefox OS devices. Be aware of the Firefox OS user agent and update your server side logic appropriately!
Note: Of course the version number within the user agent will update often, so detect "Mobile".
Back in late 2012 it was not easy to find open source projects using
One interesting CSS pseudo selector is
:target. The target pseudo selector provides styling capabilities for an element whose ID matches the window location's hash. Let's have a quick look at how the CSS target pseudo selector works!
Assume there are any number of HTML elements with...
A few weeks back I wrote an article about MooTools Link Nudging, which is essentially a classy, subtle link animation achieved by adding left padding on mouseover and removing it on mouseout. Here's how to do it using jQuery:
It's important to keep...