Site Notice
hello, world
Difference between revisions of "MediaWiki:Gadget-WikiForum/theme.default.js"
From Project-EPB Commons
m ([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 6: | Line 6: | ||
mw.loader.load('https://proj.wjghj.cn/Gadget-WikiForum/dist/WikiForum.theme.default.min.js') | mw.loader.load('https://proj.wjghj.cn/Gadget-WikiForum/dist/WikiForum.theme.default.min.js') | ||
}) | }) | ||
+ | |||
+ | $('body').append( | ||
+ | $('<link>', { | ||
+ | href: 'http://127.0.0.1:5500/public/dist/WikiForum.theme.default.css', | ||
+ | rel: 'stylesheet' | ||
+ | }).on('error', function() { | ||
+ | console.error('[WikiForum] Local dev style not found') | ||
+ | }) | ||
+ | ) |
Latest revision as of 23:15, 11 January 2021
$.ajax({
url: 'http://127.0.0.1:5500/dev/WikiForum.theme.default.js',
dataType: 'script',
cache: false
}).catch(function(){
mw.loader.load('https://proj.wjghj.cn/Gadget-WikiForum/dist/WikiForum.theme.default.min.js')
})
$('body').append(
$('<link>', {
href: 'http://127.0.0.1:5500/public/dist/WikiForum.theme.default.css',
rel: 'stylesheet'
}).on('error', function() {
console.error('[WikiForum] Local dev style not found')
})
)