“Html:Notify”的版本间的差异
来自小鱼君和他的朋友们
([InPageEdit] 没有编辑摘要) |
|||
第1行: | 第1行: | ||
{{#tag:html| | {{#tag:html| | ||
<includeonly><script></includeonly> | <includeonly><script></includeonly> | ||
− | // <pre> | + | // <pre> |
− | window.WSP = window.WSP | + | window.WSP = window.WSP {{!!}} []; |
window.WSP.push(async function(){ | window.WSP.push(async function(){ | ||
await mw.loader.load('https://cdn.bootcdn.net/ajax/libs/ssi-modal/1.0.28/js/ssi-modal.min.js'); | await mw.loader.load('https://cdn.bootcdn.net/ajax/libs/ssi-modal/1.0.28/js/ssi-modal.min.js'); |
2020年4月28日 (二) 10:32的版本
//
window.WSP = window.WSP || []; window.WSP.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('',{ className: 'custom-notify', sizeClass: 'auto', position: 'top right', title: '', content: '', closeAfter: { time: 15 } }); });