Site Notice
hello, world
Difference between revisions of "MediaWiki:Gadget-WikiForum/theme.default.js"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
$.ajax({ | $.ajax({ | ||
− | url: 'http://127.0.0.1:5500/dev/WikiForum.theme. | + | url: 'http://127.0.0.1:5500/dev/WikiForum.theme.default.js', |
dataType: 'script', | dataType: 'script', | ||
cache: false | cache: false | ||
}).catch(function(){ | }).catch(function(){ | ||
− | mw.loader.load('https://proj.wjghj.cn/Gadget-WikiForum/dist/WikiForum.theme. | + | 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')
})
)