UNPKG

dijit

Version:

Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u

22 lines (17 loc) 470 B
define(["dojo/dom-class", "dojo/hccss", "dojo/domReady", "dojo/_base/window"], function(domClass, has, domReady, win){ // module: // dijit/hccss /*===== return function(){ // summary: // Test if computer is in high contrast mode, and sets `dijit_a11y` flag on `<body>` if it is. // Deprecated, use ``dojo/hccss`` instead. }; =====*/ domReady(function(){ if(has("highcontrast")){ domClass.add(win.body(), "dijit_a11y"); } }); return has; });