1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 08:48:06 +08:00
ContextOS/usr/librarys/plugin/initQRCode.js
2019-07-01 02:53:50 +08:00

10 lines
386 B
JavaScript

{init: function(page, pane, field, option, output) {
this.Runs = function(event) {
var value = option.txt.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))
}
}}