User:Vibhijain/vector.js

From translatewiki.net
Jump to: navigation, search
/* Any JavaScript here will be loaded for all users on every page load. */
 
/*************
*** Ajax sysop
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Ajax_sysop>
*************/
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Ajax_sysop.js&action=raw&ctype=text/javascript');
 
/**
 * Beginning of Transliteration Tool
 * Author: Vaibhav Jain [[user:Vibhijain]]
 * added date: 2011-05-30
 */
<input type="button" value="Type Hindi" 
    onclick="win = window.open('','Comment',
   'toolbar=0,menubar=0,location=0,width=560,height=590'); 
    win.document.write('<script language=\'javascript\'>
    var id=\'TEXTAREAID\';</script><script 
    src=\'http://demo.vishalon.net/HindiPad.js\' 
    language=javascript></script>');
    win.focus();">
 
function transetup(event) {
	setDefaultSchmeIndex(readCookie("transToolIndex"));
 
	transliterate('searchInput', 'wpTextbox1', 'wpSummary', 'searchText', 'powerSearchText', 'wpNewTitle', 'wpReason', 'nsfrom', 'username', 'mwProtect-reason', 'nsto','wpText',  'wpUploadDescription', 'wpDestFile');
	addTransliterationOption( 'searchText', 'powerSearchText', 'wpNewTitle', 'wpReason', 'nsfrom', 'username', 'mwProtect-reason', 'nsto','wpText', 'wpUploadDescription', 'wpDestFile');
	transettings.checkbox.position = "before";
	addTransliterationOption( 'wpTextbox1', 'wpSummary' );
	addOptionsToSimpleSearch();
	initMultiScheme();
	translitStateSynWithCookie('searchInput', 'wpTextbox1', 'wpSummary', 'searchText', 'powerSearchText', 'wpNewTitle', 'wpReason', 'nsfrom', 'username', 'mwProtect-reason', 'nsto','wpText');
}
 
 
if (window.addEventListener){
	window.addEventListener('load', transetup, false);
} else if (window.attachEvent){
	window.attachEvent('onload', transetup);
}
/* End of Transliteration Tool */