Codly
html
css
js
// jQBrowser v0.2: http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(c/a))+String.fromCharCode(c%a+161)};while(c--){if(k[c]){p=p.replace(new RegExp(e(c),'g'),k[c])}}return p}('O ?(){® O={\'?\':?(){? ?.?},\'©\':{\'±\':?(){? ?.©.±},\'?\':?(){? ?.©.?}},\'¬\':?(){? ?.¬},\'¶\':?(){? ?.¶},\'?\':?(){? ?.?},\'A\':?(){? ?.A},\'A\':?(){? ?.A},\'?\':?(){? ?.?},\'?\':?(){? ?.?},\'?\':?(){? ?.?},\'·\':?(){? ?.·},\' \':?(){? ?. },\'?\':?(){? ?.?},\'A\':?(){? ?.A},\'A\':?(){? ?.A},\'A\':?(){? ?.A},\'?\':?(){? ?.?}};$.?=O;® ?={\'?\':\'?\',\'©\':{\'±\':?,\'?\':\'?\'},\'¬\':\'?\',\'¶\':§,\'?\':§,\'A\':§,\'A\':§,\'?\':§,\'?\':§,\'?\':§,\'·\':§,\' \':§,\'?\':§,\'A\':§,\'A\':§,\'A\':§,\'?\':§};I(® i=0,«=».i,°=».i,¦=[{\'¤\':\'Y\',\'?\':?(){?/U/.?(°)}},{\'¤\':\'U\',\'?\':?(){? U.?!=?}},{\'¤\':\'E\',\'?\':?(){?/E/.?(°)}},{\'¤\':\'U\',\'?\':?(){?/?/.?(°)}},{\'?\':\'¶\',\'¤\':\'? N\',\'?\':?(){?/a a a/.?(«)},\'©\':?(){? «.?(/a(\\d+(?:\\.\\d+)+)/)}},{\'¤\':\'I\',\'?\':?(){?/I/.?(«)}},{\'¤\':\'I\',\'?\':?(){?/I/.?(°)}},{\'¤\':\'I\',\'?\':?(){?/I/.?(«)}},{\'¤\':\'?\',\'?\':?(){?/?/.?(«)}},{\'?\':\'·\',\'¤\':\'a N\',\'?\':?(){?/O/.?(«)},\'©\':?(){? «.?(/O (\\d+(?:\\.\\d+)+(?:b\\d*)?)/)}},{\'¤\':\'O\',\'?\':?(){?/?|O/.?(«)},\'©\':?(){? «.?(/e:(\\d+(?:\\.\\d+)+)/)}}];i<¦.E;i++){µ(¦[i].?()){® ?=¦[i].??¦[i].?:¦[i].¤.O();?[?]=E;?.?=¦[i].¤;® ;µ(¦[i].©!=?&&(=¦[i].©())){?.©.?=[1];?.©.±=E([1])}e{® C=O e(¦[i].¤+\'(?:\\\\s|\\\\/)(\\\\d+(?:\\\\.\\\\d+)+(?:(?:a|b)\\\\d*)?)\');=«.?(C);µ(!=?){?.©.?=[1];?.©.±=E([1])}}?}};I(® i=0,?=».a,¦=[{\'?\':\'?\',\'¤\':\'c\',\'¬\':?(){?/e/.?(?)}},{\'¤\':\'O\',\'¬\':?(){?/O/.?(?)}},{\'¤\':\'?\',\'¬\':?(){?/?/.?(?)}}];i<¦.E;i++){µ(¦[i].¬()){® ?=¦[i].??¦[i].?:¦[i].¤.O();?[?]=E;?.¬=¦[i].¤;?}}}();',77,77,'function|return|Private|name|browser|data|false|test|version|identifier|ua|OS|result|var|string|ve|number|undefined|opera|pl|if|aol|msie|win|match|camino|navigator|mozilla|icab|konqueror|Unknown|flock|firefox|netscape|linux|safari|mac|Linux|re|iCab|true|parseFloat|length|Flock|Camino|for|Firefox|Netscape|Explorer|MSIE|Mozilla|Mac|toLowerCase|new|break|Public|Apple|Opera|window|Konqueror|Safari|KDE|AOL|America|Online|Browser|rev|platform|Internet|Gecko|Windows|rv|Win|else|RegExp|userAgent|vendor'.split('|')))
/* ----------------------------------------------------------------- */
var aol = $.browser.aol(); // AOL Explorer
var camino = $.browser.camino(); // Camino
var firefox = $.browser.firefox(); // Firefox
var flock = $.browser.flock(); // Flock
var icab = $.browser.icab(); // iCab
var konqueror = $.browser.konqueror(); // Konqueror
var mozilla = $.browser.mozilla(); // Mozilla
var msie = $.browser.msie(); // Internet Explorer Win / Mac
var netscape = $.browser.netscape(); // Netscape
var opera = $.browser.opera(); // Opera
var safari = $.browser.safari(); // Safari
var userbrowser = $.browser.browser(); //detected user browser
//operating systems
var linux = $.browser.linux(); // Linux
var mac = $.browser.mac(); // Mac OS
var win = $.browser.win(); // Microsoft Windows
//version
var userversion = $.browser.version.number();
/* ----------------------------------------------------------------- */
if (mac == true) {
$("html").addClass("mac");
} else if (linux == true) {
$("html").addClass("linux");
} else if (win == true) {
$("html").addClass("windows");
}
/* ----------------------------------------------------------------- */
if (userbrowser == "Safari") {
$("html").addClass("safari");
} else if (userbrowser == "Firefox") {
$("html").addClass("firefox");
} else if (userbrowser == "Camino") {
$("html").addClass("camino");
} else if (userbrowser == "AOL Explorer") {
$("html").addClass("aol");
} else if (userbrowser == "Flock") {
$("html").addClass("flock");
} else if (userbrowser == "iCab") {
$("html").addClass("icab");
} else if (userbrowser == "Konqueror") {
$("html").addClass("konqueror");
} else if (userbrowser == "Mozilla") {
$("html").addClass("mozilla");
} else if (userbrowser == "Netscape") {
$("html").addClass("netscape");
} else if (userbrowser == "Opera") {
$("html").addClass("opera");
} else if (userbrowser == "Internet Explorer") {
$("html").addClass("ie");
} else {}
$("html").addClass("" + userversion + "");