| 1 | require(["dojox/app/main", "dojox/json/ref", "dojo/sniff"], |
| 2 | function(Application, json, has){ |
| 3 | |
| 4 | var configurationFile = "./config.json"; |
| 5 | |
| 6 | require(["dojo/text!"+configurationFile], function(configJson){ |
| 7 | var config = json.fromJson(configJson); |
| 8 | var width = window.innerWidth || document.documentElement.clientWidth; |
| 9 | if(width <= 600){ |
| 10 | has.add("phone", true); |
| 11 | } |
| 12 | has.add("ie9orLess", has("ie") && (has("ie") <= 9)); |
| 13 | Application(config); |
| 14 | }); |
| 15 | }); |