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