“Html:Notify”的版本间的差异
来自小鱼君和他的朋友们
(创建页面,内容为“{{#tag:html| <script> addEventListener('load',function(){ ssi_modal.notify('{{{type|}}}',{ title: '{{{title|}}}', content: '{{{content|}}}' }); }); </scr…”) |
([InPageEdit] 没有编辑摘要) |
||
(未显示同一用户的16个中间版本) | |||
第1行: | 第1行: | ||
− | + | <includeonly><html><script> | |
− | <script> | + | window.RLQ || []; |
− | + | window.RLQ.push(async function(){ | |
+ | await mw.loader.load('https://cdn.bootcdn.net/ajax/libs/ssi-modal/1.0.28/js/ssi-modal.min.js'); | ||
ssi_modal.notify('{{{type|}}}',{ | ssi_modal.notify('{{{type|}}}',{ | ||
+ | className: 'custom-notify', | ||
+ | sizeClass: '{{{size|auto}}}', | ||
+ | position: '{{{position|top right}}}', | ||
title: '{{{title|}}}', | title: '{{{title|}}}', | ||
− | content: '{{{content|}}}' | + | content: '{{{content|}}}', |
+ | closeAfter: { | ||
+ | time: 15 | ||
+ | } | ||
}); | }); | ||
}); | }); | ||
− | </script> | + | </script></html></includeonly> |
− |