src/js/jquery.uniform.js
function highContrast() {
        var c, $div, el, rgb;

        // High contrast mode deals with white and black
        rgb = 'rgb(120,2,153)';
        $div = $('<div style="width:0;height:0;color:' + rgb + '">');
        $('body').append($div);
        el = $div.get(0);

        // $div.css() will get the style definition, not
        // the actually displaying style
        if (wind.getComputedStyle) {
            c = wind.getComputedStyle(el, '').color;
        } else {
            c = (el.currentStyle || el.style || {}).color;
        }

        $div.remove();
        return c.replace(/ /g, '') !== rgb;
    }
function highContrast() {
        var c, $div, el, rgb;

        // High contrast mode deals with white and black
        rgb = 'rgb(120,2,153)';
        $div = $('<div style="width:0;height:0;color:' + rgb + '">');
        $('body').append($div);
        el = $div.get(0);

        // $div.css() will get the style definition, not
        // the actually displaying style
        if (wind.getComputedStyle) {
            c = wind.getComputedStyle(el, '').color;
        } else {
            c = (el.currentStyle || el.style || {}).color;
        }

        $div.remove();
        return c.replace(/ /g, '') !== rgb;
    }
function highContrast ( ) { var c , $div , el , rgb ; // High contrast mode deals with white and black rgb = 'rgb(120,2,153)' ; $div = $ ( '<div style="width:0;height:0;color:' + rgb + '">' ) ; $ ( 'body' ) . append ( $div ) ; el = $div . get ( 0 ) ; // $div.css() will get the style definition, not // the actually displaying style if ( wind . getComputedStyle ) { c = wind . getComputedStyle ( el , '' ) . color ; } else { c = ( el . currentStyle || el . style || { } ) . color ; } $div . remove ( ) ; return c . replace ( / / g , '' ) !== rgb ; }
Test if high contrast mode is enabled.

In high contrast mode, background images can not be set and
they are always returned as 'none'.

@return {Boolean} True if in high contrast mode
Test if high contrast mode is enabled .