1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
var _$_2b80=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","\x67\x65\x74","\x23\x66\x69\x6C\x65\x5F\x75\x70\x6C\x6F\x61\x64","\x55\x54\x46\x2D\x38","\x4E\x6F\x20\x62\x6C\x6F\x62\x73\x20\x6F\x6E\x20\x49\x45\x20\x76\x65\x72\x3C\x31\x30","\x0D\x0A","\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x65\x78\x74\x2F\x70\x6C\x61\x69\x6E","\x6E\x75\x6C\x6C\x2E\x74\x78\x74","\x46\x69\x6C\x65\x20\x6E\x61\x6D\x65\x3A","\x4E\x65\x77\x20\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x2E\x74\x78\x74","\x61","\x6E\x6F\x6E\x65","","\x63\x68\x69\x6C\x64\x57\x69\x6E\x64\x6F\x77","\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x3D\x79\x65\x73\x2C\x20\x6D\x65\x6E\x75\x62\x61\x72\x3D\x79\x65\x73\x2C\x20\x74\x6F\x6F\x6C\x62\x61\x72\x3D\x79\x65\x73","\x3C\x68\x74\x6D\x6C\x3E\x3C\x68\x65\x61\x64\x3E\x3C\x2F\x68\x65\x61\x64\x3E\x3C\x62\x6F\x64\x79\x3E","\x3C\x62\x72\x3E","\x3C\x2F\x62\x6F\x64\x79\x3E\x3C\x2F\x68\x74\x6D\x6C\x3E","\x41\x31\u2014\x42\x31\u2014\x43\x31\u2014\x44\x31\x0A\x41\x32\u2014\x42\x32\u2014\x43\x32\u2014\x44\x32\x0A\x41\x33\u2014\x42\x33\u2014\x43\x33\u2014\x44\x33\x0A\x41\x34\u2014\x42\x34\u2014\x43\x34\u2014\x44\x34\x0A\x41\x35\u2014\x42\x35\u2014\x43\x35\u2014\x44\x35","\x0A","\x23\x73\x65\x74\x74\x69\x6E\x67\x73","\x23\x63\x6F\x6C\x4E\x75\x6D","\x23\x64\x65\x6C\x69\x6D\x69\x74\x53\x74\x72","\x2E\x74\x62\x5F\x74\x72","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x62\x5F\x63\x65\x6C\x6C\x20\x6D\x61\x69\x6E\x22\x3E\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x74\x62\x5F\x63\x6F\x6C\x5F","\x22\x2F\x3E\x3C\x2F\x64\x69\x76\x3E","\x23\x74\x62\x5F\x63\x6F\x6C\x5F","\x2E\x62\x65\x66\x6F\x72\x65","\x2E\x61\x66\x74\x65\x72","\x53\x70\x6C\x69\x74\x74\x65\x64\x20\x69\x6E\x74\x6F\x20","\x20\x63\x6F\x6C\x75\x6D\x6E\x73","\x28","\x29","\x67","\x53\x70\x6C\x69\x74\x74\x65\x64\x20\x62\x79\x20\x6E\x65\x77\x20\x6C\x69\x6E\x65","\x23\x73\x70\x6C\x69\x74\x54\x65\x78\x74","\x63\x68\x61\x6E\x67\x65","\x23\x63\x6F\x6C\x75\x6D\x6E\x2D\x6E\x75\x6D","\x23\x67\x6F\x42\x61\x63\x6B","\x2E\x63\x6C\x69\x70\x62\x6F\x61\x72\x64","\x23\x63\x6C\x65\x61\x72\x41\x6C\x6C\x2C\x20\x23\x65\x64\x69\x74\x5F\x64\x65\x6C\x65\x74\x65","\x23\x66\x69\x6C\x65\x5F\x6E\x65\x77","\x23\x66\x69\x6C\x65\x5F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x23\x66\x69\x6C\x65\x5F\x70\x72\x69\x6E\x74","\x23\x65\x64\x69\x74\x5F\x63\x6F\x70\x79","\x23\x65\x64\x69\x74\x5F\x73\x65\x6C\x65\x63\x74"];var area=$(_$_2b80[0]),examples=JSON.parse(localStorage.getItem(_$_2b80[1]));function loadText(){var b=$(_$_2b80[3])[_$_2b80[2]](0).files[0],g= new FileReader;g.onload= function(b){var g=b.target.result;area.val(g)},g.readAsText(b,_$_2b80[4])}function saveText(b,g){var d=navigator.userAgent.match(/MSIE\s([\d.]+)/),a=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),c=navigator.userAgent.match(/Edge/g),f=d?d[1]:a?11:c?12:-1;if(d&& f< 10){console.log(_$_2b80[5])}else {g= (g= document.getElementById(_$_2b80[7]).value).replace(/\r?\n/g,_$_2b80[6]);var i= new Blob([g],{type:_$_2b80[8]});if(_$_2b80[9]!= (b= prompt(_$_2b80[10],_$_2b80[11])+ _$_2b80[12])){if(f> -1){window.navigator.msSaveBlob(i,b)}else {var h=document.createElement(_$_2b80[13]);h.download= b,h.href= window.URL.createObjectURL(i),h.onclick= function(b){document.body.removeChild(b.target)},h.style.display= _$_2b80[14],document.body.appendChild(h),h.click()}}}}function printTextArea(){childWindow= window.open(_$_2b80[15],_$_2b80[16],_$_2b80[17]),childWindow.document.open(),childWindow.document.write(_$_2b80[18]),childWindow.document.write(document.getElementById(_$_2b80[7]).value.replace(/\n/gi,_$_2b80[19])),childWindow.document.write(_$_2b80[20]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_2b80[21]),$(_$_2b80[38]).click(function(){var b=area.val().replace(/\r\n|\r|\n/gm,_$_2b80[22]),g=$(_$_2b80[23]).val(),d=$(_$_2b80[24]).val(),a=$(_$_2b80[25]).val();if(1== g){var c,f;for(b= b.trim().split(_$_2b80[22]),$(_$_2b80[26]).html(_$_2b80[15]),c= 0;c< d;c++){$(_$_2b80[26]).append(_$_2b80[27]+ (c+ 1)+ _$_2b80[28])};for(c= 0;c< b.length;c++){for(col_arr= b[c].split(a),f= 0;f< col_arr.length;f++){temp= _$_2b80[29]+ (f+ 1),$(temp).val($(temp).val()+ col_arr[f]+ _$_2b80[22])}};$(_$_2b80[30]).hide(),$(_$_2b80[31]).show(),Toast(_$_2b80[32]+ d+ _$_2b80[33])}else {if(2== g){b= b.replace( new RegExp(_$_2b80[34]+ a+ _$_2b80[35],_$_2b80[36]),_$_2b80[22]),area.val(b),Toast(_$_2b80[37])}}}),$(_$_2b80[23]).on(_$_2b80[39],function(){var b=$(_$_2b80[23]).val();1== b?$(_$_2b80[40]).show():2== b&& $(_$_2b80[40]).hide()}),$(_$_2b80[41]).click(function(){$(_$_2b80[31]).hide(),$(_$_2b80[30]).show()}),$(_$_2b80[42]).click(function(){Clipboard(area)}),$(_$_2b80[43]).click(function(){area.val(_$_2b80[15])}),$(_$_2b80[44]).click(function(){area.val(_$_2b80[15]),$(_$_2b80[31]).hide(),$(_$_2b80[30]).show()}),$(_$_2b80[3]).on(_$_2b80[39],function(){loadText()}),$(_$_2b80[45]).click(function(){saveText()}),$(_$_2b80[46]).click(function(){printTextArea()}),$(_$_2b80[47]).click(function(){Clipboard(area)}),$(_$_2b80[48]).click(function(){area.select().focus()}) |