Difference between revisions 13118 and 13120 on bnwiktionary/** * Trasliteration Tool * @author Junaid P V ([[user:Junaidpv]]) * @date 2010-05-19 (2010-12-10) * @version 2.0 * Last update: 2010-11-28 * License: GPLv3, CC-BY-SA 3.0 */ (contracted; show full) part1 = lastpart; part2 = lastpart.replace(RegExp(presentSeq), replaceSeq); break; } } var pair = new Array(part1, part2); return pair; } ⏎ /** * from: http://www.javascripter.net/faq/settinga.htm */ function setCookie(cookieName,cookieValue,nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString(); } /** * from: http://www.javascripter.net/faq/readinga.htm */ function readCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } function enableTrasliteration(controlID, enable) { if(enable==undefined) { enable = true; } var cookieValue; if(enable) { trasliteration_fields[controlID] = true; temp_disable[controlID] = false; cookieValue = 1; } else { trasliteration_fields[controlID] = false; cookieValue = 0; } var checkbox = document.getElementById(controlID+'cb'); if(checkbox) { checkbox.checked = enable; } setC$.cookie("tr"+controlID, cookieValue); } // stop propagation of given event function stopPropagation(event) { event.cancelBubble = true; event.returnValue = false; //event.stopPropagation works in Firefox. if (event.stopPropagation) event.stopPropagation(); (contracted; show full)function translitStateSynWithCookie() { var len = arguments.length; for(var i=0;i<len; i++) { var element = document.getElementById(arguments[i]); if(element) { var state = parseInt( readC$.cookie("tr"+arguments[i])); var enable = transettings.default_state; if(state == 1) enable=true; else if(state==0) enable =false; enableTrasliteration(arguments[i],enable); } } } function writingStyleLBChanged(event) { var e = event || window.event; var listBox = (e.currentTarget || e.srcElement); transettings.current_scheme = transettings.schemes[listBox.selectedIndex]; setC$.cookie("transToolIndex", listBox.selectedIndex); } function initMultiScheme() { transettings.current_scheme = transettings.schemes[transettings.default_scheme_index]; } All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://bn.wiktionary.org/w/index.php?diff=prev&oldid=13120.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|