You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
570 B
21 lines
570 B
require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/sniff"], |
|
function(win, Application, json, has){ |
|
win.global.modelApp = {}; |
|
modelApp.list = { |
|
identifier: "label", |
|
'items':[] |
|
}; |
|
|
|
|
|
var configurationFile = "./config.json"; |
|
|
|
require(["dojo/text!"+configurationFile], function(configJson){ |
|
var config = json.fromJson(configJson); |
|
var width = window.innerWidth || document.documentElement.clientWidth; |
|
if(width <= 600){ |
|
has.add("phone", true); |
|
} |
|
has.add("ie9orLess", has("ie") && (has("ie") <= 9)); |
|
Application(config); |
|
}); |
|
});
|
|
|