1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
var _$_555b=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","","\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5A\x0A\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7A","\x66\x61\x2D\x72\x6F\x74\x61\x74\x65\x2D\x31\x38\x30","\x2E\x66\x61\x2D\x72\x6F\x74\x61\x74\x65\x2D\x72\x69\x67\x68\x74","\x63\x68\x65\x63\x6B\x65\x64","\x23\x69\x73\x42\x61\x63\x6B\x77\x61\x72\x64\x73","\x46\x6C\x69\x70\x70\x65\x64","\x23\x74\x75\x72\x6E\x55\x70\x44\x6F\x77\x6E","\u2200","\x71","\u0186","\u018E","\u2132","\u05E4","\x48","\x49","\u017F","\u02E5","\x57","\x4E","\u0500","\u1D1A","\u22A5","\u2229","\u039B","\u2144","\u0250","\u0254","\x70","\u01DD","\u025F","\u0183","\u0265","\u1D09","\u027E","\u029E","\u026F","\x75","\x64","\x62","\u0279","\u0287","\x6E","\u028C","\u028D","\u028E","\u0196","\u1105","\u0190","\u3123","\u03DB","\x39","\u3125","\x38","\x36","\x30","\u02D9","\x27","\x2C","\x2C\x2C","\x3E","\x3C","\u2235","\u214B","\u203E","\xBF","\x3F","\xA1","\x21","\x5D","\x5B","\x29","\x28","\x7D","\x7B","\u061B","\u2040","\u2046","\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","\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=$(_$_555b[0]),examples=JSON.parse(localStorage.getItem(_$_555b[1]));function flipString(a){for(var b=a.length- 1,c= new Array(a.length),f=b;f>= 0;--f){var d=a.charAt(f),g=flipTable[d];c[b- f]= null!= g?g:d};return c.join(_$_555b[2])}1== examples&& area.val(_$_555b[3]),$(_$_555b[9]).click(function(){Remember(),$(_$_555b[5]).toggleClass(_$_555b[4]);var a=area.val();a= flipString(a),0== $(_$_555b[7]).prop(_$_555b[6])&& (a= a.split(_$_555b[2]).reverse().join(_$_555b[2])),area.val(a),Toast(_$_555b[8]),Remember()});var flipTable={A:_$_555b[10],B:_$_555b[11],C:_$_555b[12],E:_$_555b[13],F:_$_555b[14],G:_$_555b[15],H:_$_555b[16],I:_$_555b[17],J:_$_555b[18],L:_$_555b[19],M:_$_555b[20],N:_$_555b[21],P:_$_555b[22],R:_$_555b[23],T:_$_555b[24],U:_$_555b[25],V:_$_555b[26],Y:_$_555b[27],a:_$_555b[28],b:_$_555b[11],c:_$_555b[29],d:_$_555b[30],e:_$_555b[31],f:_$_555b[32],g:_$_555b[33],h:_$_555b[34],i:_$_555b[35],j:_$_555b[36],k:_$_555b[37],m:_$_555b[38],n:_$_555b[39],p:_$_555b[40],q:_$_555b[41],r:_$_555b[42],t:_$_555b[43],u:_$_555b[44],v:_$_555b[45],w:_$_555b[46],y:_$_555b[47],1:_$_555b[48],2:_$_555b[49],3:_$_555b[50],4:_$_555b[51],5:_$_555b[52],6:_$_555b[53],7:_$_555b[54],8:_$_555b[55],9:_$_555b[56],0:_$_555b[57],"\x2E":_$_555b[58],"\x2C":_$_555b[59],"\x27":_$_555b[60],"\x22":_$_555b[61],"\x60":_$_555b[60],"\x3C":_$_555b[62],"\x3E":_$_555b[63],"\u2234":_$_555b[64],"\x26":_$_555b[65],_:_$_555b[66],"\x3F":_$_555b[67],"\xBF":_$_555b[68],"\x21":_$_555b[69],"\xA1":_$_555b[70],"\x5B":_$_555b[71],"\x5D":_$_555b[72],"\x28":_$_555b[73],"\x29":_$_555b[74],"\x7B":_$_555b[75],"\x7D":_$_555b[76],"\x3B":_$_555b[77],"\u203F":_$_555b[78],"\u2045":_$_555b[79],"\u2234":_$_555b[64]};for(i in flipTable){flipTable[flipTable[i]]= i};function loadText(){var a=$(_$_555b[81])[_$_555b[80]](0).files[0],b= new FileReader;b.onload= function(a){var b=a.target.result;area.val(b)},b.readAsText(a,_$_555b[82])}function saveText(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),f=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),d=navigator.userAgent.match(/Edge/g),g=c?c[1]:f?11:d?12:-1;if(c&& g< 10){console.log(_$_555b[83])}else {b= (b= document.getElementById(_$_555b[85]).value).replace(/\r?\n/g,_$_555b[84]);var j= new Blob([b],{type:_$_555b[86]});if(_$_555b[87]!= (a= prompt(_$_555b[88],_$_555b[89])+ _$_555b[90])){if(g> -1){window.navigator.msSaveBlob(j,a)}else {var h=document.createElement(_$_555b[91]);h.download= a,h.href= window.URL.createObjectURL(j),h.onclick= function(a){document.body.removeChild(a.target)},h.style.display= _$_555b[92],document.body.appendChild(h),h.click()}}}}function printTextArea(){childWindow= window.open(_$_555b[2],_$_555b[93],_$_555b[94]),childWindow.document.open(),childWindow.document.write(_$_555b[95]),childWindow.document.write(document.getElementById(_$_555b[85]).value.replace(/\n/gi,_$_555b[96])),childWindow.document.write(_$_555b[97]),childWindow.print(),childWindow.document.close(),childWindow.close()}$(_$_555b[98]).click(function(){Clipboard(area)}),$(_$_555b[99]).click(function(){area.val(_$_555b[2]),Remember()}),$(_$_555b[81]).on(_$_555b[100],function(){loadText()}),$(_$_555b[101]).click(function(){saveText()}),$(_$_555b[102]).click(function(){printTextArea()}),$(_$_555b[103]).click(function(){var a=History.undo();void(0)!== a&& area.val(a)}),$(_$_555b[104]).click(function(){var a=History.redo();void(0)!== a&& area.val(a)}),$(_$_555b[105]).click(function(){Clipboard(area)}),$(_$_555b[106]).click(function(){area.select().focus()});var History=function(){var a=[],b=0;return {remember:function(c){a[b- 1]!== c&& (a.splice(b,10),a.push(c),a.splice(0,a.length- 10),b= a.length)},undo:function(){if(b> 1){return a[--b- 1]}},redo:function(){if(b< a.length){return a[b++]}}}}();function Remember(){var a=area.val();History.remember(a)}Remember() |