1
0
forked from x/volcanos
This commit is contained in:
shylinux 2021-09-06 10:23:29 +08:00
parent b4bba85634
commit bb8ee36e0a
4 changed files with 5 additions and 6 deletions

View File

@ -199,10 +199,6 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, meta,
},
carte: function(event, can, list, cb) { can.user.carte(event, can, can.onaction, list, cb) },
river: function(event, can) { can.onaction.River(can) },
tutor: function(event, can) { can.user.open("/chat/cmd/src/help/tutor.shy") },
manual: function(event, can) { can.user.open("/chat/cmd/src/help/manual.shy") },
program: function(event, can) { can.user.open("/chat/cmd/src/help/program.shy") },
refer: function(event, can) { can.user.open("/chat/cmd/src/help/refer.shy") },
black: function(event, can, button) {
can.onlayout.topic(can, button)

View File

@ -20,7 +20,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
can.onmotion.hidden(can, can._action)
width = can.Conf("width"), height = can.Conf("height")
}
if (location.pathname.indexOf("/chat/cmd") == 0) {
if (can.user.isCmd) {
width = window.innerWidth, height = window.innerHeight
can.page.Modify(can, can._output, {style: {width: width, height: height}})
}

View File

@ -1,3 +1,6 @@
fieldset.word>div.legend {
display:none;
}
fieldset.word>div.output {
clear:none;
float:left;

View File

@ -9,7 +9,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
// delete(data.meta)
})
if (location.pathname.indexOf("/chat/cmd") == 0) {
if (can.user.isCmd) {
can.page.ClassList.add(can, can._fields, "cmd")
can.page.Modify(can, can.sup._navmenu, {style: {height: window.innerHeight}})
if (can.sup._navmenu) {