1
0
mirror of https://shylinux.com/x/volcanos synced 2025-05-08 05:56:54 +08:00
This commit is contained in:
harveyshao 2022-07-07 18:50:25 +08:00
parent cbb68260c9
commit 9c3454825a
2 changed files with 4 additions and 7 deletions

View File

@ -223,7 +223,7 @@ Volcanos("base", {help: "数据类型", Int: function(val, def) { return parseIn
}
return n
},
random: function(max, min) { min = min||0, parseInt(Math.random()*(max-min))+min },
random: function(max, min) { return min = min||0, parseInt(Math.random()*(max-min))+min },
isNight: function() { var now = new Date(); return now.getHours() < 7 || now.getHours() > 17 },
beginWith: function(str, begin) { return str.trim().indexOf(begin) == 0 },
endWith: function(str, end) { return str.lastIndexOf(end) + end.length == str.length },

View File

@ -1,11 +1,8 @@
Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, target) {
can.onmotion.clear(can, target)
can.ui = can.onlayout.profile(can)
can.onimport[can.Option("scale")||"week"](can, msg)
can.page.style(can, can.ui.project, html.MAX_HEIGHT, can.ui.content.offsetHeight)
can.onmotion.clear(can, target), can.base.isFunc(cb) && cb(msg)
can.ui = can.onlayout.profile(can), can.onimport[can.Option("scale")||"week"](can, msg)
can.page.style(can, can.ui.profile, html.MAX_HEIGHT, can.ui.content.offsetHeight)
can.page.style(can, can.ui.profile, {display: "block"})
can.base.isFunc(cb) && cb(msg)
can.user.isMobile && !can.user.isLandscape() && can.onmotion.hidden(can, can.ui.project)
},
_content: function(can, msg, head, list, key, get, set) {