User:Vinhtantran/monobook.js

// //************************* wikiEd editor **************************************** //install User:Cacycle/wikEd in-browser text editor document.write(''); //install the Vietnamese translation for en:User:Cacycle/wikEd document.write(' '); //***********************************************************************************

/*

Bộ gõ tiếng Việt
document.write(' '); var radio = true, runHIM = true; function HIM { if (runHIM) { elCC = document.getElementById('p-tb'); if (elCC != null) { if (radio) { HIMHTML = ' Gõ tiếng Việt '; HIMHTML += ' Tự động [F9] '; HIMHTML += ' Telex (?) '; HIMHTML += ' VNI (?) '; HIMHTML += '<input id="him_viqr" name="viet_method" type="radio" onclick="setMethod(3);"' + (method == 3 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_viqr">VIQR (?)</a> '; HIMHTML += '<input id="him_viqr2" name="viet_method" type="radio" onclick="setMethod(4);"' + (method == 4 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_viqr2">VIQR* '; HIMHTML += '<input id="him_off" name="viet_method" type="radio" onclick="setMethod(-1);"' + (on_off==0?'CHECKED':'') + ' /> <label class="radio" for="him_off">Tắt [F12] '; HIMHTML += '<input id="him_daucu" name="viet_method" type="checkbox" onclick="setDauCu(this);"' + (dauCu == 1?'CHECKED':'') + ' /> <label class="radio" for="him_daucu">Bỏ dấu kiểu cũ [F7] '; HIMHTML += '<input id="him_ckspell" name="viet_method" type="checkbox" onclick="setSpell(this);"' + (dockspell == 1?'CHECKED':'') + ' /> <label class="radio" for="him_ckspell">Đúng chính tả [F8] '; elCC.innerHTML = HIMHTML + elCC.innerHTML; } if(useCookie==1) { setCookie=doSetCookie; getCookie=doGetCookie } else { setCookie=noCookie; getCookie=noCookie } setCookie; if(support) statusMessage; runHIM = false; } else { setTimeout("HIM", 20); } } return true; } HIM; function stopHIM {  HIM; if (runHIM) { if(useCookie==1) { setCookie=doSetCookie; getCookie=doGetCookie } else { setCookie=noCookie; getCookie=noCookie } setCookie; if(support) statusMessage; runHIM=false; } } addOnloadHook(stopHIM); /* Remove Vietnamese character pallete on edit screens if HIM is enabled - from Thành viên:Tttrung/thim.js and Thành viên:Ttrung/monobook.js */ function RemoveVietPallete { var pallete = document.getElementById("editpage-specialchars-viet"); var ime = document.getElementById(""); if (pallete && on_off == 1) pallete.innerHTML = ""; } addOnloadHook(RemoveVietPallete);