whisper.cat/weboasis/text/js/filler-text.js
2023-10-05 23:28:32 +11:00

1 line
8.9 KiB
JavaScript

var _$_fd4c=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x23\x67\x65\x6E\x65\x72\x61\x74\x65\x54\x65\x78\x74","\x23\x6E\x75\x6D\x50\x61\x72\x61","","\x4C\x6F\x72\x65\x6D\x20\x69\x70\x73\x75\x6D\x20\x64\x6F\x6C\x6F\x72\x20\x73\x69\x74\x20\x61\x6D\x65\x74\x2C\x20\x63\x6F\x6E\x73\x65\x63\x74\x65\x74\x75\x65\x72\x20\x61\x64\x69\x70\x69\x73\x63\x69\x6E\x67\x20\x65\x6C\x69\x74\x2E","\x41\x65\x6E\x65\x61\x6E\x20\x63\x6F\x6D\x6D\x6F\x64\x6F\x20\x6C\x69\x67\x75\x6C\x61\x20\x65\x67\x65\x74\x20\x64\x6F\x6C\x6F\x72\x2E","\x43\x75\x6D\x20\x73\x6F\x63\x69\x69\x73\x20\x6E\x61\x74\x6F\x71\x75\x65\x20\x70\x65\x6E\x61\x74\x69\x62\x75\x73\x20\x65\x74\x20\x6D\x61\x67\x6E\x69\x73\x20\x64\x69\x73\x20\x70\x61\x72\x74\x75\x72\x69\x65\x6E\x74\x20\x6D\x6F\x6E\x74\x65\x73\x2C\x20\x6E\x61\x73\x63\x65\x74\x75\x72\x20\x72\x69\x64\x69\x63\x75\x6C\x75\x73\x20\x6D\x75\x73\x2E","\x44\x6F\x6E\x65\x63\x20\x71\x75\x61\x6D\x20\x66\x65\x6C\x69\x73\x2C\x20\x75\x6C\x74\x72\x69\x63\x69\x65\x73\x20\x6E\x65\x63\x2C\x20\x70\x65\x6C\x6C\x65\x6E\x74\x65\x73\x71\x75\x65\x20\x65\x75\x2C\x20\x70\x72\x65\x74\x69\x75\x6D\x20\x71\x75\x69\x73\x2C\x20\x73\x65\x6D\x2E","\x4E\x75\x6C\x6C\x61\x20\x63\x6F\x6E\x73\x65\x71\x75\x61\x74\x20\x6D\x61\x73\x73\x61\x20\x71\x75\x69\x73\x20\x65\x6E\x69\x6D\x2E","\x44\x6F\x6E\x65\x63\x20\x70\x65\x64\x65\x20\x6A\x75\x73\x74\x6F\x2C\x20\x66\x72\x69\x6E\x67\x69\x6C\x6C\x61\x20\x76\x65\x6C\x2C\x20\x61\x6C\x69\x71\x75\x65\x74\x20\x6E\x65\x63\x2C\x20\x76\x75\x6C\x70\x75\x74\x61\x74\x65\x20\x65\x67\x65\x74\x2C\x20\x61\x72\x63\x75\x2E","\x49\x6E\x20\x65\x6E\x69\x6D\x20\x6A\x75\x73\x74\x6F\x2C\x20\x72\x68\x6F\x6E\x63\x75\x73\x20\x75\x74\x2C\x20\x69\x6D\x70\x65\x72\x64\x69\x65\x74\x20\x61\x2C\x20\x76\x65\x6E\x65\x6E\x61\x74\x69\x73\x20\x76\x69\x74\x61\x65\x2C\x20\x6A\x75\x73\x74\x6F\x2E","\x4E\x75\x6C\x6C\x61\x6D\x20\x64\x69\x63\x74\x75\x6D\x20\x66\x65\x6C\x69\x73\x20\x65\x75\x20\x70\x65\x64\x65\x20\x6D\x6F\x6C\x6C\x69\x73\x20\x70\x72\x65\x74\x69\x75\x6D\x2E","\x56\x69\x76\x61\x6D\x75\x73\x20\x65\x6C\x65\x6D\x65\x6E\x74\x75\x6D\x20\x73\x65\x6D\x70\x65\x72\x20\x6E\x69\x73\x69\x2E","\x41\x65\x6E\x65\x61\x6E\x20\x6C\x65\x6F\x20\x6C\x69\x67\x75\x6C\x61\x2C\x20\x70\x6F\x72\x74\x74\x69\x74\x6F\x72\x20\x65\x75\x2C\x20\x63\x6F\x6E\x73\x65\x71\x75\x61\x74\x20\x76\x69\x74\x61\x65\x2C\x20\x65\x6C\x65\x69\x66\x65\x6E\x64\x20\x61\x63\x2C\x20\x65\x6E\x69\x6D\x2E","\x50\x68\x61\x73\x65\x6C\x6C\x75\x73\x20\x76\x69\x76\x65\x72\x72\x61\x20\x6E\x75\x6C\x6C\x61\x20\x75\x74\x20\x6D\x65\x74\x75\x73\x20\x76\x61\x72\x69\x75\x73\x20\x6C\x61\x6F\x72\x65\x65\x74\x2E","\x45\x74\x69\x61\x6D\x20\x75\x6C\x74\x72\x69\x63\x69\x65\x73\x20\x6E\x69\x73\x69\x20\x76\x65\x6C\x20\x61\x75\x67\x75\x65\x2E","\x43\x75\x72\x61\x62\x69\x74\x75\x72\x20\x75\x6C\x6C\x61\x6D\x63\x6F\x72\x70\x65\x72\x20\x75\x6C\x74\x72\x69\x63\x69\x65\x73\x20\x6E\x69\x73\x69\x2E","\x4E\x61\x6D\x20\x65\x67\x65\x74\x20\x64\x75\x69\x2E","\x4D\x61\x65\x63\x65\x6E\x61\x73\x20\x74\x65\x6D\x70\x75\x73\x2C\x20\x74\x65\x6C\x6C\x75\x73\x20\x65\x67\x65\x74\x20\x63\x6F\x6E\x64\x69\x6D\x65\x6E\x74\x75\x6D\x20\x72\x68\x6F\x6E\x63\x75\x73\x2C\x20\x73\x65\x6D\x20\x71\x75\x61\x6D\x20\x73\x65\x6D\x70\x65\x72\x20\x6C\x69\x62\x65\x72\x6F\x2C\x20\x73\x69\x74\x20\x61\x6D\x65\x74\x20\x61\x64\x69\x70\x69\x73\x63\x69\x6E\x67\x20\x73\x65\x6D\x20\x6E\x65\x71\x75\x65\x20\x73\x65\x64\x20\x69\x70\x73\x75\x6D\x2E","\x4E\x61\x6D\x20\x71\x75\x61\x6D\x20\x6E\x75\x6E\x63\x2C\x20\x62\x6C\x61\x6E\x64\x69\x74\x20\x76\x65\x6C\x2C\x20\x6C\x75\x63\x74\x75\x73\x20\x70\x75\x6C\x76\x69\x6E\x61\x72\x2C\x20\x68\x65\x6E\x64\x72\x65\x72\x69\x74\x20\x69\x64\x2C\x20\x6C\x6F\x72\x65\x6D\x2E","\x4D\x61\x65\x63\x65\x6E\x61\x73\x20\x6E\x65\x63\x20\x6F\x64\x69\x6F\x20\x65\x74\x20\x61\x6E\x74\x65\x20\x74\x69\x6E\x63\x69\x64\x75\x6E\x74\x20\x74\x65\x6D\x70\x75\x73\x2E\x20\x44\x6F\x6E\x65\x63\x20\x76\x69\x74\x61\x65\x20\x73\x61\x70\x69\x65\x6E\x20\x75\x74\x20\x6C\x69\x62\x65\x72\x6F\x20\x76\x65\x6E\x65\x6E\x61\x74\x69\x73\x20\x66\x61\x75\x63\x69\x62\x75\x73\x2E","\x4E\x75\x6C\x6C\x61\x6D\x20\x71\x75\x69\x73\x20\x61\x6E\x74\x65\x2E","\x45\x74\x69\x61\x6D\x20\x73\x69\x74\x20\x61\x6D\x65\x74\x20\x6F\x72\x63\x69\x20\x65\x67\x65\x74\x20\x65\x72\x6F\x73\x20\x66\x61\x75\x63\x69\x62\x75\x73\x20\x74\x69\x6E\x63\x69\x64\x75\x6E\x74\x2E","\x53\x65\x64\x20\x66\x72\x69\x6E\x67\x69\x6C\x6C\x61\x20\x6D\x61\x75\x72\x69\x73\x20\x73\x69\x74\x20\x61\x6D\x65\x74\x20\x6E\x69\x62\x68\x2E","\x44\x6F\x6E\x65\x63\x20\x73\x6F\x64\x61\x6C\x65\x73\x20\x73\x61\x67\x69\x74\x74\x69\x73\x20\x6D\x61\x67\x6E\x61\x2E","\x53\x65\x64\x20\x63\x6F\x6E\x73\x65\x71\x75\x61\x74\x2C\x20\x6C\x65\x6F\x20\x65\x67\x65\x74\x20\x62\x69\x62\x65\x6E\x64\x75\x6D\x20\x73\x6F\x64\x61\x6C\x65\x73\x2C\x20\x61\x75\x67\x75\x65\x20\x76\x65\x6C\x69\x74\x20\x63\x75\x72\x73\x75\x73\x20\x6E\x75\x6E\x63\x2E","\x20","\x63\x68\x65\x63\x6B\x65\x64","\x23\x69\x73\x48\x54\x4D\x4C","\x3C\x70\x3E","\x3C\x2F\x70\x3E\x0A\x0A","\x0A\x0A","\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","\x54\x61\x62\x73\x20\x72\x65\x70\x6C\x61\x63\x65\x64\x3A\x20\x30","\x23\x69\x6E\x73\x74\x61\x6E\x63\x65\x73","\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","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\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","\x4E\x6F\x20\x62\x6C\x6F\x62\x73\x20\x6F\x6E\x20\x49\x45\x20\x76\x65\x72\x3C\x31\x30","\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x0D\x0A","\x74\x65\x78\x74\x2F\x70\x6C\x61\x69\x6E","\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","\x6E\x75\x6C\x6C\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"];var area=$(_$_fd4c[0]);$(_$_fd4c[1]).click(function(){Remember();genText();Remember()});function genText(){var m=$(_$_fd4c[2]).val();var o=generateIpsum();for(var l=0;l< m;l++){o= generateIpsum();if(p== null){p= _$_fd4c[3]};var p=o+ p};p= p.trim();area.val(p)}let quotes=[_$_fd4c[4],_$_fd4c[5],_$_fd4c[6],_$_fd4c[7],_$_fd4c[8],_$_fd4c[9],_$_fd4c[10],_$_fd4c[11],_$_fd4c[12],_$_fd4c[13],_$_fd4c[14],_$_fd4c[15],_$_fd4c[16],_$_fd4c[17],_$_fd4c[18],_$_fd4c[19],_$_fd4c[20],_$_fd4c[21],_$_fd4c[22],_$_fd4c[23],_$_fd4c[24],_$_fd4c[25]];function generateIpsum(){let h=7,g=14,f=Math.floor(Math.random()* (g- h))+ h,k=_$_fd4c[3];for(i= 0;i< f;i++){let j=quotes[Math.floor(Math.random()* (quotes.length- 1))];k+= j+ _$_fd4c[26];if($(_$_fd4c[28]).prop(_$_fd4c[27])){result= _$_fd4c[29]+ k+ _$_fd4c[30]}else {result= k+ _$_fd4c[31]}};return result}$(_$_fd4c[32]).click(function(){Clipboard(area)});$(_$_fd4c[33]).click(function(){area.val(_$_fd4c[3]);resetCount();Remember()});function resetCount(){$(_$_fd4c[35]).html(_$_fd4c[34])}$(_$_fd4c[36]).click(function(){saveText()});$(_$_fd4c[37]).click(function(){printTextArea()});$(_$_fd4c[39]).click(function(){var a=History.undo();if( typeof a!== _$_fd4c[38]){area.val(a)};resetCount()});$(_$_fd4c[40]).click(function(){var a=History.redo();if( typeof a!== _$_fd4c[38]){area.val(a)};resetCount()});$(_$_fd4c[41]).click(function(){Clipboard(area)});$(_$_fd4c[42]).click(function(){area.select().focus()});function saveText(a,b){var q=navigator.userAgent.match(/MSIE\s([\d.]+)/),r=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),s=navigator.userAgent.match(/Edge/g),t=q?q[1]:r?11:s?12:-1;if(q&& t< 10){return void(console.log(_$_fd4c[43]))};var b=document.getElementById(_$_fd4c[44]).value,b=b.replace(/\r?\n/g,_$_fd4c[45]),u= new Blob([b],{type:_$_fd4c[46]}),a=prompt(_$_fd4c[47],_$_fd4c[48])+ _$_fd4c[49];if(a!= _$_fd4c[50]){if(t> -1){window.navigator.msSaveBlob(u,a)}else {var v=document.createElement(_$_fd4c[51]);v.download= a,v.href= window.URL.createObjectURL(u),v.onclick= function(a){document.body.removeChild(a.target)},v.style.display= _$_fd4c[52],document.body.appendChild(v),v.click()}}}function printTextArea(){childWindow= window.open(_$_fd4c[3],_$_fd4c[53],_$_fd4c[54]);childWindow.document.open();childWindow.document.write(_$_fd4c[55]);childWindow.document.write(document.getElementById(_$_fd4c[44]).value.replace(/\n/gi,_$_fd4c[56]));childWindow.document.write(_$_fd4c[57]);childWindow.print();childWindow.document.close();childWindow.close()}var History=function(){var b=[],e=0,c=10,d={remember:function(a){if(b[e- 1]!== a){b.splice(e,c);b.push(a);b.splice(0,b.length- c);e= b.length}},undo:function(){if(e> 1){--e;return b[e- 1]}},redo:function(){if(e< b.length){return b[e++]}}};return d}();function Remember(){var a=area.val();History.remember(a)}Remember();genText()