mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
update app.hta, webloader.js
This commit is contained in:
parent
42f3d376cc
commit
55980f7941
6
app.hta
6
app.hta
|
@ -25,7 +25,7 @@
|
|||
@attribute WindowsState [Normal]|Minimize|Maximize
|
||||
-->
|
||||
<hta:application
|
||||
ID="WELSONJS"
|
||||
ID="WELSONJS_WINDOW"
|
||||
Version="0.1.2"
|
||||
ApplicationName="WelsonJS"
|
||||
Border="None"
|
||||
|
@ -46,7 +46,7 @@
|
|||
WindowState="Normal"
|
||||
Selection="No"
|
||||
/>
|
||||
<title>NextVPN</title>
|
||||
<title>Welcome to WelsonJS application</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
||||
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
|
||||
<meta name="description" content="Welsonjs - Build a Windows desktop apps with JavaScript, HTML, and CSS based on WSH/HTA" />
|
||||
|
@ -62,7 +62,7 @@
|
|||
<div id="app"></div>
|
||||
<script src="app.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script type="text/javascript">//<!--<![CDATA[
|
||||
init_window("webloader", [], 800, 600);
|
||||
init_window("webloader", [WELSONJS_WINDOW.commandLine], 800, 600);
|
||||
//]]>--></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* https://github.com/gnh1201/welsonjs
|
||||
*
|
||||
*/
|
||||
var FILE = require('lib/file');
|
||||
var FILE = require("lib/file");
|
||||
|
||||
// "override console.__echo()";
|
||||
global.console.__echo = function(msg) {
|
||||
|
@ -219,7 +219,7 @@ return {
|
|||
}
|
||||
return el;
|
||||
},
|
||||
main: function() {
|
||||
main: function(args) {
|
||||
// "set variable 'self'";
|
||||
var self = this;
|
||||
|
||||
|
@ -304,6 +304,10 @@ return {
|
|||
// "set movable window";
|
||||
self.enableMovableWindow();
|
||||
|
||||
// "parsing HTA application arguments";
|
||||
var appArguments = args[0].split(' ');
|
||||
// TODO
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user