Skip to content

Instantly share code, notes, and snippets.

@duangsuse
Last active July 19, 2018 15:37
Show Gist options
  • Save duangsuse/f576da3db8a7563130411d950f4110c1 to your computer and use it in GitHub Desktop.
Save duangsuse/f576da3db8a7563130411d950f4110c1 to your computer and use it in GitHub Desktop.
AllDreamWall 插件:你好世界
plugin 你好世界
author duangsuse
description Hello, world! 虽然只是一小段话,却划过了人类一个时代的灿烂
menuitem 你好世界! link 🙊
(function(e){
if (e == 'initialize') {
mdui.snackbar("你好,世界!", {tiemout:600})
plugin_url_handlers['hello'] = plugins[0]
}else if (e == 'on_menu')
mdui.snackbar("你好,世界!", {tiemout:1000})
else if (e == 'install')
mdui.alert("你好,世界\n感谢您安装本插件!它除了 Hello world 一句话就没别的了,但是,<p><small>Hello, world! 虽然只是一小段话,却划过了人类一个时代的灿烂</small>")
else if (e == 'on_url')
mdui.snackbar("你好,世界!(via URL param command support)", {tiemout:1000})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment