Changes

मीडियाविकि:Common.js

253 bytes added, 14:16, 22 जून 2014
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile"aH : "httpaHhttp://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png", "speedTip"aH : "Insert Superscript", "tagOpen"aH : "<sup>", "tagClose"aH : "</sup>", "sampleText"aH : ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile"aH : "httpaHhttp://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", "speedTip"aH : "Line break", "tagOpen"aH : "<br />", "tagClose"aH : "", "sampleText"aH : ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile"aH : "httpaHhttp://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", "speedTip"aH : "Redirect", "tagOpen"aH : "#REDIRECT [[", "tagClose"aH : "]]", "sampleText"aH : "Insert text"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile"aH : "httpaHhttp://www.kavitakosh.org/kk/images/c/cd/Button_poem.png", "speedTip"aH : "Poem tag", "tagOpen"aH : "<poem>", "tagClose"aH : "</poem>", "sampleText"aH : "rachanaa yahaa.N Taa_ip kare.nरचना यहाँ टाइप करें"};
}
var strPos = 0;
var br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ?
"ff" aH : (document.selection ? "ie" aH : false ) );
if (br == "ie") {
txtarea.focus();
function walkTheDomAndTranslit(rootEl){
var rootnode=document.getElementById(rootEl);
var walker=document.createTreealkercreateTreeWalker(rootnode, NodeFilter.SHO_TEXTSHOW_TEXT, null, false);
while (walker.nextNode()){
var tstr=unicode2itrans(walker.currentNode.textContent);
}
var tButton=document.getElementById('translitButton');
tButton.innerHTML="devanaagaree me.n badale.nदेवनागरी में बदलें";
tButton.onclick = function() {setCookie('kklipi', 'hi'); window.location.reload();};
setCookie('kklipi', 'en');
}
function unicode2itrans(strText){
var array_one = new Array( "aa", "aa.u", "a", "ee", "i", "oo", "u", "RRi", "e", "ai", "o", "au","aa", "iि", "ee", "u", "oo", "Ri", "e", "ai", "o", "au", ".n", ".N", "aH:", ".h", ".a", " aa.u","qक़", "Khख़", "Gग़", "zज़", " .Dड़", ".Dhढ़", "fफ़","k", "kh", "g", "gh", "~N", "ch", "chh", "j", "jh", "~n", "T", "Th", "D", "Dh", "N","t", "th", "d", "dh", "n", "p", "ph", "b", "bh", "m","y", "r", "l", "v", "sh", "Sh", "s", "h","Z.hY", "aZY", "a_ZV", "a_aV", "V", "W", "Y", "Z","0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", "OM" );var array_two= new Array( "aaVaaW", "aaVaa.uuW", "aVaW", "eeVeeW", "iViW", "ooVooW", "uVuW", "RRiVRRiW", "eVeW", "aiVaiW", "oVoW", "auVauW","aa", "i", "ee", "u", "oo", "Ri", "e", "ai", "o", "au", ".n", ".N", "aH", ".h", ".a", " aa.u","qYqZ", "KhYKhZ", "GYGZ", "zYzZ", " Y.DDZ", "Y.DhDhZ", "fYfZ", "kYkZ", "khYkhZ", "gYgZ", "ghYghZ", "Y~NNZ", "chYchZ", "chhYchhZ", "jYjZ", "jhYjhZ", "Y~nnZ", "TYTZ", "ThYThZ", "DYDZ", "DhYDhZ", "NYNZ","tYtZ", "thYthZ", "dYdZ", "dhYdhZ", "nYnZ", "pYpZ", "phYphZ", "bYbZ", "bhYbhZ", "mYmZ","yYyZ", "rYrZ", "lYlZ", "vYvZ", "shYshZ", "ShYShZ", "sYsZ", "hYhZ","", "a", "a_", "a_", "", "", "", "","0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", "OM" );
text2BProcessed = strText;
for (ctr=0; ctr < 95; ctr++){
//Call function to decide which lipi is to be used for displaying the page.
$(function() {
decideLipi('globalrapperglobalWrapper');
});
var selectedOption=document.getElementById(selectElement).value;
if (selectedOption!="") {
var baseloc = "httpaHhttp://kavitakosh.org/kk/";
wrapperElement.innerHTML=""
wrapperElement.innerHTML="loDi.ngलोडिंग... " + selectedOption;
self.location.href=baseloc+selectedOption;
}
$(document).ready( function() {
$(window).scroll( function() {
if ($(window).scrollTop() > $('#poet-list-anchors-container').offset().top)) $('#poet-list-anchors').addClass('floating'); else $('#poet-list-anchors').removeClass('floating');
} );
} );
 // To toggle togle the anchor list visibility
$(document).ready(function(){
$("#poet-list-letter-set-toggle").click(function(){ $("#poet-list-letter-set").toggle(1000); });
});
////////////////////////////