Site Notice
hello, world
MediaWiki:Js-InPageEdit-v2.js/about.js
From Project-EPB Commons
Invoke this: https://common.wjghj.cn/js/{{#replace:{{#replace:Js-InPageEdit-v2.js/about.js|Js-|}}|.js|}}
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
ssi_modal.show({
title: '关于InPageEdit',
className: 'in-page-edit-about in-page-edit',
content: '<div id="placeholder">正在加载……</div><section style="display:none"></section>'
});
$.ajax({
url: 'https://common.wjghj.cn/api.php',
dataType: 'jsonp',
type: 'post',
data: {
page: 'InPageEdit-v2',
action: 'parse',
prop: 'text',
format: 'json'
},
success: function (data) {
var info = data.parse.text['*'];
$('.in-page-edit-about #placeholder').fadeOut(800);
$('.in-page-edit-about section').html(info).delay(1000).show(800);
$('.in-page-edit-about section a[href^="/"]').each(function(){
$(this).attr('href','https://common.wjghj.cn/wiki'+$(this).attr('href'));
});
$('.in-page-edit-about section img[src^="/"]').each(function(){
var $this = $(this),
src = 'https://common.wjghj.cn'+$this.attr('src')+'?_random='+Math.random();
$this.attr({
src: src,
srcset: ''
});
});
}
});