Sha256: 383cc225f984a4412bd996528be39aa304506a60e8c21f30d8edeef1c16dc39c

Contents?: true

Size: 1.04 KB

Versions: 17

Compression:

Stored size: 1.04 KB

Contents

(function( jQuery, window, undefined ) {
"use strict";
 
var matched, browser;
 
jQuery.uaMatch = function( ua ) {
  ua = ua.toLowerCase();
 
	var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
		/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
		/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
		/(msie) ([\w.]+)/.exec( ua ) ||
		ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
		[];

	var platform_match = /(ipad)/.exec( ua ) ||
		/(iphone)/.exec( ua ) ||
		/(android)/.exec( ua ) ||
		[];
 
	return {
		browser: match[ 1 ] || "",
		version: match[ 2 ] || "0",
		platform: platform_match[0] || ""
	};
};
 
matched = jQuery.uaMatch( window.navigator.userAgent );
browser = {};
 
if ( matched.browser ) {
	browser[ matched.browser ] = true;
	browser.version = matched.version;
}

if ( matched.platform) {
	browser[ matched.platform ] = true
}
 
// Chrome is Webkit, but Webkit is also Safari.
if ( browser.chrome ) {
	browser.webkit = true;
} else if ( browser.webkit ) {
	browser.safari = true;
}
 
jQuery.browser = browser;
 
})( jQuery, window );

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-core-4.0.3 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-4.0.2 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-4.0.1 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.6 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-4.0.0 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.5 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.4 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.3 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.2 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.1 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-3.0.0 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-2.1.5 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-2.1.4 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-2.1.3 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-2.1.2 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-2.1.1 vendor/assets/javascripts/jquery/jquery.browser.js
refinerycms-core-2.1.0 vendor/assets/javascripts/jquery/jquery.browser.js