forked from x/volcanos
add share
This commit is contained in:
parent
72374b2c8a
commit
975c80b185
17
page/share.css
Normal file
17
page/share.css
Normal file
@ -0,0 +1,17 @@
|
||||
body {
|
||||
background:black;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
fieldset {
|
||||
color:cyan;
|
||||
padding:2px;
|
||||
}
|
||||
legend {
|
||||
margin-left:10px;
|
||||
}
|
||||
div.hidden {
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
15
page/share.html
Normal file
15
page/share.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=0.7,user-scalable=no">
|
||||
<title>volcanos</title>
|
||||
|
||||
<link rel="shortcut icon" type="image/ico" href="/static/volcanos/favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="/page/share.css">
|
||||
</head>
|
||||
<body>
|
||||
<script src="/proto.js"></script>
|
||||
<script src="/page/share.js"></script>
|
||||
</body>
|
||||
|
26
page/share.js
Normal file
26
page/share.js
Normal file
@ -0,0 +1,26 @@
|
||||
var Config = {name: "demo", volcano: "/frame.js", iceberg: "/chat/", intshell: "plug.sh",
|
||||
libs: ["/lib/base", "/lib/core", "/lib/misc", "/lib/page", "/lib/user"], panes: [
|
||||
{type: "pane", name: "Action", help: "工作台", pos: "middle", list: ["/pane/Action.js", "/pane/Action.css"]},
|
||||
], main: {name: "Action", engine: "remote", list: []},
|
||||
list: ["/plugin/state.js", "/plugin/input.js", "/plugin/table.js",
|
||||
"/plugin/input/key",
|
||||
"/plugin/input/date",
|
||||
"/plugin/input/upload",
|
||||
"/plugin/input/province",
|
||||
],
|
||||
}
|
||||
|
||||
var Preload = Config.libs; Config.panes.forEach(function(pane) {
|
||||
Preload = Preload.concat(pane.list);
|
||||
}); Preload = Preload.concat(Config.list)
|
||||
|
||||
Volcanos(Config.name, { _target: document.body, _follow: "demo",
|
||||
_head: document.head, _body: document.body,
|
||||
_width: window.innerWidth, _height: window.innerHeight,
|
||||
}, Preload.concat(Config.volcano), function(can) { // 程序入口
|
||||
can.onaction._init(can, can.Conf(Config), [], function(msg) {
|
||||
console.log(can._root, can._name, "start", can, msg);
|
||||
}, can._target)
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user