mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
fix
This commit is contained in:
parent
6fb04e64bc
commit
89c3e8c92c
|
@ -183,6 +183,13 @@ exports.addStylesheet = function(url, callback) {
|
|||
return el;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// exports.setContent()
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
exports.setContent = function(content) {
|
||||
document.getElementById("app").innerHTML = content;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// exports.start()
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -70,11 +70,8 @@ exports.enableMovableWindow = function() {
|
|||
// exports.main()
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
exports.main = function(args) {
|
||||
// load contents
|
||||
var contents = FILE.readFile("app\\index.html", "utf-8");
|
||||
document.getElementById("app").innerHTML = contents;
|
||||
|
||||
// load components dynamically
|
||||
// make will display contents
|
||||
OldBrowser.setContent(FILE.readFile("app\\index.html", "utf-8"));
|
||||
OldBrowser.addStylesheet("app/assets/css/jquery-ui-1.21.1.min.css");
|
||||
OldBrowser.addStylesheet("app/assets/css/jquery.toast-1.3.2.min.css");
|
||||
OldBrowser.addStylesheet("app/assets/css/style.css");
|
||||
|
|
Loading…
Reference in New Issue
Block a user