| 1 | require(["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 | }); |