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