Sha256: c74f8611216339f49d75f0e9108f442f1cd073d203d6da312f8ff093775c5e9b
Contents?: true
Size: 1.27 KB
Versions: 14
Compression:
Stored size: 1.27 KB
Contents
I"(function() { if (typeof Alchemy === "undefined") { window.Alchemy = {}; } Alchemy.Browser = { isiPhone: navigator.userAgent.match(/iPhone/i) !== null, isiPad: navigator.userAgent.match(/iPad/i) !== null, isiPod: navigator.userAgent.match(/iPod/i) !== null, isiOS: navigator.userAgent.match(/iPad|iPhone|iPod/i) !== null, isFirefox: navigator.userAgent.match(/Firefox/i) !== null, isChrome: navigator.userAgent.match(/Chrome/i) !== null, isSafari: navigator.userAgent.match(/AppleWebKit/) && !navigator.userAgent.match(/Chrome/), isIE: navigator.userAgent.match(/MSIE/i) !== null, getVersion: function(browser) { if (Alchemy.Browser["is" + browser]) { return parseInt(navigator.userAgent.match(new RegExp(browser + ".[0-9]+", "i"))[0].replace(new RegExp(browser + "."), ""), 10); } else { return null; } } }; Alchemy.Browser.ChromeVersion = Alchemy.Browser.getVersion("Chrome"); Alchemy.Browser.FirefoxVersion = Alchemy.Browser.getVersion("Firefox"); Alchemy.Browser.SafariVersion = Alchemy.Browser.getVersion("Safari"); Alchemy.Browser.IEVersion = Alchemy.Browser.getVersion("MSIE"); Alchemy.Browser.isWebKit = Alchemy.Browser.isChrome || Alchemy.Browser.isSafari; }).call(this); :ET
Version data entries
14 entries across 11 versions & 2 rubygems