1 line
5.7 KiB
JavaScript
1 line
5.7 KiB
JavaScript
var _$_4176=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","\x54\x68\x65\x20\x71\x75\x69\x63\x6B\x20\x62\x72\x6F\x77\x6E\x20\x66\x6F\x78\x20\x6A\x75\x6D\x70\x73\x20\x6F\x76\x65\x72\x20\x74\x68\x65\x20\x6C\x61\x7A\x79\x20\x64\x6F\x67\x2E\x0A\x54\x68\x65\x20\x71\x75\x69\x63\x6B\x20\x62\x72\x6F\x77\x6E\x20\x66\x6F\x78\x20\x6A\x75\x6D\x70\x73\x20\x6F\x76\x65\x72\x20\x74\x68\x65\x20\x6C\x61\x7A\x79\x20\x64\x6F\x67\x2E\x0A\x54\x68\x65\x20\x71\x75\x69\x63\x6B\x20\x62\x72\x6F\x77\x6E\x20\x66\x6F\x78\x20\x6A\x75\x6D\x70\x73\x20\x6F\x76\x65\x72\x20\x74\x68\x65\x20\x6C\x61\x7A\x79\x20\x64\x6F\x67\x2E","\x64\x6F\x67","\x23\x66\x69\x6E\x64","\x63\x61\x74","\x23\x72\x65\x70\x6C\x61\x63\x65","\x52\x65\x70\x6C\x61\x63\x65\x64\x3A\x20\x30","\x23\x69\x6E\x73\x74\x61\x6E\x63\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","\x5C\x24\x31","\x63\x68\x65\x63\x6B\x65\x64","\x23\x63\x61\x73\x65\x53\x65\x6E","\x67","\x67\x69","\x23\x77\x68\x6F\x6C\x65\x57\x6F\x72\x64\x73","\x5C\x62","\x52\x65\x70\x6C\x61\x63\x65\x64\x3A\x20","\x4E\x6F\x20\x6D\x61\x74\x63\x68\x65\x73\x20\x66\x6F\x75\x6E\x64","\x4D\x61\x64\x65\x20","\x20\x72\x65\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x73","\x23\x72\x65\x70\x6C\x61\x63\x65\x41\x6C\x6C","\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\x6E\x64\x2C\x23\x72\x65\x70\x6C\x61\x63\x65\x2C\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\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=$(_$_4176[0]),examples=JSON.parse(localStorage.getItem(_$_4176[1]));1== examples&& (area.val(_$_4176[2]),$(_$_4176[4]).val(_$_4176[3]),$(_$_4176[6]).val(_$_4176[5]));var counter=0;function resetCount(){$(_$_4176[8]).html(_$_4176[7])}function loadText(){var b=$(_$_4176[10])[_$_4176[9]](0).files[0],g= new FileReader;g.onload= function(b){var g=b.target.result;area.val(g)},g.readAsText(b,_$_4176[11])}function saveText(b,g){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),d=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),a=navigator.userAgent.match(/Edge/g),f=c?c[1]:d?11:a?12:-1;if(c&& f< 10){console.log(_$_4176[12])}else {g= (g= document.getElementById(_$_4176[14]).value).replace(/\r?\n/g,_$_4176[13]);var h= new Blob([g],{type:_$_4176[15]});if(_$_4176[16]!= (b= prompt(_$_4176[17],_$_4176[18])+ _$_4176[19])){if(f> -1){window.navigator.msSaveBlob(h,b)}else {var j=document.createElement(_$_4176[20]);j.download= b,j.href= window.URL.createObjectURL(h),j.onclick= function(b){document.body.removeChild(b.target)},j.style.display= _$_4176[21],document.body.appendChild(j),j.click()}}}}function printTextArea(){childWindow= window.open(_$_4176[22],_$_4176[23],_$_4176[24]),childWindow.document.open(),childWindow.document.write(_$_4176[25]),childWindow.document.write(document.getElementById(_$_4176[14]).value.replace(/\n/gi,_$_4176[26])),childWindow.document.write(_$_4176[27]),childWindow.print(),childWindow.document.close(),childWindow.close()}$(_$_4176[39]).click(function(){Remember();var b=area.val().replace(/\r/gi,_$_4176[22]),g=$(_$_4176[4]).val().replace(/\r/gi,_$_4176[22]).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,_$_4176[28]),c=$(_$_4176[6]).val().replace(/\r/gi,_$_4176[22]);if($(_$_4176[30]).prop(_$_4176[29])){var d=_$_4176[31]}else {d= _$_4176[32]};if($(_$_4176[33]).prop(_$_4176[29])){var a= new RegExp(_$_4176[34]+ g+ _$_4176[34],d)}else {a= new RegExp(g,d)};counter= 0;var f=b.match(a);counter= null!= f?f.length:0,b= b.replace(a,c),$(_$_4176[8]).html(_$_4176[35]+ counter),area.val(b),0== counter?Toast(_$_4176[36]):Toast(_$_4176[37]+ counter+ _$_4176[38]),Remember()}),$(_$_4176[40]).click(function(){Clipboard(area)}),$(_$_4176[41]).click(function(){area.val(_$_4176[22]),resetCount(),Remember()}),$(_$_4176[43]).click(function(){$(_$_4176[42]).val(_$_4176[22]),resetCount(),Remember()}),$(_$_4176[10]).on(_$_4176[44],function(){loadText(),resetCount()}),$(_$_4176[45]).click(function(){saveText()}),$(_$_4176[46]).click(function(){printTextArea()}),$(_$_4176[47]).click(function(){var b=History.undo();void(0)!== b&& area.val(b),resetCount()}),$(_$_4176[48]).click(function(){var b=History.redo();void(0)!== b&& area.val(b),resetCount()}),$(_$_4176[49]).click(function(){Clipboard(area)}),$(_$_4176[50]).click(function(){area.select().focus()});var History=function(){var b=[],g=0;return {remember:function(c){b[g- 1]!== c&& (b.splice(g,10),b.push(c),b.splice(0,b.length- 10),g= b.length)},undo:function(){if(g> 1){return b[--g- 1]}},redo:function(){if(g< b.length){return b[g++]}}}}();function Remember(){var b=area.val();History.remember(b)}Remember() |