1
0
mirror of https://shylinux.com/x/volcanos synced 2025-07-01 12:04:43 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-06-27 20:38:20 +08:00
parent c907a95149
commit 981532715d
2 changed files with 9 additions and 3 deletions

View File

@ -157,13 +157,13 @@ table.content.detail tr.action i.bi-trash { color:var(--danger-bg-color); }
body.width1 div.output div.video.width.bilibili iframe { height:200px; }
div.output div.code.qrcode { position:relative; }
div.output div.code.qrcode { text-align:center; display:inline-block; }
div.output div.code.qrcode { text-align:center; display:inline-block; margin:10px 10px; }
div.output div.code.qrcode>img.qrcode:hover {
box-shadow:var(--notice-box-shadow);
}
div.output div.code.qrcode>img.qrcode {
box-shadow:var(--box-shadow); border-radius:10px;
margin:10px 10px; height:200px; width:200px;
margin:10px 10px; height:220px; width:220px;
}
div.output div.code>img.avatar {
box-shadow:var(--box-shadow); border-radius:10px; border:solid 2px white; object-fit:cover; --qrcode-icon-height:32px;

View File

@ -316,7 +316,13 @@ Volcanos(chat.ONACTION, {
}) },
openLocation: function(event, can) { can.user.agent.openLocation(can, can.request(event)) },
scanQRCode0: function(event, can, button) { can.user.agent.scanQRCode(can) },
scanQRCode: function(event, can, button) { can.user.agent.scanQRCode(can, function(data) { can.runAction(event, button, can.base.Simple(data), function() { can.Update() }) }) },
scanQRCode: function(event, can, button) {
can.user.agent.scanQRCode(can, function(data) { can.sub.runAction(event, button, can.base.Simple(data)) })
return
can.user.agent.scanQRCode(can, function(data) { can.runAction(event, button, can.base.Simple(data), function() {
can.Update()
}) })
},
record0: function(event, can, name, cb) { can.user.input(event, can, [{name: nfs.FILE, value: name}], function(list) {
navigator.mediaDevices.getDisplayMedia({video: {height: window.innerHeight}}).then(function(stream) { var toast
can.core.Next([3, 2, 1], function(item, next) { toast = can.user.toast(can, item + "s 后开始截图"), can.onmotion.delay(can, next, 1000) }, function() { toast.close()