UPDATE: With the assets command of the TiCons CLI / Module this can be done even simpeler by calling $ ticons assets
or an alloy.ymk
using:
task("pre:load", function(event, logger) {
require('ticons').assets();
});
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
UPDATE: With the assets command of the TiCons CLI / Module this can be done even simpeler by calling $ ticons assets
or an alloy.ymk
using:
task("pre:load", function(event, logger) {
require('ticons').assets();
});
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.