mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
fix
This commit is contained in:
parent
b99dd9fc12
commit
ad2d3fc9b7
4
app.hta
4
app.hta
|
@ -59,9 +59,7 @@
|
|||
<link type="text/css" rel="stylesheet" href="app/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<welsonjs-view></welsonjs-view>
|
||||
</div>
|
||||
<div id="app"></div>
|
||||
<script src="app.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script type="text/javascript">//<!--<![CDATA[
|
||||
init_window("webloader", [WELSONJS_WINDOW.commandLine], 800, 600);
|
||||
|
|
|
@ -9,10 +9,7 @@
|
|||
<span>모든 네트워크</span>
|
||||
<ul class="sub">
|
||||
<li class="show-no-logged"><span><img src="app/assets/img/iconfinder_Caution_53013.png" alt="Caution" /> 로그인하세요</span></li>
|
||||
<li class="show-logged"><a href="#us1"><span><img src="app/assets/img/flags/shiny/16/United-States.png" alt="United States" /> US 1</span></a></li>
|
||||
<li class="show-logged"><a href="#us2"><span><img src="app/assets/img/flags/shiny/16/United-States.png" alt="United States" /> US 2</span></a></li>
|
||||
<li class="show-logged"><a href="#us3"><span><img src="app/assets/img/flags/shiny/16/United-States.png" alt="United States" /> US 3</span></a></li>
|
||||
</li>
|
||||
<server-item v-for="item in servers" v-bind:item="item" v-bind:key="item.id"></server-item>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
31
app/index.js
31
app/index.js
|
@ -1,12 +1,32 @@
|
|||
var FILE = require("lib/file");
|
||||
|
||||
Vue.component("welsonjs-view", {
|
||||
template: "<p>hello world</p>"
|
||||
Vue.component("server-item", {
|
||||
props: ['item'],
|
||||
template: '<li class="show-logged"><a href="#"><span><img :src="item.icon"> {{item.title}}</span></a></li>'
|
||||
});
|
||||
|
||||
new Vue({el: "#app"});
|
||||
|
||||
/*
|
||||
var app = new Vue({
|
||||
el: "#app",
|
||||
data: {
|
||||
servers: [
|
||||
{
|
||||
icon: "app/assets/img/flags/shiny/16/United-States.png",
|
||||
country: "United States",
|
||||
title: "US 1"
|
||||
},
|
||||
{
|
||||
icon: "app/assets/img/flags/shiny/16/United-States.png",
|
||||
country: "United States",
|
||||
title: "US 2"
|
||||
},
|
||||
{
|
||||
icon: "app/assets/img/flags/shiny/16/United-States.png",
|
||||
country: "United States",
|
||||
title: "US 3"
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$(".show-logged").css("display", "none");
|
||||
|
@ -81,4 +101,3 @@ $(document).ready(function() {
|
|||
console.log("로그아웃 되었습니다.");
|
||||
});
|
||||
});
|
||||
*/
|
24
webloader.js
24
webloader.js
|
@ -32,16 +32,10 @@ global.exit = function() {
|
|||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// exports.IEVersion
|
||||
// this window makes movable
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
exports.IEVersion = OldBrowser.getIEVersion();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// exports.enableMovableWindow()
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
exports.enableMovableWindow = function() {
|
||||
var grip = document.getElementById("app"),
|
||||
oX, oY,
|
||||
(function(grip) {
|
||||
var oX, oY,
|
||||
mouseDown = function(e) {
|
||||
if (e.offsetY + e.offsetX < 0) return;
|
||||
oX = e.screenX;
|
||||
|
@ -64,14 +58,19 @@ exports.enableMovableWindow = function() {
|
|||
|
||||
grip.addEventListener("mousedown", mouseDown);
|
||||
grip.addEventListener("mousemove", gripMouseMove);
|
||||
};
|
||||
})(document.getElementsByTagName("body")[0]);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// exports.IEVersion
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
exports.IEVersion = OldBrowser.getIEVersion();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// exports.main()
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
exports.main = function(args) {
|
||||
// make will display contents
|
||||
//OldBrowser.setContent(FILE.readFile("app\\index.html", "utf-8"));
|
||||
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");
|
||||
|
@ -103,9 +102,6 @@ exports.main = function(args) {
|
|||
return false;
|
||||
};
|
||||
|
||||
// set movable window
|
||||
exports.enableMovableWindow();
|
||||
|
||||
// assign click event
|
||||
var elems = document.getElementsByTagName("a");
|
||||
for(var i in elems) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user