JSFiddle - React, Tailwind, and code Playground

by zainshaikh

JavaScript

(function(jQ) {
    function getInternetExplorerVersion() {
        var rv = -1; // Return value assumes failure.
        if (navigator.appName == 'Microsoft Internet Explorer') {
            var ua = navigator.userAgent;
            var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
            if (re.exec(ua) != null) rv = parseFloat(RegExp.$1);
        }
        return rv;
    }

    var v = getInternetExplorerVersion();
    var isIE8 = (v == 8.0);
    if (isIE8) {
        alert('Yo!');

        jQ('.featuredProductContainer table').css({
            'padding-bottom': '0px',
            'width': '90% !important'
        });
    }
})(jQuery);