User:Wyang/autoLoad.js

Hello, you have come here looking for the meaning of the word User:Wyang/autoLoad.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Wyang/autoLoad.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Wyang/autoLoad.js in singular and plural. Everything you need to know about the word User:Wyang/autoLoad.js you have here. The definition of the word User:Wyang/autoLoad.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Wyang/autoLoad.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
function autoLoad() {
	var headingText = document.getElementById("firstHeading").innerHTML;
	
	var re_new = new RegExp("^Creating +$");
	var re_allLatin = new RegExp("^Creating +$");
	
	var re_ja = new RegExp("");
	var re_zh = new RegExp("");
	var re_vi = new RegExp("");
	var re_ko = new RegExp("");
	var re_th = new RegExp("");
	var re_km = new RegExp("");
	var re_my = new RegExp("");
	var re_hi = new RegExp("");
	
	if (re_new.test(headingText)) {
		if (document.getElementById("mw-previewheader") === null) {
			
			if (re_ja.test(headingText)) {
				$('textarea').value = "{{subst:" + "ja-n}}";
				
			} else if (re_zh.test(headingText)) {
				$('textarea').value = "{{subst:" + "zh-n}}";
				
			} else if (re_vi.test(headingText)) {
				$('textarea').value = "{{subst:" + "vi-n}}";
				
			} else if (re_ko.test(headingText)) {
				$('textarea').value = "{{subst:" + "ko-n}}";
				
			} else if (re_th.test(headingText)) {
				$('textarea').value = "{{subst:" + "th-n}}";
				
			} else if (re_km.test(headingText)) {
				$('textarea').value = "{{subst:" + "km-n}}";
				
			} else if (re_my.test(headingText)) {
				$('textarea').value = "{{subst:" + "my-n}}";
				
			} else if (re_hi.test(headingText)) {
				$('textarea').value = "{{subst:" + "hi-n}}";				
				
			//} else if (re_allLatin.test(headingText)) {
			//	$('textarea').value = "==English==";
				
			//} else {
			//	$('textarea').value = "{{subst:" + "-n}}";
			}
		}
	}
	
	$("#wpTextbox1").on('keyup', function(){
	    var n = $(this).val().replace(/deryy/g,'\n\n====Derived terms====\n{{subst:'+'zh-new/der}}');
	    $(this).val(n);
	});
}

autoLoad();