Added button to trigger script

This commit is contained in:
kwaroran
2024-04-10 10:51:34 +09:00
parent 3d7d34334c
commit ff089e658f
4 changed files with 56 additions and 33 deletions

View File

@@ -732,7 +732,7 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
return null
}
case 'button':{
return `<button style="padding" x-risu-prompt="${arra[2]}">${arra[1]}</button>`
return `<button class="button-default" risu-trigger="${arra[2]}">${arra[1]}</button>`
}
case 'risu':{
return `<img src="/logo2.png" style="height:${v || 45}px;width:${v || 45}px" />`