source: Dev/trunk/src/client/dojox/app/tests/mediaQuery3ColumnApp/mediaQuery3ColumnApp.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 517 bytes
Line 
1require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojo/sniff"],
2        function(win, Application, jsonRef, config, has){
3
4        var small = 560;
5
6        // large > 860 medium <= 860  small <= 560
7        var isSmall = function(){                               
8                var width = window.innerWidth || document.documentElement.clientWidth;
9                return width <= small;
10
11        };
12
13       
14        var cfg = jsonRef.fromJson(config);
15        has.add("ie9orLess", has("ie") && (has("ie") <= 9));
16        has.add("isInitiallySmall", isSmall());
17        Application(cfg);
18       
19});
Note: See TracBrowser for help on using the repository browser.