Skip to content

Instantly share code, notes, and snippets.

View giancorzo's full-sized avatar

Giancarlo Corzo giancorzo

View GitHub Profile
@giancorzo
giancorzo / browser.js
Created July 27, 2017 20:48 — forked from pamelafox/browser.js
Browser banner warning
(function(wndw) {
var Browsers, OS, Platform, Versions, browser_name, browser_version, os, platform;
Versions = {
Firefox: /firefox\/([\d\w\.\-]+)/i,
IE: /msie\s([\d\.]+[\d])/i,
Chrome: /chrome\/([\d\w\.\-]+)/i,
Safari: /version\/([\d\w\.\-]+)/i,
Ps3: /([\d\w\.\-]+)\)\s*$/i,
Psp: /([\d\w\.\-]+)\)?\s*$/i
};