update app.hta, webloader.js

This commit is contained in:
Namhyeon Go 2020-07-23 17:10:52 +09:00
parent 42f3d376cc
commit 55980f7941
2 changed files with 9 additions and 5 deletions

View File

@ -25,7 +25,7 @@
@attribute WindowsState [Normal]|Minimize|Maximize @attribute WindowsState [Normal]|Minimize|Maximize
--> -->
<hta:application <hta:application
ID="WELSONJS" ID="WELSONJS_WINDOW"
Version="0.1.2" Version="0.1.2"
ApplicationName="WelsonJS" ApplicationName="WelsonJS"
Border="None" Border="None"
@ -46,7 +46,7 @@
WindowState="Normal" WindowState="Normal"
Selection="No" Selection="No"
/> />
<title>NextVPN</title> <title>Welcome to WelsonJS application</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" /> <meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <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" /> <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> <div id="app"></div>
<script src="app.js" type="text/javascript" charset="utf-8"></script> <script src="app.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">//<!--<![CDATA[ <script type="text/javascript">//<!--<![CDATA[
init_window("webloader", [], 800, 600); init_window("webloader", [WELSONJS_WINDOW.commandLine], 800, 600);
//]]>--></script> //]]>--></script>
</body> </body>
</html> </html>

View File

@ -5,7 +5,7 @@
* https://github.com/gnh1201/welsonjs * https://github.com/gnh1201/welsonjs
* *
*/ */
var FILE = require('lib/file'); var FILE = require("lib/file");
// "override console.__echo()"; // "override console.__echo()";
global.console.__echo = function(msg) { global.console.__echo = function(msg) {
@ -219,7 +219,7 @@ return {
} }
return el; return el;
}, },
main: function() { main: function(args) {
// "set variable 'self'"; // "set variable 'self'";
var self = this; var self = this;
@ -304,6 +304,10 @@ return {
// "set movable window"; // "set movable window";
self.enableMovableWindow(); self.enableMovableWindow();
// "parsing HTA application arguments";
var appArguments = args[0].split(' ');
// TODO
return 0; return 0;
} }
} }