1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
|
var _$_4b7a=["\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","\x31","\x23\x63\x6F\x6C\x4E\x75\x6D\x31","\x32","\x23\x63\x6F\x6C\x4E\x75\x6D\x32","\u2014","\x23\x64\x65\x6C\x69\x6D\x69\x74\x53\x74\x72","\x0A","\x53\x77\x61\x70\x70\x65\x64\x20\x63\x6F\x6C\x75\x6D\x6E\x20","\x20\x77\x69\x74\x68\x20","\x23\x73\x77\x61\x70\x43\x6F\x6C\x73","\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\x2C\x20\x23\x66\x69\x6C\x65\x5F\x6E\x65\x77","\x63\x68\x61\x6E\x67\x65","\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\x75\x6E\x64\x6F","\x23\x65\x64\x69\x74\x5F\x72\x65\x64\x6F","\x23\x65\x64\x69\x74\x5F\x63\x6F\x70\x79","\x23\x65\x64\x69\x74\x5F\x73\x65\x6C\x65\x63\x74"];var area=$(_$_4b7a[0]),examples=JSON.parse(localStorage.getItem(_$_4b7a[1]));function loadText(){var b=$(_$_4b7a[3])[_$_4b7a[2]](0).files[0],c= new FileReader;c.onload= function(b){var c=b.target.result;area.val(c)},c.readAsText(b,_$_4b7a[4])}function saveText(b,c){var f=navigator.userAgent.match(/MSIE\s([\d.]+)/),d=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),a=navigator.userAgent.match(/Edge/g),g=f?f[1]:d?11:a?12:-1;if(f&& g< 10){console.log(_$_4b7a[5])}else {c= (c= document.getElementById(_$_4b7a[7]).value).replace(/\r?\n/g,_$_4b7a[6]);var h= new Blob([c],{type:_$_4b7a[8]});if(_$_4b7a[9]!= (b= prompt(_$_4b7a[10],_$_4b7a[11])+ _$_4b7a[12])){if(g> -1){window.navigator.msSaveBlob(h,b)}else {var j=document.createElement(_$_4b7a[13]);j.download= b,j.href= window.URL.createObjectURL(h),j.onclick= function(b){document.body.removeChild(b.target)},j.style.display= _$_4b7a[14],document.body.appendChild(j),j.click()}}}}function printTextArea(){childWindow= window.open(_$_4b7a[15],_$_4b7a[16],_$_4b7a[17]),childWindow.document.open(),childWindow.document.write(_$_4b7a[18]),childWindow.document.write(document.getElementById(_$_4b7a[7]).value.replace(/\n/gi,_$_4b7a[19])),childWindow.document.write(_$_4b7a[20]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& (area.val(_$_4b7a[21]),$(_$_4b7a[23]).val(_$_4b7a[22]),$(_$_4b7a[25]).val(_$_4b7a[24]),$(_$_4b7a[27]).val(_$_4b7a[26])),$(_$_4b7a[31]).click(function(){Remember();var b=area.val().replace(/\r\n|\r|\n/gm,_$_4b7a[28]).trim().split(_$_4b7a[28]),c=$(_$_4b7a[23]).val()- 1,f=$(_$_4b7a[25]).val()- 1,d=$(_$_4b7a[27]).val(),a=b.map(function(b){var a=b.split(d),g=a[c];return a[c]= a[f],a[f]= g,a.join(d)}).join(_$_4b7a[28]);area.val(a),Toast(_$_4b7a[29]+ (c+ 1)+ _$_4b7a[30]+ (f+ 1)),Remember()}),$(_$_4b7a[32]).click(function(){Clipboard(area)}),$(_$_4b7a[33]).click(function(){area.val(_$_4b7a[15]),Remember()}),$(_$_4b7a[3]).on(_$_4b7a[34],function(){loadText()}),$(_$_4b7a[35]).click(function(){saveText()}),$(_$_4b7a[36]).click(function(){printTextArea()}),$(_$_4
|