Signin  Pricing  Examples  Support

Libraries > cssfixes.js

cssfixes.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://gamble2fun.com/tpl2/js/cssfixes.js


Libraries on gamble2fun.com


boxshadow.js

cssfixes.js

jquery.cookie.js

jquery.rating-2.0.js

jquery.spinner.js

misc.js

soc_votes.js



Explore More


jquery.colorbox-min.js

conflict.js

jquery.min.js

tabs.js

cssfixes.js
				
var cssFix = function(){
	var u = navigator.userAgent.toLowerCase(),
	addClass = function(el,val){
		if(!el.className) {
			el.className = val;
		}
		else {
			var newCl = el.className;
			newCl+=(" "+val);
			el.className = newCl;
		}
	},
	is = function(t){return (u.indexOf(t)!=-1)};
	addClass(document.getElementsByTagName('html')[0],[
		(!(/opera|webtv/i.test(u))&&/msie (\d)/.test(u))?('ie ie'+RegExp.$1)
		:is('firefox/2')?'gecko ff2'
		:is('firefox/3')?'gecko ff3'
		:is('chrome')?'gecko chrome'
		:is('gecko/')?'gecko'
		:is('opera/9')?'opera opera9':/opera (\d)/.test(u)?'opera opera'+RegExp.$1
		:is('konqueror')?'konqueror'
		:is('applewebkit/')?'webkit safari'
		:is('mozilla/')?'gecko':'',
		(is('x11')||is('linux'))?' linux'
		:is('mac')?' mac'
		:is('win')?' win':''
	].join(" "));
}();


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z