Skip to content

Instantly share code, notes, and snippets.

View amincharoliya's full-sized avatar
🎯
Focusing

Amin Charoliya amincharoliya

🎯
Focusing
View GitHub Profile
@amincharoliya
amincharoliya / gist:9887b55c690a01e376ecdd125f181b2b
Created August 19, 2019 18:48 — forked from alexindigo/gist:1871785
set browser specific classes using jQuery
// {{{ win-safari hacks, scratch this,
// let's just expose platform/browser to css
(function()
{
var uaMatch = '', prefix = '';
if (navigator.userAgent.match(/Windows/))
{
$('html').addClass('x-win');
}