ବ୍ୟବହାରକାରୀ:Ramjit Tudu/ପରଖଘର/ଟେଷ୍ଟ୍3
test page
<script> function check_input() {
if (document.getElementById('input_text').value == "") { alert("ᱚᱦ...ᱠᱚᱯᱤ ᱞᱟᱹᱜᱤᱫ ᱚᱞ ᱵᱟᱹᱱᱩᱜᱼᱟ ᱾ ᱞᱮᱸᱜᱟ ᱥᱟᱦᱟ ᱨᱮᱱᱟᱜ ᱵᱟᱠᱥᱟ ᱨᱮ ᱚᱞ ᱯᱮᱥᱴ ᱢᱮ ᱾"); return false; }
} </script> <script> function en_to_sat() {
check_input(); var array_one = new Array(
"District of Telangana","ᱛᱮᱞᱮᱝᱜᱟᱱᱟ ᱨᱮᱱᱟᱜ ᱦᱚᱱᱚᱛ"
)
var array_one_length = array_one.length ; var modified_substring = $("#input_text").val(); var text_size = modified_substring.length ; var processed_text = "" ; var position1 = 0 ; var position2 = 0 ; var process_queue = 1 ; var chunk_size = 6000; while ( process_queue == 1 ) { position1 = position2 ; if ( position2 < ( text_size - chunk_size ) ) { position2 += chunk_size ; while (document.getElementById("input_text").value.charAt ( position2 ) != ' ') {position2--;} } else { position2 = text_size ; process_queue = 0 } var modified_substring = document.getElementById("input_text").value.substring ( position1, position2 ) ; Replace_Symbols( ) ; var processed_text = processed_text + modified_substring ; $("#unicode_text").val("Conversion in progress.." + '\n\n' + 'Conversion of ' + position2 + ' charecters out of ' + text_size + ' completed.'); } $("#unicode_text").val(processed_text); function Replace_Symbols( ) { if ( modified_substring != "" ) { for ( input_symbol_idx = 0; input_symbol_idx < array_one_length-1; input_symbol_idx = input_symbol_idx + 2 ) { idx = 0 ; while (idx != -1 ) { modified_substring = modified_substring.replace( array_one[ input_symbol_idx ] , array_one[input_symbol_idx+1] ); idx = modified_substring.indexOf( array_one[input_symbol_idx] ); } } } }
} </script> <script> function select_and_copy() {
if (document.getElementById('unicode_text').value == "") { alert('ᱚᱦ...ᱠᱚᱯᱤ ᱞᱟᱹᱜᱤᱫ ᱚᱞ ᱵᱟᱹᱱᱩᱜᱼᱟ ᱾ ᱞᱮᱸᱜᱟ ᱥᱟᱦᱟ ᱨᱮᱱᱟᱜ ᱵᱟᱠᱥᱟ ᱨᱮ ᱯᱮᱥᱴ ᱠᱟᱛᱮ ᱪᱮᱛᱟᱱ ᱨᱮᱱᱟᱜ ᱵᱩᱛᱟᱹᱢ ᱚᱛᱟᱭ ᱢᱮ ᱾') } else { document.getElementById('unicode_text').select(); document.execCommand('copy'); document.getElementById('unicode_text_button').value = "ᱠᱚᱯᱤ ᱭᱮᱱᱟ"; setTimeout(function(){ document.getElementById('unicode_text_button').value = "ᱡᱚᱛᱚ ᱵᱟᱪᱷᱟᱣ ᱠᱟᱛᱮ ᱠᱚᱯᱤ ᱞᱟᱹᱜᱤᱫ ᱞᱤᱱ ᱢᱮ"; }, 2000); }
} </script> <style type="text/css"> .input {height: 500px;width: 49.5%; border: 1px solid #ccc;margin-top: 15px; align:left;box-sizing: border-box;} input.bigbutton {margin-top: 10px; background: #3E9CFF; padding: 8px 14px 10px; border:1px solid #3e9cbf; cursor:pointer; font-size:1.0em;font-family:Oswald, sans-serif; letter-spacing:.1em;text-shadow: 0 -1px 0px rgba(0, 0, 0, 0.3); color: #fff; -webkit-box-shadow: inset 0px 1px 0px #3e9cbf, 0px 5px 0px 0px #205c73, 0px 10px 5px #999;-moz-box-shadow: inset 0px 1px 0px #3e9cbf, 0px 5px 0px 0px #205c73, 0px 10px 5px #999; box-shadow: inset 0px 1px 0px #3e9cbf, 0px 5px 0px 0px #205c73, 0px 10px 5px #999;-moz-border-radius: 5px;-webkit-border-radius: 10px;border-radius: 2px;} input.bigbutton:hover, input.bigbutton:focus { color:#dfe7ea;-webkit-box-shadow: inset 0px 1px 0px #3e9cbf, 0px 2px 0px 0px #205c73, 0px 2px 5px #999;-moz-box-shadow: inset 0px 1px 0px #3e9cbf, 0px 2px 0px 0px #205c73, 0px 2px 5px #999;box-shadow: inset 0px 1px 0px #3e9cbf, 0px 2px 0px 0px #205c73, 0px 2px 5px #999;} #olchiki{width: 49.5%;}#unicode_text_button {49.5% !important;float:right;} </style> <input class="bigbutton" title="ᱱᱚᱸᱰᱮ ᱚᱛᱟᱭ ᱢᱮ ᱵᱚᱫᱚᱞ ᱞᱟᱹᱜᱤᱫ" onclick="en_to_sat()" type="submit" id="olchiki" value="ᱵᱚᱫᱚᱞ" />
<input title="To copy all by selecting click here" onclick="select_and_copy()" class="bigbutton" type="submit" value="ᱠᱚᱯᱤ" id="unicode_text_button" style="width:49.5%;"/> <textarea class="input" placeholder="ᱯᱮᱥᱴ ᱢᱮ ᱟᱨ ᱵᱚᱫᱚᱞ ᱵᱩᱛᱟᱹᱢ ᱞᱤᱱ ᱢᱮ" id="input_text" style="float:left"></textarea> <textarea class="input" placeholder="ᱟᱢᱟᱜ ᱚᱞ" id="unicode_text" style="float:right"></textarea>