1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
ContextOS/usr/librarys/plugin/initQRCode.js
2019-06-24 07:35:59 +08:00

10 lines
390 B
JavaScript

{init: function(page, pane, field, option, output) {
this.Runs = function(event) {
var value = option.content.value
var url = page.login.Pane.Share({cmds: ["qrcode", value]})
kit.AppendChilds(output, [{img: [url]}])
event.ctrlKey && page.target.Pane.Send("icon", url)
event.shiftKey && page.target.Pane.Send("field", this.Format(value))
}
}}