<!doctype html>
<html>
<head>
<title>Collator Javascript Internationalization - RJM Programming - January, 2020 ... thanks to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type='text/javascript'>
// https://www.ecma-international.org/ecma-402/1.0/
if (document.URL.indexOf('http:') == 0 && document.URL.indexOf('?viaphp=') == -1 && document.URL.indexOf('localhost') == -1) { location.href='https:' + document.URL.split('http:')[1]; }
var contentHolder = null; //document.getElementById(containerid);
// https://translate.googleusercontent.com/translate_c?depth=1&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=en&sp=nmt4&tl=zu&u=https://www.rjmprogramming.com.au/HTMLCSS/intl_collator.php&xid=17259,15700021,15700186,15700190,15700256,15700259,15700262,15700265,15700271&usg=ALkJrhhWAzCZnTiSsKwBUqbmX5muTLVLqw
var transto="https://translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=https%3A%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2Fintl_collator.php%3Fviagt%3Dy&tl=";
//transto="https://translate.googleusercontent.com/translate_c?depth=1&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=en&sp=nmt4&tl=zu&u=https%3A%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2Fintl_collator.php%3Fviagt%3Dy&tl=";
var lastlng='en';
var jbas=null;
var varray=["English","The","quick","brown","fox","jumps","over","the","lazy","dog","Jamaican","Chruu","a","kwik","di","kwik","brong","fox","a","jomp","huova","di","liezi","daag","de","yu","no","siit","Irish","An","ḃfuil","do","ċroí","ag","bualaḋ","ó","ḟaitíos","an","ġrá","a","ṁeall","lena","ṗóg","éada","ó","ṡlí","do","leasa","ṫú","D'ḟuascail","Íosa","Úrṁac","na","hÓiġe","Beannaiṫe","pór","Éava","agus","Áḋaiṁ","Dutch","Pa's","wijze","lynx","bezag","vroom","het","fikse","aquaduct","German","Falsches","Üben","von","Xylophonmusik","quält","jeden","größeren","Zwerg","German","Im","finſteren","Jagdſchloß","am","offenen","Felsquellwaſſer","patzte","der","affig-flatterhafte","kauzig-höfliche","Bäcker","über","ſeinem","verſifften","kniffligen","C-Xylophon","Norwegian","Blåbærsyltetøy","blueberry","jam","includes","every","extra","letter","used","in","Norwegian","Danish","Høj","bly","gom","vandt","fræk","sexquiz","på","wc","Swedish","Flygande","bäckasiner","söka","strax","hwila","på","mjuka","tuvor","Icelandic","Sævör","grét","áðan","því","úlpan","var","ónýt","Finnish","Törkylempijävongahdus","This","is","a","perfect","pangram","every","letter","appears","only","once","Translating","it","is","an","art","on","its","own","but","I'll","say","rude","lover's","yelp","Finnish","Albert","osti","fagotin","ja","töräytti","puhkuvan","melodian","Albert","bought","a","bassoon","and","hooted","an","impressive","melody","Finnish","On","sangen","hauskaa","että","polkupyörä","on","maanteiden","jokapäiväinen","ilmiö","It's","pleasantly","amusing","that","the","bicycle","is","an","everyday","sight","on","the","roads","Polish","Pchnąć","w","tę","łódź","jeża","lub","osiem","skrzyń","fig","Czech","Příliš","žluťoučký","kůň","úpěl","ďábelské","kódy","Slovak","Starý","kôň","na","hŕbe","kníh","žuje","tíško","povädnuté","ruže","na","stĺpe","sa","ďateľ","učí","kvákať","novú","ódu","o","živote","Greek","monotonic","ξεσκεπάζω","την","ψυχοφθόρα","βδελυγμία","Greek","polytonic","ξεσκεπάζω","τὴν","ψυχοφθόρα","βδελυγμία","Russian","Съешь","же","ещё","этих","мягких","французских","булок","да","выпей","чаю","Russian","В","чащах","юга","жил-был","цитрус","Да","но","фальшивый","экземпляр","ёъ","Bulgarian","Жълтата","дюля","беше","щастлива","че","пухът","който","цъфна","замръзна","като","гьон","Sami","Northern","Vuol","Ruoŧa","geđggiid","leat","máŋga","luosa","ja","čuovžža","Hungarian","Árvíztűrő","tükörfúrógép","Spanish","El","pingüino","Wenceslao","hizo","kilómetros","bajo","exhaustiva","lluvia","y","frío","añoraba","a","su","querido","cachorro","Portuguese","O","próximo","vôo","à","noite","sobre","o","Atlântico","põe","freqüentemente","o","único","médico","French","Les","naïfs","ægithales","hâtifs","pondant","à","Noël","où","il","gèle","sont","sûrs","d'être","déçus","en","voyant","leurs","drôles","d'œufs","abîmés","Esperanto","Eĥoŝanĝo","ĉiuĵaŭde","Hebrew","זה","כיף","סתם","לשמוע","איך","תנצח","קרפד","עץ","טוב","בגן","Japanese","Hiragana","いろはにほへど","ちりぬるを","わがよたれぞ","つねならむ","うゐのおくやま","けふこえて","あさきゆめみじ","ゑひもせず"]; // var varray=['aREST','zREST','äREST']
var flagit=false;
var conts=[], divconts=[], sparea=[], sparec='', ispare=0, sumthere=[true];
var defconts=[yehbut('var goptions = {usage: "sort", sensitivity: "variant"}; var germanarray=letterSort("de", goptions, varray, false); if (1 == 11) { alert(germanarray); }'),'var foptions = {usage: "sort", sensitivity: "accent"}; var frencharray=letterSort("fr", foptions, varray, true); if (1 == 11) { alert(frencharray); }','var joptions = {usage: "sort", sensitivity: "base"}; var japanesearray=letterSort("ja", joptions, varray, false); if (1 == 11) { alert(japanesearray); }'];
var ws='';
var isopen=false;
var lprefix="";
if (window.localStorage) {
if (('' + localStorage.getItem('intl_collator_last')) != '') {
if (document.URL.indexOf('clear=') != -1) {
localStorage.removeItem('intl_collator_last');
} else {
ws=(('' + decodeURIComponent(localStorage.getItem('intl_collator_last'))));
}
}
}
for (var iconts=1; iconts<=defconts.length; iconts++) {
//var cont1=location.search.split('cont1=')[1] ? decodeURIComponent(location.search.split('cont1=')[1].split('&')[0]).replace(/\+/g,' ') : 'var options = {style: "currency", currency: "EUR"}; var germanvarray = new Intl.NumberFormat("de-DE",options).format; if (1 == 11) { alert(germanvarray(varray)); }';
//var cont2=location.search.split('cont2=')[1] ? decodeURIComponent(location.search.split('cont2=')[1].split('&')[0]).replace(/\+/g,' ') : 'var options = {style: "currency", currency: "JPY"}; var japanesevarray = new Intl.NumberFormat("ja-JP",options); if (1 == 11) { alert(japanesevarray.format(varray)); }';
//var cont3=location.search.split('cont3=')[1] ? decodeURIComponent(location.search.split('cont3=')[1].split('&')[0]).replace(/\+/g,' ') : 'var options = {maximumSignificantDigits: 3}; var indianvarray = new Intl.NumberFormat("en-IN",options); if (1 == 11) { alert(indianvarray.format(varray)); }';
//var divcont1=cont1.replace(/\;/g, ';<br>').replace(/Format\(\"/g, 'Format("<b>').replace(/\"\,/g, '"</b>,');
sumthere.push(true);
conts.push(('' + location.search + ws.replace('?','&')).split('cont' + iconts + '=')[1] ? decodeURIComponent(('' + location.search + ws.replace('?','&')).split('cont' + iconts + '=')[1].split('&')[0]).replace(/\+/g,' ') : defconts[eval(-1 + iconts)]);
sparec=conts[eval(-1 + conts.length)];
if (!flagit && sparec != defconts[eval(-1 + conts.length)]) {
flagit=true;
setTimeout(pregt, 2000);
}
sparea=sparec.split('Sort("');
for (ispare=1; ispare<sparea.length; ispare++) {
sparec=sparec.replace('Sort("' + sparea[ispare].split('"')[0] + '"', 'Sort("<b>' + sparea[ispare].split('"')[0] + '</b>"');
}
sparea=sparec.split('["');
for (ispare=1; ispare<sparea.length; ispare++) {
sparec=sparec.replace('["' + sparea[ispare].split('"]')[0] + '"]', '["<b>' + sparea[ispare].split('"]')[0].replace(/\,\ /g, ',').replace(/\"\,/g, '</b>",').replace(/\,\"/g, ',"<b>') + '</b>"]');
}
divconts.push(sparec.replace(/\;\ \}/g, '~ }').replace(/\;\}/g, '~}').replace(/\;/g, ';<br>').replace(/\~/g, ';'));
}
var usuffix='';
var lastastr='';
var indet=null;
function detclick(inadet) {
//isopen=inadet.getAttribute('open');
indet=inadet;
setTimeout(postdetclick, 500);
}
function yehbut(defzero) {
var outdef=defzero;
// var goptions = {usage: "sort", sensitivity: "variant"};
// var germanarray=letterSort("de", goptions, varray, false);
// if (1 == 11) { alert(germanarray); }
var ropt = Intl.Collator().resolvedOptions();
outdef = ' var goptions = {usage: "' + ('' + ropt.usage).replace('undefined','sort') + '", sensitivity: "' + ('' + ropt.sensitivity).replace('undefined','variant') + '"}; ' + String.fromCharCode(32);
outdef += ' var localarray=letterSort("' + ('' + ropt.locale).replace('undefined','en-US').substring(0,2) + '", goptions, varray, false); ' + String.fromCharCode(32);
outdef += ' if (1 == 11) { alert(localarray); } ' + String.fromCharCode(32);
return outdef;
}
function postdetclick() { //indet) {
var dnum=('' + indet.id).replace('det','');
if (document.getElementById(('' + indet.id).replace('det','sum'))) {
if (('' + document.getElementById(('' + indet.id).replace('det','sum')).title) == '') {
document.getElementById(('' + indet.id).replace('det','sum')).title=document.getElementById(('' + indet.id).replace('det','sum')).innerHTML; //.length;
}
sumthere[eval('' + dnum)]=!sumthere[eval('' + dnum)];
var issthere=sumthere[eval('' + dnum)];
isopen=indet.open; //indet.getAttribute('open');
if (!isopen) { //issthere) {
sumthere[eval('' + dnum)]=true;
//document.getElementById(('' + indet.id).replace('det','sum')).style.color='black';
document.getElementById(('' + indet.id).replace('det','sum')).innerHTML=document.getElementById(('' + indet.id).replace('det','sum')).title; //indet.innerHTML.substring(0, eval('' + document.getElementById(('' + indet.id).replace('det','sum')).title));
//document.getElementById(('' + indet.id).replace('det','sum')).style.visibility='visible';
//alert('black');
} else {
sumthere[eval('' + dnum)]=false;
//document.getElementById(('' + indet.id).replace('det','sum')).style.color='transparent';
document.getElementById(('' + indet.id).replace('det','sum')).innerHTML='';
//alert('transparent');
//document.getElementById(('' + indet.id).replace('det','sum')).style.visibility='hidden';
}
}
}
function detsumit(what,numq) {
if (what.length < 500) {
returnwhat;
}
return '<details onclick=detclick(this); id=det' + numq + '><summary id=sum' + numq + '>' + what.substring(0,120) + ' ... </summary>' + what + '</details>';
}
function clearws() {
if (window.localStorage) {
if (('' + localStorage.getItem('intl_collator_last')) != '') {
localStorage.removeItem('intl_collator_last');
ws='';
}
}
}
function predoit(jsis) {
var cline=jsis.replace(/\;\ \}/g, '~ }').replace(/\;\}/g, '~}').replace(/\;/g, ';' + String.fromCharCode(10)).replace(/\<br\>/g, String.fromCharCode(10)).replace(/\~/g, ';');
var tdret='';
if (cline.indexOf('var ') == -1) {
alert('Sorry, does not compute.');
} else {
var clinebits=cline.split('var ');
cline+=String.fromCharCode(10) + " tdret=detsumit(" + clinebits[eval(-1 + clinebits.length)].split('=')[0].trim() + ".toString().replace(/\,/g,', '),0); " + String.fromCharCode(10);
var reseval="";
//if (cline.split('new Intl.NumberFormat')[1].indexOf('.format;') != -1) {
// reseval=" tdret=" + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10))[eval(-1 + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10)).length)].replace('var ','').replace('const ','').replace('=','').trim() + "(varray);";
//} else {
// reseval=" tdret=" + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10))[eval(-1 + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10)).length)].replace('var ','').replace('const ','').replace('=','').trim() + ".format(varray);";
//}
var codelines=cline.split(String.fromCharCode(10));
var evalline="";
for (ij=0; ij<codelines.length; ij++) {
if (ij == 0) {
evalline+=(" var varray=[\"English\",\"The\",\"quick\",\"brown\",\"fox\",\"jumps\",\"over\",\"the\",\"lazy\",\"dog\",\"Jamaican\",\"Chruu\",\"a\",\"kwik\",\"di\",\"kwik\",\"brong\",\"fox\",\"a\",\"jomp\",\"huova\",\"di\",\"liezi\",\"daag\",\"de\",\"yu\",\"no\",\"siit\",\"Irish\",\"An\",\"ḃfuil\",\"do\",\"ċroí\",\"ag\",\"bualaḋ\",\"ó\",\"ḟaitíos\",\"an\",\"ġrá\",\"a\",\"ṁeall\",\"lena\",\"ṗóg\",\"éada\",\"ó\",\"ṡlí\",\"do\",\"leasa\",\"ṫú\",\"D'ḟuascail\",\"Íosa\",\"Úrṁac\",\"na\",\"hÓiġe\",\"Beannaiṫe\",\"pór\",\"Éava\",\"agus\",\"Áḋaiṁ\",\"Dutch\",\"Pa's\",\"wijze\",\"lynx\",\"bezag\",\"vroom\",\"het\",\"fikse\",\"aquaduct\",\"German\",\"Falsches\",\"Üben\",\"von\",\"Xylophonmusik\",\"quält\",\"jeden\",\"größeren\",\"Zwerg\",\"German\",\"Im\",\"finſteren\",\"Jagdſchloß\",\"am\",\"offenen\",\"Felsquellwaſſer\",\"patzte\",\"der\",\"affig-flatterhafte\",\"kauzig-höfliche\",\"Bäcker\",\"über\",\"ſeinem\",\"verſifften\",\"kniffligen\",\"C-Xylophon\",\"Norwegian\",\"Blåbærsyltetøy\",\"blueberry\",\"jam\",\"includes\",\"every\",\"extra\",\"letter\",\"used\",\"in\",\"Norwegian\",\"Danish\",\"Høj\",\"bly\",\"gom\",\"vandt\",\"fræk\",\"sexquiz\",\"på\",\"wc\",\"Swedish\",\"Flygande\",\"bäckasiner\",\"söka\",\"strax\",\"hwila\",\"på\",\"mjuka\",\"tuvor\",\"Icelandic\",\"Sævör\",\"grét\",\"áðan\",\"því\",\"úlpan\",\"var\",\"ónýt\",\"Finnish\",\"Törkylempijävongahdus\",\"This\",\"is\",\"a\",\"perfect\",\"pangram\",\"every\",\"letter\",\"appears\",\"only\",\"once\",\"Translating\",\"it\",\"is\",\"an\",\"art\",\"on\",\"its\",\"own\",\"but\",\"I'll\",\"say\",\"rude\",\"lover's\",\"yelp\",\"Finnish\",\"Albert\",\"osti\",\"fagotin\",\"ja\",\"töräytti\",\"puhkuvan\",\"melodian\",\"Albert\",\"bought\",\"a\",\"bassoon\",\"and\",\"hooted\",\"an\",\"impressive\",\"melody\",\"Finnish\",\"On\",\"sangen\",\"hauskaa\",\"että\",\"polkupyörä\",\"on\",\"maanteiden\",\"jokapäiväinen\",\"ilmiö\",\"It's\",\"pleasantly\",\"amusing\",\"that\",\"the\",\"bicycle\",\"is\",\"an\",\"everyday\",\"sight\",\"on\",\"the\",\"roads\",\"Polish\",\"Pchnąć\",\"w\",\"tę\",\"łódź\",\"jeża\",\"lub\",\"osiem\",\"skrzyń\",\"fig\",\"Czech\",\"Příliš\",\"žluťoučký\",\"kůň\",\"úpěl\",\"ďábelské\",\"kódy\",\"Slovak\",\"Starý\",\"kôň\",\"na\",\"hŕbe\",\"kníh\",\"žuje\",\"tíško\",\"povädnuté\",\"ruže\",\"na\",\"stĺpe\",\"sa\",\"ďateľ\",\"učí\",\"kvákať\",\"novú\",\"ódu\",\"o\",\"živote\",\"Greek\",\"monotonic\",\"ξεσκεπάζω\",\"την\",\"ψυχοφθόρα\",\"βδελυγμία\",\"Greek\",\"polytonic\",\"ξεσκεπάζω\",\"τὴν\",\"ψυχοφθόρα\",\"βδελυγμία\",\"Russian\",\"Съешь\",\"же\",\"ещё\",\"этих\",\"мягких\",\"французских\",\"булок\",\"да\",\"выпей\",\"чаю\",\"Russian\",\"В\",\"чащах\",\"юга\",\"жил-был\",\"цитрус\",\"Да\",\"но\",\"фальшивый\",\"экземпляр\",\"ёъ\",\"Bulgarian\",\"Жълтата\",\"дюля\",\"беше\",\"щастлива\",\"че\",\"пухът\",\"който\",\"цъфна\",\"замръзна\",\"като\",\"гьон\",\"Sami\",\"Northern\",\"Vuol\",\"Ruoŧa\",\"geđggiid\",\"leat\",\"máŋga\",\"luosa\",\"ja\",\"čuovžža\",\"Hungarian\",\"Árvíztűrő\",\"tükörfúrógép\",\"Spanish\",\"El\",\"pingüino\",\"Wenceslao\",\"hizo\",\"kilómetros\",\"bajo\",\"exhaustiva\",\"lluvia\",\"y\",\"frío\",\"añoraba\",\"a\",\"su\",\"querido\",\"cachorro\",\"Portuguese\",\"O\",\"próximo\",\"vôo\",\"à\",\"noite\",\"sobre\",\"o\",\"Atlântico\",\"põe\",\"freqüentemente\",\"o\",\"único\",\"médico\",\"French\",\"Les\",\"naïfs\",\"ægithales\",\"hâtifs\",\"pondant\",\"à\",\"Noël\",\"où\",\"il\",\"gèle\",\"sont\",\"sûrs\",\"d'être\",\"déçus\",\"en\",\"voyant\",\"leurs\",\"drôles\",\"d'œufs\",\"abîmés\",\"Esperanto\",\"Eĥoŝanĝo\",\"ĉiuĵaŭde\",\"Hebrew\",\"זה\",\"כיף\",\"סתם\",\"לשמוע\",\"איך\",\"תנצח\",\"קרפד\",\"עץ\",\"טוב\",\"בגן\",\"Japanese\",\"Hiragana\",\"いろはにほへど\",\"ちりぬるを\",\"わがよたれぞ\",\"つねならむ\",\"うゐのおくやま\",\"けふこえて\",\"あさきゆめみじ\",\"ゑひもせず\"]; ");
evalline+=(" function letterSort(lang, myoptions, letters, reverse) { letters.sort(new Intl.Collator(lang,myoptions).compare); if (reverse) { return letters.reverse(); } else { return letters; } }");
}
if (codelines[ij].trim() != '') {
//alert(codelines[ij]);
evalline+=(" " + codelines[ij]);
}
}
//alert(reseval);
evalline+=(reseval);
//alert(evalline);
eval(evalline);
//alert(wasbut);
//document.getElementById('tdb' + numis).innerHTML=wasbut;
//alert(document.getElementById('ejc' + numis).innerHTML);
}
return tdret;
}
function letterSort(lang, myoptions, letters, reverse) { letters.sort(new Intl.Collator(lang,myoptions).compare); if (reverse) { return letters.reverse(); } else { return letters; } }
function doit(thisbut) {
var ij;
var numis=eval(thisbut.id.replace('b',''));
//var cline=document.getElementById('ejc' + numis).innerHTML.replace(/\<br\>/g, String.fromCharCode(10));
var divele = document.getElementById('ejc' + numis);
var cline=(divele.innerText || divele.contentWindow || divele.contentDocument).replace(/\;\ \}/g, '~ }').replace(/\;\}/g, '~}').replace(/\;/g, ';' + String.fromCharCode(10)).replace(/\<br\>/g, String.fromCharCode(10)).replace(/\~/g, ';');
if (cline.indexOf('var ') == -1) {
alert('Sorry, does not compute.');
} else {
var clinebits=cline.split('var ');
cline+=String.fromCharCode(10) + " document.getElementById('r" + numis + "').innerHTML=detsumit(" + clinebits[eval(-1 + clinebits.length)].split('=')[0].trim() + ".toString().replace(/\,/g,', ')," + numis + "); " + String.fromCharCode(10);
var reseval="";
var wasbut=thisbut.outerHTML;
//if (cline.split('new Intl.NumberFormat')[1].indexOf('.format;') != -1) {
// reseval=" document.getElementById('r" + numis + "').innerHTML=" + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10))[eval(-1 + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10)).length)].replace('var ','').replace('const ','').replace('=','').trim() + "(varray);";
//} else {
// reseval=" document.getElementById('r" + numis + "').innerHTML=" + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10))[eval(-1 + cline.split('new Intl.NumberFormat')[0].split(String.fromCharCode(10)).length)].replace('var ','').replace('const ','').replace('=','').trim() + ".format(varray);";
//}
var codelines=cline.split(String.fromCharCode(10));
var evalline="";
for (ij=0; ij<codelines.length; ij++) {
if (ij == 0) {
evalline+=(" var varray=[\"English\",\"The\",\"quick\",\"brown\",\"fox\",\"jumps\",\"over\",\"the\",\"lazy\",\"dog\",\"Jamaican\",\"Chruu\",\"a\",\"kwik\",\"di\",\"kwik\",\"brong\",\"fox\",\"a\",\"jomp\",\"huova\",\"di\",\"liezi\",\"daag\",\"de\",\"yu\",\"no\",\"siit\",\"Irish\",\"An\",\"ḃfuil\",\"do\",\"ċroí\",\"ag\",\"bualaḋ\",\"ó\",\"ḟaitíos\",\"an\",\"ġrá\",\"a\",\"ṁeall\",\"lena\",\"ṗóg\",\"éada\",\"ó\",\"ṡlí\",\"do\",\"leasa\",\"ṫú\",\"D'ḟuascail\",\"Íosa\",\"Úrṁac\",\"na\",\"hÓiġe\",\"Beannaiṫe\",\"pór\",\"Éava\",\"agus\",\"Áḋaiṁ\",\"Dutch\",\"Pa's\",\"wijze\",\"lynx\",\"bezag\",\"vroom\",\"het\",\"fikse\",\"aquaduct\",\"German\",\"Falsches\",\"Üben\",\"von\",\"Xylophonmusik\",\"quält\",\"jeden\",\"größeren\",\"Zwerg\",\"German\",\"Im\",\"finſteren\",\"Jagdſchloß\",\"am\",\"offenen\",\"Felsquellwaſſer\",\"patzte\",\"der\",\"affig-flatterhafte\",\"kauzig-höfliche\",\"Bäcker\",\"über\",\"ſeinem\",\"verſifften\",\"kniffligen\",\"C-Xylophon\",\"Norwegian\",\"Blåbærsyltetøy\",\"blueberry\",\"jam\",\"includes\",\"every\",\"extra\",\"letter\",\"used\",\"in\",\"Norwegian\",\"Danish\",\"Høj\",\"bly\",\"gom\",\"vandt\",\"fræk\",\"sexquiz\",\"på\",\"wc\",\"Swedish\",\"Flygande\",\"bäckasiner\",\"söka\",\"strax\",\"hwila\",\"på\",\"mjuka\",\"tuvor\",\"Icelandic\",\"Sævör\",\"grét\",\"áðan\",\"því\",\"úlpan\",\"var\",\"ónýt\",\"Finnish\",\"Törkylempijävongahdus\",\"This\",\"is\",\"a\",\"perfect\",\"pangram\",\"every\",\"letter\",\"appears\",\"only\",\"once\",\"Translating\",\"it\",\"is\",\"an\",\"art\",\"on\",\"its\",\"own\",\"but\",\"I'll\",\"say\",\"rude\",\"lover's\",\"yelp\",\"Finnish\",\"Albert\",\"osti\",\"fagotin\",\"ja\",\"töräytti\",\"puhkuvan\",\"melodian\",\"Albert\",\"bought\",\"a\",\"bassoon\",\"and\",\"hooted\",\"an\",\"impressive\",\"melody\",\"Finnish\",\"On\",\"sangen\",\"hauskaa\",\"että\",\"polkupyörä\",\"on\",\"maanteiden\",\"jokapäiväinen\",\"ilmiö\",\"It's\",\"pleasantly\",\"amusing\",\"that\",\"the\",\"bicycle\",\"is\",\"an\",\"everyday\",\"sight\",\"on\",\"the\",\"roads\",\"Polish\",\"Pchnąć\",\"w\",\"tę\",\"łódź\",\"jeża\",\"lub\",\"osiem\",\"skrzyń\",\"fig\",\"Czech\",\"Příliš\",\"žluťoučký\",\"kůň\",\"úpěl\",\"ďábelské\",\"kódy\",\"Slovak\",\"Starý\",\"kôň\",\"na\",\"hŕbe\",\"kníh\",\"žuje\",\"tíško\",\"povädnuté\",\"ruže\",\"na\",\"stĺpe\",\"sa\",\"ďateľ\",\"učí\",\"kvákať\",\"novú\",\"ódu\",\"o\",\"živote\",\"Greek\",\"monotonic\",\"ξεσκεπάζω\",\"την\",\"ψυχοφθόρα\",\"βδελυγμία\",\"Greek\",\"polytonic\",\"ξεσκεπάζω\",\"τὴν\",\"ψυχοφθόρα\",\"βδελυγμία\",\"Russian\",\"Съешь\",\"же\",\"ещё\",\"этих\",\"мягких\",\"французских\",\"булок\",\"да\",\"выпей\",\"чаю\",\"Russian\",\"В\",\"чащах\",\"юга\",\"жил-был\",\"цитрус\",\"Да\",\"но\",\"фальшивый\",\"экземпляр\",\"ёъ\",\"Bulgarian\",\"Жълтата\",\"дюля\",\"беше\",\"щастлива\",\"че\",\"пухът\",\"който\",\"цъфна\",\"замръзна\",\"като\",\"гьон\",\"Sami\",\"Northern\",\"Vuol\",\"Ruoŧa\",\"geđggiid\",\"leat\",\"máŋga\",\"luosa\",\"ja\",\"čuovžža\",\"Hungarian\",\"Árvíztűrő\",\"tükörfúrógép\",\"Spanish\",\"El\",\"pingüino\",\"Wenceslao\",\"hizo\",\"kilómetros\",\"bajo\",\"exhaustiva\",\"lluvia\",\"y\",\"frío\",\"añoraba\",\"a\",\"su\",\"querido\",\"cachorro\",\"Portuguese\",\"O\",\"próximo\",\"vôo\",\"à\",\"noite\",\"sobre\",\"o\",\"Atlântico\",\"põe\",\"freqüentemente\",\"o\",\"único\",\"médico\",\"French\",\"Les\",\"naïfs\",\"ægithales\",\"hâtifs\",\"pondant\",\"à\",\"Noël\",\"où\",\"il\",\"gèle\",\"sont\",\"sûrs\",\"d'être\",\"déçus\",\"en\",\"voyant\",\"leurs\",\"drôles\",\"d'œufs\",\"abîmés\",\"Esperanto\",\"Eĥoŝanĝo\",\"ĉiuĵaŭde\",\"Hebrew\",\"זה\",\"כיף\",\"סתם\",\"לשמוע\",\"איך\",\"תנצח\",\"קרפד\",\"עץ\",\"טוב\",\"בגן\",\"Japanese\",\"Hiragana\",\"いろはにほへど\",\"ちりぬるを\",\"わがよたれぞ\",\"つねならむ\",\"うゐのおくやま\",\"けふこえて\",\"あさきゆめみじ\",\"ゑひもせず\"]; ");
evalline+=(" function letterSort(lang, myoptions, letters, reverse) { letters.sort(new Intl.Collator(lang,myoptions).compare); if (reverse) { return letters.reverse(); } else { return letters; } }");
}
if (codelines[ij].trim() != '') {
//alert(codelines[ij]);
evalline+=(" " + codelines[ij]);
}
}
//alert(reseval);
evalline+=(reseval);
//alert(evalline);
eval(evalline);
//alert(wasbut);
//document.getElementById('tdb' + numis).innerHTML=wasbut;
//alert(document.getElementById('ejc' + numis).innerHTML);
}
}
function loadresults() {
//document.getElementById('thr').innerHTML+=' ' + ('' + document.referrer);
if (('' + document.referrer).indexOf('tl=') != -1) { lprefix=('' + document.referrer).split('tl=')[1].split('&')[0].split('#')[0]; }
var adone=false;
var ihsele=document.getElementById('sele').innerHTML;
var ihseles=ihsele.split(' data-ctyname="');
for (var jih=eval(-1 + ihseles.length); jih>=1; jih--) {
ihsele=ihsele.replace(' data-ctyname="' + ihseles[jih], ' title="' + ihseles[jih].split('"')[0] + ' currency" data-ctyname=' + "'" + ihseles[jih].replace('"',"'"));
}
document.getElementById('sele').innerHTML=ihsele;
contentHolder = document.getElementById('langi');
var bs=document.getElementsByTagName("button");
for (var ibs=0; ibs<bs.length; ibs++) {
bs[ibs].click();
}
var bas=document.getElementsByTagName("a");
for (var ibas=0; ibas<bas.length; ibas++) {
if (!adone && ('' + bas[ibas].className).indexOf('updatea') != -1 && document.URL.indexOf('translate.googleusercontent') == -1 && document.URL.indexOf('google.com/translate') != -1) { adone=true; jbas=bas[ibas]; bas[ibas].style.backgroundColor='orange'; bas[ibas].click(); }
}
setTimeout(amaybe, 2000);
}
function amaybe() {
if (jbas) {
jbas.click();
}
}
function athn() {
document.getElementById('xiframe').style.display='inline-block';
}
function precopytoclipboard() {
var astr=(document.getElementById('langi').innerText || document.getElementById('langi').contentWindow || document.getElementById('langi').contentDocument); //document.getElementById('langi').innerHTML;
if (document.getElementById('langi').innerHTML == astr && astr.indexOf('-') != -1) {
var arest=astr.replace(astr.split('-')[0],'');
document.getElementById('langi').innerHTML=astr.split('-')[0] + '<span style="font-weight:lighter;">' + arest + '</span>';
}
if (astr.trim() != '' && lastastr != astr) { if (astr.replace('_','-').split('-')[0] != lastlng) { lastlng=astr.replace('_','-').split('-')[0]; document.getElementById('otable').style.display='inline-block'; document.getElementById('translate').style.display='inline-block'; document.getElementById('translatenw').style.display='inline-block'; document.getElementById('translate').title=transto.replace('%3Dy&tl','%3D' + Math.floor(Math.random() * 198765434) + '&tl') + lastlng; document.getElementById('translatenw').title=transto.replace('%3Dy&tl','%3D' + Math.floor(Math.random() * 198765434) + '&tl').replace('viagt','vianw') + lastlng.toUpperCase(); } lastastr=astr; if (1 == 11) { SelectText(document.getElementById('langi')); copytoclipboard(astr); } else { copy_to_clipboard('langi'); } setTimeout(athn, 3000); }
setTimeout(precopytoclipboard, 1000);
}
function copytoclipboard(str) { // thanks to https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f
var el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
}
function copy_to_clipboard(containerid) {
if (1 == 11) {
// Create a new textarea element and give it id='temp_element'
var textarea = document.createElement('textarea');
textarea.id = 'temp_element';
// Optional step to make less noise on the page, if any!
textarea.style.height = 0;
// Now append it to your page somewhere, I chose <body>
document.body.appendChild(textarea);
// Give our textarea a value of whatever inside the div of id=containerid
var divele = document.getElementById(containerid);
textarea.value = (divele.innerText || divele.contentWindow || divele.contentDocument);
//document.getElementById('shuh').innerHTML=textarea.value + ' ... is in clipboard now';
// Now copy whatever inside the textarea to clipboard
var selector = document.querySelector('#temp_element');
selector.select();
document.execCommand('copy');
// Remove the textarea
document.body.removeChild(textarea);
}
//var contentHolder = document.getElementById(containerid);
// We will need a range object and a selection.
var range = document.createRange(),
selection = window.getSelection();
// Clear selection from any previous data.
selection.removeAllRanges();
// Make the range select the entire content of the contentHolder paragraph.
range.selectNodeContents(contentHolder);
// Add that range to the selection.
selection.addRange(range);
// Copy the selection to clipboard.
document.execCommand('copy');
// Clear selection if you want to.
selection.removeAllRanges();
}
function canstart(iois) {
setTimeout(precopytoclipboard, 1000);
}
function fixallthese(ovis) {
var found=false;
var tdbits=[];
var findthis='';
var oves=ovis.value.split(':');
if (oves.length > 1) {
var tds=document.getElementsByTagName("td");
for (var itds=0; itds<tds.length; itds++) {
if (('' + tds[itds].className) == 'edt') {
if (tds[itds].innerHTML.indexOf(oves[0].trim() + ':') != -1) {
found=true;
tdbits=tds[itds].innerHTML.split(oves[0].trim() + ':');
tds[itds].innerHTML=tds[itds].innerHTML.replace(oves[0].trim() + ':' + tdbits[1].split(',')[0].split('}')[0].split(' data-geo=')[0], ovis.value.trim());
} else if (tds[itds].innerHTML.indexOf('}') != -1) {
found=true;
tds[itds].innerHTML=tds[itds].innerHTML.replace('{', '{' + ovis.value.trim() + ', ');
}
}
}
}
if (found) {
gtidea(ovis,'');
var bs=document.getElementsByTagName("button");
for (var ibs=0; ibs<bs.length; ibs++) {
bs[ibs].click();
}
}
}
function pregt() {
var divele=null, cline='';
usuffix='';
var usuffdelim='?cont1=';
for (var numis=1; numis<=defconts.length; numis++) {
divele = document.getElementById('ejc' + numis);
cline=(divele.innerText || divele.contentWindow || divele.contentDocument).replace(/\;\ \}/g, '~ }').replace(/\;\}/g, '~}').replace(/\;/g, ';' + String.fromCharCode(10)).replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<b\>/g, '').replace(/\<\/b\>/g, '').replace(/\~/g, ';');
while (cline.indexOf(String.fromCharCode(10)) != -1) {
cline=cline.replace(String.fromCharCode(10), ' ');
}
usuffix+=usuffdelim + encodeURIComponent(cline);
usuffdelim='&cont' + eval(1 + eval('' + numis)) + '=';
}
if (window.localStorage && usuffix != '') {
if (('' + localStorage.getItem('intl_collator_last')) != '') { localStorage.removeItem('intl_collator_last'); }
//alert('storing ' + usuffix);
localStorage.setItem('intl_collator_last', encodeURIComponent(usuffix));
}
}
function gtidea(divo, tdid) {
var divele=null, cline='';
usuffix='';
var usuffdelim='?';
for (var numis=1; numis<=defconts.length; numis++) {
divele = document.getElementById('ejc' + numis);
cline=(divele.innerText || divele.contentWindow || divele.contentDocument).replace(/\;\ \}/g, '~ }').replace(/\;\}/g, '~}').replace(/\;/g, ';' + String.fromCharCode(10)).replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<b\>/g, '').replace(/\<\/b\>/g, '').replace(/\~/g, ';');
while (cline.indexOf(String.fromCharCode(10)) != -1) {
cline=cline.replace(String.fromCharCode(10), ' ');
}
usuffix+=usuffdelim + 'cont' + numis + '=' + encodeURIComponent(cline);
usuffdelim='&';
}
if (window.localStorage && usuffix != '') {
if (('' + localStorage.getItem('intl_collator_last')) != '') { localStorage.removeItem('intl_collator_last'); }
//alert('Storing ' + usuffix);
localStorage.setItem('intl_collator_last', encodeURIComponent(usuffix));
}
if (1 == 11) {
if (document.URL.indexOf('viagt=') != -1) {
if (tdid != '') { document.getElementById(tdid).innerHTML+='065: ' + divo.id; } else { document.getElementById('tdb1').innerHTML+='065: ' + divo.id; }
} else {
if (window.top) {
if (top.document.URL.indexOf('translate.google.com/') != -1) {
if (tdid != '') { document.getElementById(tdid).innerHTML+='65: ' + divo.id; } else { document.getElementById('tdb1').innerHTML+='65: ' + divo.id; }
//top.document.title+='65: ' + divo.id;
//alert('65: ' + divo.id);
} else {
if (tdid != '') { document.getElementById(tdid).innerHTML+='-65: ' + divo.id; } else { document.getElementById('tdb1').innerHTML+='-65: ' + divo.id; }
//top.document.title+='-65: ' + divo.id;
//alert('-65: ' + divo.id);
}
} else if (document.URL.indexOf('translate.google.com/') != -1) {
if (tdid != '') { document.getElementById(tdid).innerHTML+='165: ' + divo.id; } else { document.getElementById('tdb1').innerHTML+='165: ' + divo.id; }
//document.title+='165: ' + divo.id;
//alert('165: ' + divo.id);
} else {
if (tdid != '') { document.getElementById(tdid).innerHTML+='-165: ' + divo.id; } else { document.getElementById('tdb1').innerHTML+='-165: ' + divo.id; }
//document.title+='-165: ' + divo.id;
//alert('-165: ' + divo.id);
}
}
}
}
function addtourl(aois) {
if (1 == 56) { aois.href=aois.href.split('?')[0] + usuffix; }
}
</script>
<style>
.edt { background-color: #f0f0f0; }
iframe { background-color: orange; }
</style>
</head>
<body onload="loadresults();">
<h1>Collator Javascript Internationalization</h1>
<h3 style=display:inline-block;>RJM Programming <a id=aw onclick='clearws();' href='//www.rjmprogramming.com.au/HTMLCSS/intl_collator.html?vianw=y' title='Back to defaults'>-</a> January, 2020</h3><span> <a style='text-decoration:none;cursor:pointer;' href='//www.rjmprogramming.com.au/HTMLCSS/intl_use.php?vianw=y' title='DateTime Internationalization'>...</a> Language Code of <a style='text-decoration:none;cursor:pointer;' href='//www.rjmprogramming.com.au/HTMLCSS/intl_currency.php?vianw=y' title='Currency or Number Internationalization'>...</a> </span> <iframe id=xiframe onload=canstart(this); style=display:none;height:50px; src='//www.rjmprogramming.com.au/PHP/speech_idea.php?onlysome=y'></iframe> <span> <a style='text-decoration:none;cursor:pointer;' href='//www.rjmprogramming.com.au/HTMLCSS/intl_collator.php?vianw=y' title='Collator Internationalization'>...</a> you may copy into clipboard ... </span> <div style=display:inline-block;width:60px;font-weight:bold; id=langi></div> <span id=shuh style=display:none;> ... is in clipboard now</span> <table id=otable style=display:none;><tr><th><input id=translate title='https://translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2Fintl_use.php%3Fviagt%3Dy&tl=en' onclick="if (1 == 11) { window.open(this.title,'_blank'); } else { window.open(this.title,'_blank','top=100,left=100,width=800,height=800'); }" type=button style='display:none;background-color:yellow;' value=Translate></input></th><tr><tr><th><input id=translatenw title='https://translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2Fintl_use.php%3Fviagt%3Dy&tl=EN' onclick="if (1 == 1) { window.open(this.title,'_blank'); } else { window.open(this.title,'_blank','top=100,left=100,width=800,height=800'); }" type=button style='display:none;background-color:yellow;' value='New Window'></input></th></tr></table>
<select onchange=fixallthese(this); id="sele" style="display:inline-block;width:250px;" translate=no>
<option value='' translate=yes>Global change options below ...</option>
<option value=' usage: "sort" '> usage: "sort" </option>
<option value=' usage: "search" '> usage: "search" </option>
<option value=' sensitivity: "base" '> sensitivity: "base" </option>
<option value=' sensitivity: "accent" '> sensitivity: "accent" </option>
<option value=' sensitivity: "case" '> sensitivity: "case" </option>
<option value=' sensitivity: "variant" '> sensitivity: "variant" </option>
<option value=' ignorePunctuation: false '> ignorePunctuation: false </option>
<option value=' ignorePunctuation: true '> ignorePunctuation: true </option>
<option value=' numeric: false '> numeric: false </option>
<option value=' numeric: true '> numeric: true </option>
<option value=' caseFirst: "upper" '> caseFirst: "upper" </option>
<option value=' caseFirst: "lower" '> caseFirst: "lower" </option>
<option value=' caseFirst: "false" '> caseFirst: "false" </option>
<option value=' localeMatcher: "lookup" '> localeMatcher: "lookup" </option>
<option value=' localeMatcher: "best fit" '> localeMatcher: "best fit" </option>
</select>
<table border=20 style='width:100%;'>
<tr><th id=thr>Result</th><th class=edt>Editable Javascript Code<br><br><div style=font-weight:normal;> ... in addition to ...</div><div style=font-weight:normal; translate=no><br><br>
function letterSort(lang, myoptions, letters, reverse) { <br>
letters.sort(new Intl.Collator(lang,myoptions).compare); <br>
if (reverse) { <br>
return letters.reverse(); <br>
} else { <br>
return letters; <br>
} <br>
}<br>
<br>
<details onclick=detclick(this); id=det0><summary id=sum0>var varray=["English", "The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog", "Jamaican", "Chruu", "a", "kwik", "di", "kwik", ... ];</summary>
var varray=["English", "The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog", "Jamaican", "Chruu", "a", "kwik", "di", "kwik", "brong", "fox", "a", "jomp", "huova", "di", "liezi", "daag", "de", "yu", "no", "siit", "Irish", "An", "ḃfuil", "do", "ċroí", "ag", "bualaḋ", "ó", "ḟaitíos", "an", "ġrá", "a", "ṁeall", "lena", "ṗóg", "éada", "ó", "ṡlí", "do", "leasa", "ṫú", "D'ḟuascail", "Íosa", "Úrṁac", "na", "hÓiġe", "Beannaiṫe", "pór", "Éava", "agus", "Áḋaiṁ", "Dutch", "Pa's", "wijze", "lynx", "bezag", "vroom", "het", "fikse", "aquaduct", "German", "Falsches", "Üben", "von", "Xylophonmusik", "quält", "jeden", "größeren", "Zwerg", "German", "Im", "finſteren", "Jagdſchloß", "am", "offenen", "Felsquellwaſſer", "patzte", "der", "affig-flatterhafte", "kauzig-höfliche", "Bäcker", "über", "ſeinem", "verſifften", "kniffligen", "C-Xylophon", "Norwegian", "Blåbærsyltetøy", "blueberry", "jam", "includes", "every", "extra", "letter", "used", "in", "Norwegian", "Danish", "Høj", "bly", "gom", "vandt", "fræk", "sexquiz", "på", "wc", "Swedish", "Flygande", "bäckasiner", "söka", "strax", "hwila", "på", "mjuka", "tuvor", "Icelandic", "Sævör", "grét", "áðan", "því", "úlpan", "var", "ónýt", "Finnish", "Törkylempijävongahdus", "This", "is", "a", "perfect", "pangram", "every", "letter", "appears", "only", "once", "Translating", "it", "is", "an", "art", "on", "its", "own", "but", "I'll", "say", "rude", "lover's", "yelp", "Finnish", "Albert", "osti", "fagotin", "ja", "töräytti", "puhkuvan", "melodian", "Albert", "bought", "a", "bassoon", "and", "hooted", "an", "impressive", "melody", "Finnish", "On", "sangen", "hauskaa", "että", "polkupyörä", "on", "maanteiden", "jokapäiväinen", "ilmiö", "It's", "pleasantly", "amusing", "that", "the", "bicycle", "is", "an", "everyday", "sight", "on", "the", "roads", "Polish", "Pchnąć", "w", "tę", "łódź", "jeża", "lub", "osiem", "skrzyń", "fig", "Czech", "Příliš", "žluťoučký", "kůň", "úpěl", "ďábelské", "kódy", "Slovak", "Starý", "kôň", "na", "hŕbe", "kníh", "žuje", "tíško", "povädnuté", "ruže", "na", "stĺpe", "sa", "ďateľ", "učí", "kvákať", "novú", "ódu", "o", "živote", "Greek", "monotonic", "ξεσκεπάζω", "την", "ψυχοφθόρα", "βδελυγμία", "Greek", "polytonic", "ξεσκεπάζω", "τὴν", "ψυχοφθόρα", "βδελυγμία", "Russian", "Съешь", "же", "ещё", "этих", "мягких", "французских", "булок", "да", "выпей", "чаю", "Russian", "В", "чащах", "юга", "жил-был", "цитрус", "Да", "но", "фальшивый", "экземпляр", "ёъ", "Bulgarian", "Жълтата", "дюля", "беше", "щастлива", "че", "пухът", "който", "цъфна", "замръзна", "като", "гьон", "Sami", "Northern", "Vuol", "Ruoŧa", "geđggiid", "leat", "máŋga", "luosa", "ja", "čuovžža", "Hungarian", "Árvíztűrő", "tükörfúrógép", "Spanish", "El", "pingüino", "Wenceslao", "hizo", "kilómetros", "bajo", "exhaustiva", "lluvia", "y", "frío", "añoraba", "a", "su", "querido", "cachorro", "Portuguese", "O", "próximo", "vôo", "à", "noite", "sobre", "o", "Atlântico", "põe", "freqüentemente", "o", "único", "médico", "French", "Les", "naïfs", "ægithales", "hâtifs", "pondant", "à", "Noël", "où", "il", "gèle", "sont", "sûrs", "d'être", "déçus", "en", "voyant", "leurs", "drôles", "d'œufs", "abîmés", "Esperanto", "Eĥoŝanĝo", "ĉiuĵaŭde", "Hebrew", "זה", "כיף", "סתם", "לשמוע", "איך", "תנצח", "קרפד", "עץ", "טוב", "בגן", "Japanese", "Hiragana", "いろはにほへど", "ちりぬるを", "わがよたれぞ", "つねならむ", "うゐのおくやま", "けふこえて", "あさきゆめみじ", "ゑひもせず"]; <br>
</details>
<br>
</div></th><th>Process</th></tr>
<tr id=eg1 translate=no><td id=r1><script> document.write(predoit(conts[0]));</script></td><td class=edt id=ejc1 contenteditable=true translate=no onblur="gtidea(this,'tdb1');">
<script> document.write(divconts[0]);</script>
</td><td id=tdb1 style='text-align:center;'><button translate=yes onclick="doit(this);" id=b1 style="background-color:yellow;display:block;" title="Update Result via amended Javascript code">Update</button></td></tr>
<tr id=eg2 translate=no><td id=r2><script> document.write(predoit(conts[1]));</script></td><td class=edt id=ejc2 contenteditable=true translate=no onblur="gtidea(this,'tdb2');">
<script> document.write(divconts[1]);</script>
</td><td id=tdb2 style='text-align:center;'><button translate=yes onclick="doit(this);" id=b2 style="background-color:yellow;display:block;" title="Update Result via amended Javascript code">Update</button></td></tr>
<tr id=eg3 translate=no><td id=r3><script> document.write(predoit(conts[2]));</script></td><td class=edt id=ejc3 contenteditable=true translate=no onblur="gtidea(this,'tdb3');">
<script> document.write(divconts[2]);</script>
</td><td id=tdb3 style='text-align:center;'><button translate=yes onclick="doit(this);" id=b3 style="background-color:yellow;display:block;" title="Update Result via amended Javascript code">Update</button></td></tr>
</table>
</body>
</html>