User:Cheng chai fung/Editor/welcome.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
var request = new XMLHttpRequest();
function onloadHook()
{
var loading = document.createElement('span');
loading.appendChild(document.createTextNode(showText[0]));
loading.style.color = 'green';
document.body.appendChild(loading);
request.onreadystatechange = statue_check;
}
function welcomeConnect()
{
Editor_window_content.innerHTML = '<span style="color:green;">資料載入中…</span>';
editor_connect_type = 'editor-welcome';
request.open("GET", 'http://wiki.zwnes.eu.org/w/index.php?title=' + Full_title + '&action=raw&ctype=text/javascript§ion=0&time=' + new Date().getTime(), true);
request.send(null);
}
function editor_request_response()
{
var content = document.createElement('pre');
content.setAttribute('id', 'Editor_rawData');
content.appendChild(document.createTextNode(showText[1] + Article_title + '…'));
document.body.replaceChild(content, document.body.firstChild);
}