whisper.cat stuff
This commit is contained in:
1
weboasis/text/js/add-commas-to-numbers.js
Normal file
1
weboasis/text/js/add-commas-to-numbers.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/add-line-breaks.js
Normal file
1
weboasis/text/js/add-line-breaks.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/add-line-numbers.js
Normal file
1
weboasis/text/js/add-line-numbers.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/add-prefix-suffix.js
Normal file
1
weboasis/text/js/add-prefix-suffix.js
Normal file
@ -0,0 +1 @@
|
||||
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(function(){Clipboard(area)}),$(_$_272a[41]).click(function(){area.select().focus()});var History=function(){var a=[],c=0;return {remember:function(d){a[c- 1]!== d&& (a.splice(c,10),a.push(d),a.splice(0,a.length- 10),c= a.length)},undo:function(){if(c> 1){return a[--c- 1]}},redo:function(){if(c< a.length){return a[c++]}}}}();function Remember(){var a=area.val();History.remember(a)}Remember()
|
1
weboasis/text/js/center-text.js
Normal file
1
weboasis/text/js/center-text.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_6cb9=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","\x23\x73\x65\x74\x74\x69\x6E\x67\x73","\x23\x70\x61\x64\x43\x68\x61\x72","\x23\x70\x61\x64\x4C\x65\x6E\x67\x74\x68","\x0A","","\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\x20\x73\x74\x79\x6C\x65\x3D\x22\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A\x20\x43\x6F\x6E\x73\x6F\x6C\x61\x73\x2C\x20\x43\x6F\x75\x72\x69\x65\x72\x2C\x20\x4D\x6F\x6E\x61\x63\x6F\x6F\x2C\x20\x6D\x6F\x6E\x6F\x73\x70\x61\x63\x65\x3B\x6C\x69\x6E\x65\x2D\x68\x65\x69\x67\x68\x74\x3A\x31\x2E\x35\x3B\x77\x68\x69\x74\x65\x2D\x73\x70\x61\x63\x65\x3A\x70\x72\x65\x22\x3E","\x3C\x62\x72\x3E","\x3C\x2F\x62\x6F\x64\x79\x3E\x3C\x2F\x68\x74\x6D\x6C\x3E","\x48\x69\x0A\x48\x65\x6C\x6C\x6F\x0A\x57\x65\x6C\x63\x6F\x6D\x65\x21","\x23\x63\x65\x6E\x74\x65\x72\x54\x65\x78\x74","\x20","\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=$(_$_6cb9[0]),examples=JSON.parse(localStorage.getItem(_$_6cb9[1]));function padLines(){$(_$_6cb9[2]).val();var a,b=$(_$_6cb9[3]).val(),c=$(_$_6cb9[4]).val();isNaN(c)?c= 0:c*= 1;var g,d,f,h=area.val().replace(/\r\n|\r|\n/gm,_$_6cb9[5]).split(_$_6cb9[5]);h.length> 1&& _$_6cb9[6]== h[h.length- 1]&& h.splice(-1,1);for(a= 0;a< h.length;a++){if(h[a]= h[a].trim(),h[a].length< c){for(d= Math.floor((c- h[a].length)/ 2),f= _$_6cb9[6],g= 0;g< d;g++){f+= b};h[a]= f+ h[a],h[a]= h[a].rpad(c,b)}};h= h.join(_$_6cb9[5]),area.val(h)}function loadText(){var a=$(_$_6cb9[8])[_$_6cb9[7]](0).files[0],b= new FileReader;b.onload= function(a){var b=a.target.result;area.val(b)},b.readAsText(a,_$_6cb9[9])}function saveText(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),g=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),d=navigator.userAgent.match(/Edge/g),f=c?c[1]:g?11:d?12:-1;if(c&& f< 10){console.log(_$_6cb9[10])}else {b= (b= document.getElementById(_$_6cb9[12]).value).replace(/\r?\n/g,_$_6cb9[11]);var h= new Blob([b],{type:_$_6cb9[13]});if(_$_6cb9[14]!= (a= prompt(_$_6cb9[15],_$_6cb9[16])+ _$_6cb9[17])){if(f> -1){window.navigator.msSaveBlob(h,a)}else {var j=document.createElement(_$_6cb9[18]);j.download= a,j.href= window.URL.createObjectURL(h),j.onclick= function(a){document.body.removeChild(a.target)},j.style.display= _$_6cb9[19],document.body.appendChild(j),j.click()}}}}function printTextArea(){childWindow= window.open(_$_6cb9[6],_$_6cb9[20],_$_6cb9[21]),childWindow.document.open(),childWindow.document.write(_$_6cb9[22]),childWindow.document.write(document.getElementById(_$_6cb9[12]).value.replace(/\n/gi,_$_6cb9[23])),childWindow.document.write(_$_6cb9[24]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_6cb9[25]),$(_$_6cb9[26]).click(function(){Remember();area.val().replace(/\r\n|\r|\n/gm,_$_6cb9[5]);padLines(),Remember()}),String.prototype.rpad= function(a,b){if(void(0)=== b){b= _$_6cb9[27]};for(var c=this;c.length< a;){c+= b};return c},$(_$_6cb9[28]).click(function(){Clipboard(area)}),$(_$_6cb9[29]).click(function(){area.val(_$_6cb9[6]),Remember()}),$(_$_6cb9[8]).on(_$_6cb9[30],function(){loadText()}),$(_$_6cb9[31]).click(function(){saveText()}),$(_$_6cb9[32]).click(function(){printTextArea()}),$(_$_6cb9[33]).click(function(){var a=History.undo();void(0)!== a&& area.val(a)}),$(_$_6cb9[34]).click(function(){var a=History.redo();void(0)!== a&& area.val(a)}),$(_$_6cb9[35]).click(function(){Clipboard(area)}),$(_$_6cb9[36]).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()
|
1
weboasis/text/js/concatenate-text.js
Normal file
1
weboasis/text/js/concatenate-text.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_907e=["\x23\x69\x6E\x70\x75\x74\x5F\x63\x6F\x6C\x41","\x23\x69\x6E\x70\x75\x74\x5F\x63\x6F\x6C\x42","\x23\x6F\x75\x74\x70\x75\x74\x5F\x74\x65\x78\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","\x67\x65\x74","\x23\x75\x70\x6C\x6F\x61\x64\x5F\x63\x6F\x6C\x41","\x55\x54\x46\x2D\x38","\x23\x75\x70\x6C\x6F\x61\x64\x5F\x63\x6F\x6C\x42","\x4E\x6F\x20\x62\x6C\x6F\x62\x73\x20\x6F\x6E\x20\x49\x45\x20\x76\x65\x72\x3C\x31\x30","\x0D\x0A","\x6F\x75\x74\x70\x75\x74\x5F\x74\x65\x78\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","\x41\x0A\x42\x0A\x43","\x31\x0A\x32\x0A\x33","\x23\x70\x72\x65\x66\x69\x78","\x23\x69\x6E\x66\x69\x78","\x23\x73\x75\x66\x66\x69\x78","\x0A","","\x63\x68\x65\x63\x6B\x65\x64","\x23\x69\x73\x45\x6D\x70\x74\x79","\x43\x6F\x6D\x62\x69\x6E\x65\x64\x20\x4C\x69\x6E\x65\x73\x3A\x20","\x20\x28","\x2C\x20","\x29","\x23\x69\x6E\x73\x74\x61\x6E\x63\x65\x73","\x23\x70\x72\x65\x6D\x65\x72\x67\x65\x2C\x20\x23\x66\x69\x6C\x65\x5F\x75\x70\x6C\x6F\x61\x64\x2C\x20\x23\x6F\x70\x74\x69\x6F\x6E\x73","\x23\x6D\x65\x72\x67\x65\x64\x2C\x20\x23\x66\x69\x6C\x65\x5F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x4D\x65\x72\x67\x65\x64\x20","\x20\x6C\x69\x6E\x65\x73","\x23\x63\x6F\x6D\x62\x69\x6E\x65\x54\x65\x78\x74","\x23\x73\x74\x61\x72\x74\x4F\x76\x65\x72","\x2E\x63\x6C\x69\x70\x62\x6F\x61\x72\x64","\x23\x69\x6E\x70\x75\x74\x5F\x63\x6F\x6C\x41\x2C\x20\x23\x69\x6E\x70\x75\x74\x5F\x63\x6F\x6C\x42\x2C\x20\x23\x6F\x75\x74\x70\x75\x74\x5F\x74\x65\x78\x74","\x23\x63\x6C\x65\x61\x72\x41\x6C\x6C","\x23\x66\x69\x6C\x65\x5F\x64\x6F\x77\x6E\x6C\x6F\x61\x64"];var colA=$(_$_907e[0]),colB=$(_$_907e[1]),area=$(_$_907e[2]),examples=JSON.parse(localStorage.getItem(_$_907e[3]));function loadTextA(){var a=$(_$_907e[5])[_$_907e[4]](0).files[0],g= new FileReader;g.onload= function(a){var g=a.target.result;$(_$_907e[0]).val(g)},g.readAsText(a,_$_907e[6])}function loadTextB(){var a=$(_$_907e[7])[_$_907e[4]](0).files[0],g= new FileReader;g.onload= function(a){var g=a.target.result;$(_$_907e[1]).val(g)},g.readAsText(a,_$_907e[6])}function saveText(a,g){var d=navigator.userAgent.match(/MSIE\s([\d.]+)/),c=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),b=navigator.userAgent.match(/Edge/g),f=d?d[1]:c?11:b?12:-1;if(d&& f< 10){console.log(_$_907e[8])}else {g= (g= document.getElementById(_$_907e[10]).value).replace(/\r?\n/g,_$_907e[9]);var h= new Blob([g],{type:_$_907e[11]});if(_$_907e[12]!= (a= prompt(_$_907e[13],_$_907e[14])+ _$_907e[15])){if(f> -1){window.navigator.msSaveBlob(h,a)}else {var j=document.createElement(_$_907e[16]);j.download= a,j.href= window.URL.createObjectURL(h),j.onclick= function(a){document.body.removeChild(a.target)},j.style.display= _$_907e[17],document.body.appendChild(j),j.click()}}}}1== examples&& (colA.val(_$_907e[18]),colB.val(_$_907e[19])),$(_$_907e[36]).click(function(){prefix= $(_$_907e[20]).val(),infix= $(_$_907e[21]).val(),suffix= $(_$_907e[22]).val(),input1= colA.val().replace(/\r\n|\r|\n/gm,_$_907e[23]).split(_$_907e[23]),input2= colB.val().replace(/\r\n|\r|\n/gm,_$_907e[23]).split(_$_907e[23]);var a=input1.length,g=input2.length,d=a+ g,c=0,b=Math.max(input1.length,input2.length),f=[];for(c= 0;c< b;c++){null== input1[c]&& (input1[c]= _$_907e[24]),null== input2[c]&& (input2[c]= _$_907e[24]),$(_$_907e[26]).prop(_$_907e[25])?input1[c]+ input2[c]!= _$_907e[24]&& (f[c]= prefix+ input1[c]+ infix+ input2[c]+ suffix):f[c]= prefix+ input1[c]+ infix+ input2[c]+ suffix};f= f.join(_$_907e[23]),$(_$_907e[2]).val(f),$(_$_907e[31]).html(_$_907e[27]+ d+ _$_907e[28]+ a+ _$_907e[29]+ g+ _$_907e[30]),$(_$_907e[32]).hide(),$(_$_907e[33]).show(),Toast(_$_907e[34]+ d+ _$_907e[35])}),$(_$_907e[37]).click(function(){$(_$_907e[33]).hide(),$(_$_907e[32]).show()}),$(_$_907e[38]).click(function(){Clipboard(area)}),$(_$_907e[40]).click(function(){$(_$_907e[39]).val(_$_907e[24])}),$(_$_907e[41]).click(function(){saveText()})
|
1
weboasis/text/js/convert-case.js
Normal file
1
weboasis/text/js/convert-case.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/difference-checker.js
Normal file
1
weboasis/text/js/difference-checker.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_e28a=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x61\x73\x65\x54\x65\x78\x74","\x6E\x65\x77\x54\x65\x78\x74","\x64\x69\x66\x66\x6F\x75\x74\x70\x75\x74","","\x43\x6F\x6C\x75\x6D\x6E\x20\x41","\x43\x6F\x6C\x75\x6D\x6E\x20\x42","\x67\x65\x74","\x23\x75\x70\x6C\x6F\x61\x64\x5F\x63\x6F\x6C\x41","\x23\x62\x61\x73\x65\x54\x65\x78\x74","\x55\x54\x46\x2D\x38","\x23\x75\x70\x6C\x6F\x61\x64\x5F\x63\x6F\x6C\x42","\x23\x6E\x65\x77\x54\x65\x78\x74","\x41\x70\x70\x6C\x65\x0A\x42\x61\x6E\x61\x6E\x61\x0A\x42\x69\x6C\x62\x65\x72\x72\x79\x0A\x42\x6C\x61\x63\x6B\x62\x65\x72\x72\x79\x0A\x43\x68\x65\x72\x72\x79\x0A\x4C\x65\x6D\x6F\x6E\x0A\x4C\x69\x6D\x65","\x41\x70\x70\x6C\x65\x0A\x41\x76\x6F\x63\x61\x64\x6F\x0A\x42\x61\x6E\x61\x6E\x61\x0A\x42\x6C\x61\x63\x6B\x62\x65\x72\x72\x79\x0A\x42\x6C\x75\x65\x62\x65\x72\x72\x79\x0A\x43\x68\x65\x72\x72\x79\x0A\x4C\x65\x6D\x6F\x6E\x73\x0A\x4C\x69\x6D\x65","\x23\x73\x65\x74\x74\x69\x6E\x67\x73","\x23\x64\x69\x66\x66\x69\x6E\x70\x75\x74\x2C\x20\x2E\x69\x6E\x70\x75\x74\x5F\x62\x74\x6E","\x23\x64\x69\x66\x66\x6F\x75\x74\x70\x75\x74\x2C\x20\x2E\x6F\x75\x74\x70\x75\x74\x5F\x62\x74\x6E","\x23\x63\x6F\x6D\x70\x61\x72\x65\x54\x65\x78\x74","\x23\x67\x6F\x42\x61\x63\x6B","\x23\x62\x61\x73\x65\x54\x65\x78\x74\x2C\x20\x23\x6E\x65\x77\x54\x65\x78\x74","\x2E\x64\x69\x66\x66","\x23\x63\x6C\x65\x61\x72\x41\x6C\x6C","\x23\x72\x65\x73\x65\x74\x41\x6C\x6C"];var area=$(_$_e28a[0]),examples=JSON.parse(localStorage.getItem(_$_e28a[1]));function diffUsingJS(a){_$_e28a[2];var f=function(a){return document.getElementById(a)},g=difflib.stringAsLines(f(_$_e28a[3]).value),c=difflib.stringAsLines(f(_$_e28a[4]).value),b= new difflib.SequenceMatcher(g,c).get_opcodes(),d=f(_$_e28a[5]);d.innerHTML= _$_e28a[6],d.appendChild(diffview.buildView({baseTextLines:g,newTextLines:c,opcodes:b,baseTextName:_$_e28a[7],newTextName:_$_e28a[8],viewType:a}))}function loadTextA(){var a=$(_$_e28a[10])[_$_e28a[9]](0).files[0],f= new FileReader;f.onload= function(a){var f=a.target.result;$(_$_e28a[11]).val(f)},f.readAsText(a,_$_e28a[12])}function loadTextB(){var a=$(_$_e28a[13])[_$_e28a[9]](0).files[0],f= new FileReader;f.onload= function(a){var f=a.target.result;$(_$_e28a[14]).val(f)},f.readAsText(a,_$_e28a[12])}1== examples&& ($(_$_e28a[11]).val(_$_e28a[15]),$(_$_e28a[14]).val(_$_e28a[16])),$(_$_e28a[20]).click(function(){var a=$(_$_e28a[17]).val();1== a?diffUsingJS(0):2== a&& diffUsingJS(1),$(_$_e28a[18]).hide(),$(_$_e28a[19]).show()}),$(_$_e28a[21]).click(function(){$(_$_e28a[19]).hide(),$(_$_e28a[18]).show()}),$(_$_e28a[24]).click(function(){$(_$_e28a[22]).val(_$_e28a[6]),$(_$_e28a[23]).hide()}),$(_$_e28a[25]).click(function(){$(_$_e28a[19]).hide(),$(_$_e28a[18]).show(),$(_$_e28a[22]).val(_$_e28a[6])})
|
1
weboasis/text/js/extract-column.js
Normal file
1
weboasis/text/js/extract-column.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_c3b5=["\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","\x32","\x23\x63\x6F\x6C\x4E\x75\x6D","\u2014","\x23\x64\x65\x6C\x69\x6D\x69\x74\x53\x74\x72","\x0A","\x45\x78\x74\x72\x61\x63\x74\x65\x64\x20\x63\x6F\x6C\x75\x6D\x6E\x20","\x23\x65\x78\x74\x72\x61\x63\x74\x54\x65\x78\x74","\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=$(_$_c3b5[0]),examples=JSON.parse(localStorage.getItem(_$_c3b5[1]));function loadText(){var b=$(_$_c3b5[3])[_$_c3b5[2]](0).files[0],d= new FileReader;d.onload= function(b){var d=b.target.result;area.val(d)},d.readAsText(b,_$_c3b5[4])}function saveText(b,d){var g=navigator.userAgent.match(/MSIE\s([\d.]+)/),a=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),f=navigator.userAgent.match(/Edge/g),c=g?g[1]:a?11:f?12:-1;if(g&& c< 10){console.log(_$_c3b5[5])}else {d= (d= document.getElementById(_$_c3b5[7]).value).replace(/\r?\n/g,_$_c3b5[6]);var h= new Blob([d],{type:_$_c3b5[8]});if(_$_c3b5[9]!= (b= prompt(_$_c3b5[10],_$_c3b5[11])+ _$_c3b5[12])){if(c> -1){window.navigator.msSaveBlob(h,b)}else {var j=document.createElement(_$_c3b5[13]);j.download= b,j.href= window.URL.createObjectURL(h),j.onclick= function(b){document.body.removeChild(b.target)},j.style.display= _$_c3b5[14],document.body.appendChild(j),j.click()}}}}function printTextArea(){childWindow= window.open(_$_c3b5[15],_$_c3b5[16],_$_c3b5[17]),childWindow.document.open(),childWindow.document.write(_$_c3b5[18]),childWindow.document.write(document.getElementById(_$_c3b5[7]).value.replace(/\n/gi,_$_c3b5[19])),childWindow.document.write(_$_c3b5[20]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& (area.val(_$_c3b5[21]),$(_$_c3b5[23]).val(_$_c3b5[22]),$(_$_c3b5[25]).val(_$_c3b5[24])),$(_$_c3b5[28]).click(function(){Remember();for(var b=area.val().replace(/\r\n|\r|\n/gm,_$_c3b5[26]).split(_$_c3b5[26]),d=$(_$_c3b5[25]).val(),g=$(_$_c3b5[23]).val()- 1,a= new Array,f=( new Array,_$_c3b5[15]),c=0;c< b.length;c++){f= null!= (f= b[c].split(d)[g])?f:_$_c3b5[15],a[c]= f};b= a.join(_$_c3b5[26]),area.val(b),Toast(_$_c3b5[27]+ (g+ 1)),Remember()}),$(_$_c3b5[29]).click(function(){Clipboard(area)}),$(_$_c3b5[30]).click(function(){area.val(_$_c3b5[15]),Remember()}),$(_$_c3b5[3]).on(_$_c3b5[31],function(){loadText()}),$(_$_c3b5[32]).click(function(){saveText()}),$(_$_c3b5[33]).click(function(){printTextArea()}),$(_$_c3b5[34]).click(function(){var b=History.undo();void(0)!== b&& area.val(b)}),$(_$_c3b5[35]).click(function(){var b=History.redo();void(0)!== b&& area.val(b)}),$(_$_c3b5[36]).click(function(){Clipboard(area)}),$(_$_c3b5[37]).click(function(){area.select().focus()});var History=function(){var b=[],d=0;return {remember:function(g){b[d- 1]!== g&& (b.splice(d,10),b.push(g),b.splice(0,b.length- 10),d= b.length)},undo:function(){if(d> 1){return b[--d- 1]}},redo:function(){if(d< b.length){return b[d++]}}}}();function Remember(){var b=area.val();History.remember(b)}Remember()
|
1
weboasis/text/js/filler-text.js
Normal file
1
weboasis/text/js/filler-text.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/find-and-replace.js
Normal file
1
weboasis/text/js/find-and-replace.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/index.js
Normal file
1
weboasis/text/js/index.js
Normal file
@ -0,0 +1 @@
|
||||
$("body").ready(function(){$(".live-list li").each(function(){$(this).attr("data-search",$(this).text().toLowerCase())}),$("#live-search").on("keyup",function(){""==this.value?($("h4").fadeIn(100),$(".app-group").removeClass("search-group"),$(".live-list").addClass("clear")):($("h4").hide(),$(".app-group").addClass("search-group"),$(".live-list").removeClass("clear"));var e=$(this).val().trim().toLowerCase();$(".live-list li").each(function(){$(this).filter("[data-search *= "+e+"]").length>0||e.length<1?$(this).fadeIn(100):$(this).fadeOut(100)})})}),$("#categories").change(function(){$(this).find("option:selected").each(function(){var e=$(this).attr("value");"tag_all"==e?$(".category").fadeIn(100):e&&($(".category").not("."+e).hide(),$("."+e).fadeIn(100))})}),$("#share_this").click(function(){var e=window.location.href;return window.open("https://www.addtoany.com/share#url="+escape(e),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=670"),!1});
|
2
weboasis/text/js/jquery.js
vendored
Normal file
2
weboasis/text/js/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/justify-text.js
Normal file
1
weboasis/text/js/justify-text.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/lib/difflib.js
Normal file
1
weboasis/text/js/lib/difflib.js
Normal file
@ -0,0 +1 @@
|
||||
__whitespace={" ":!0,"\t":!0,"\n":!0,"\f":!0,"\r":!0},difflib={defaultJunkFunction:function(t){return __whitespace.hasOwnProperty(t)},stripLinebreaks:function(t){return t.replace(/^[\n\r]*|[\n\r]*$/g,"")},stringAsLines:function(t){for(var i=t.indexOf("\n"),n=t.indexOf("\r"),e=i>-1&&n>-1||n<0?"\n":"\r",s=t.split(e),h=0;h<s.length;h++)s[h]=difflib.stripLinebreaks(s[h]);return s},__reduce:function(t,i,n){if(null!=n)var e=n,s=0;else{if(!i)return null;e=i[0],s=1}for(;s<i.length;s++)e=t(e,i[s]);return e},__ntuplecomp:function(t,i){for(var n=Math.max(t.length,i.length),e=0;e<n;e++){if(t[e]<i[e])return-1;if(t[e]>i[e])return 1}return t.length==i.length?0:t.length<i.length?-1:1},__calculate_ratio:function(t,i){return i?2*t/i:1},__isindict:function(t){return function(i){return t.hasOwnProperty(i)}},__dictget:function(t,i,n){return t.hasOwnProperty(i)?t[i]:n},SequenceMatcher:function(t,i,n){this.set_seqs=function(t,i){this.set_seq1(t),this.set_seq2(i)},this.set_seq1=function(t){t!=this.a&&(this.a=t,this.matching_blocks=this.opcodes=null)},this.set_seq2=function(t){t!=this.b&&(this.b=t,this.matching_blocks=this.opcodes=this.fullbcount=null,this.__chain_b())},this.__chain_b=function(){for(var t=this.b,i=t.length,n=this.b2j={},e={},s=0;s<t.length;s++){var h=t[s];if(n.hasOwnProperty(h)){var r=n[h];i>=200&&100*r.length>i?(e[h]=1,delete n[h]):r.push(s)}else n[h]=[s]}for(var h in e)e.hasOwnProperty(h)&&delete n[h];var l=this.isjunk,a={};if(l){for(var h in e)e.hasOwnProperty(h)&&l(h)&&(a[h]=1,delete e[h]);for(var h in n)n.hasOwnProperty(h)&&l(h)&&(a[h]=1,delete n[h])}this.isbjunk=difflib.__isindict(a),this.isbpopular=difflib.__isindict(e)},this.find_longest_match=function(t,i,n,e){for(var s=this.a,h=this.b,r=this.b2j,l=this.isbjunk,a=t,u=n,o=0,c=null,f={},_=[],b=t;b<i;b++){var g={},p=difflib.__dictget(r,s[b],_);for(var d in p)if(p.hasOwnProperty(d)){if((c=p[d])<n)continue;if(c>=e)break;g[c]=k=difflib.__dictget(f,c-1,0)+1,k>o&&(a=b-k+1,u=c-k+1,o=k)}f=g}for(;a>t&&u>n&&!l(h[u-1])&&s[a-1]==h[u-1];)a--,u--,o++;for(;a+o<i&&u+o<e&&!l(h[u+o])&&s[a+o]==h[u+o];)o++;for(;a>t&&u>n&&l(h[u-1])&&s[a-1]==h[u-1];)a--,u--,o++;for(;a+o<i&&u+o<e&&l(h[u+o])&&s[a+o]==h[u+o];)o++;return[a,u,o]},this.get_matching_blocks=function(){if(null!=this.matching_blocks)return this.matching_blocks;for(var t,i,n,e,s,h,r,l,a,u=this.a.length,o=this.b.length,c=[[0,u,0,o]],f=[];c.length;)t=(s=c.pop())[0],i=s[1],n=s[2],e=s[3],h=(a=this.find_longest_match(t,i,n,e))[0],r=a[1],(l=a[2])&&(f.push(a),t<h&&n<r&&c.push([t,h,n,r]),h+l<i&&r+l<e&&c.push([h+l,i,r+l,e]));f.sort(difflib.__ntuplecomp);var _=j1=k1=block=0,b=[];for(var g in f)f.hasOwnProperty(g)&&(block=f[g],i2=block[0],j2=block[1],k2=block[2],_+k1==i2&&j1+k1==j2?k1+=k2:(k1&&b.push([_,j1,k1]),_=i2,j1=j2,k1=k2));return k1&&b.push([_,j1,k1]),b.push([u,o,0]),this.matching_blocks=b,this.matching_blocks},this.get_opcodes=function(){if(null!=this.opcodes)return this.opcodes;var t,i,n,e,s,h=0,r=0,l=[];this.opcodes=l;var a=this.get_matching_blocks();for(var u in a)a.hasOwnProperty(u)&&(i=(t=a[u])[0],n=t[1],e=t[2],s="",h<i&&r<n?s="replace":h<i?s="delete":r<n&&(s="insert"),s&&l.push([s,h,i,r,n]),h=i+e,r=n+e,e&&l.push(["equal",i,h,n,r]));return l},this.get_grouped_opcodes=function(t){t||(t=3);var i,n,e,s,h,r,l=this.get_opcodes();l||(l=[["equal",0,1,0,1]]),"equal"==l[0][0]&&(n=(i=l[0])[0],e=i[1],s=i[2],h=i[3],r=i[4],l[0]=[n,Math.max(e,s-t),s,Math.max(h,r-t),r]),"equal"==l[l.length-1][0]&&(n=(i=l[l.length-1])[0],e=i[1],s=i[2],h=i[3],r=i[4],l[l.length-1]=[n,e,Math.min(s,e+t),h,Math.min(r,h+t)]);var a=t+t,u=[],o=[];for(var c in l)l.hasOwnProperty(c)&&(n=(i=l[c])[0],e=i[1],s=i[2],h=i[3],r=i[4],"equal"==n&&s-e>a&&(u.push([n,e,Math.min(s,e+t),h,Math.min(r,h+t)]),o.push(u),u=[],e=Math.max(e,s-t),h=Math.max(h,r-t)),u.push([n,e,s,h,r]));return!u||1==u.length&&"equal"==u[0][0]||o.push(u),o},this.ratio=function(){return matches=difflib.__reduce(function(t,i){return t+i[i.length-1]},this.get_matching_blocks(),0),difflib.__calculate_ratio(matches,this.a.length+this.b.length)},this.quick_ratio=function(){var t,i;if(null==this.fullbcount){this.fullbcount=t={};for(var n=0;n<this.b.length;n++)t[i=this.b[n]]=difflib.__dictget(t,i,0)+1}t=this.fullbcount;var e={},s=difflib.__isindict(e),h=numb=0;for(n=0;n<this.a.length;n++)s(i=this.a[n])?numb=e[i]:numb=difflib.__dictget(t,i,0),e[i]=numb-1,numb>0&&h++;return difflib.__calculate_ratio(h,this.a.length+this.b.length)},this.real_quick_ratio=function(){var t=this.a.length,i=this.b.length;return _calculate_ratio(Math.min(t,i),t+i)},this.isjunk=n||difflib.defaultJunkFunction,this.a=this.b=null,this.set_seqs(t,i)}};
|
1
weboasis/text/js/lib/diffview.css
Normal file
1
weboasis/text/js/lib/diffview.css
Normal file
@ -0,0 +1 @@
|
||||
table.diff tbody{font-size:.75rem}table.diff tbody th{width:34px;font-family:"Courier New",Courier,monospace;background:#f3f3f3;font-weight:400;text-align:center}table.diff thead{background:#f3f3f3}table.diff thead th{text-align:left;font-weight:500}table.diff .texttitle{text-align:center}table.diff .empty{background:#DDD}table.diff .skip{background:#EFEFEF}table.diff .insert{background:#b6d7a8}table.diff .replace{background:#ffe599}table.diff .delete{background:#ea9999}.dark table.diff td,.dark table.diff th{border-color:rgba(255,255,255,.05)}.dark table.diff thead{background:#444}.dark table.diff tbody th{background:#444}.dark table.diff .equal{background:#333}.dark table.diff .empty{background:#222}.dark table.diff .insert,.dark table.diff .replace,.dark table.diff .delete{color:#111}
|
1
weboasis/text/js/lib/diffview.js
Normal file
1
weboasis/text/js/lib/diffview.js
Normal file
@ -0,0 +1 @@
|
||||
diffview={buildView:function(e){var t=e.baseTextLines,n=e.newTextLines,d=e.opcodes,a=e.baseTextName?e.baseTextName:"Column A",i=e.newTextName?e.newTextName:"Column B",l=e.contextSize,p=0==e.viewType||1==e.viewType?e.viewType:0;if(null==t)throw"Cannot build diff view; baseTextLines is not defined.";if(null==n)throw"Cannot build diff view; newTextLines is not defined.";if(!d)throw"Canno build diff view; opcodes is not defined.";function h(e,t){var n=document.createElement(e);return n.className=t,n}function c(e,t){var n=document.createElement(e);return n.appendChild(document.createTextNode(t)),n}function r(e,t,n){var d=document.createElement(e);return d.className=t,d.appendChild(document.createTextNode(n)),d}var o=document.createElement("thead"),u=document.createElement("tr");o.appendChild(u),p?(u.appendChild(document.createElement("th")),u.appendChild(document.createElement("th")),u.appendChild(r("th","texttitle",a+" vs. "+i))):(u.appendChild(document.createElement("th")),u.appendChild(r("th","texttitle",a)),u.appendChild(document.createElement("th")),u.appendChild(r("th","texttitle",i))),o=[o];var m,f=[];function s(e,t,n,d,a){return t<n?(e.appendChild(c("th",(t+1).toString())),e.appendChild(r("td",a,d[t].replace(/\t/g," "))),t+1):(e.appendChild(document.createElement("th")),e.appendChild(h("td","empty")),t)}function C(e,t,n,d,a){e.appendChild(c("th",null==t?"":(t+1).toString())),e.appendChild(c("th",null==n?"":(n+1).toString())),e.appendChild(r("td",a,d[null!=t?t:n].replace(/\t/g," ")))}for(var g=0;g<d.length;g++){code=d[g],change=code[0];for(var v=code[1],w=code[2],x=code[3],E=code[4],T=Math.max(w-v,E-x),b=[],N=[],y=0;y<T;y++){if(l&&d.length>1&&(g>0&&y==l||0==g&&0==y)&&"equal"==change){var L=T-(0==g?1:2)*l;if(L>1){if(b.push(u=document.createElement("tr")),v+=L,x+=L,y+=L-1,u.appendChild(c("th","...")),p||u.appendChild(r("td","skip","")),u.appendChild(c("th","...")),u.appendChild(r("td","skip","")),g+1==d.length)break;continue}}b.push(u=document.createElement("tr")),p?"insert"==change?C(u,null,x++,n,change):"replace"==change?(N.push(m=document.createElement("tr")),v<w&&C(u,v++,null,t,"delete"),x<E&&C(m,null,x++,n,"insert")):"delete"==change?C(u,v++,null,t,change):C(u,v++,x++,t,change):(v=s(u,v,w,t,change),x=s(u,x,E,n,change))}for(y=0;y<b.length;y++)f.push(b[y]);for(y=0;y<N.length;y++)f.push(N[y])}for(var g in o.push(u=document.createElement("tbody")),f)f.hasOwnProperty(g)&&u.appendChild(f[g]);for(var g in u=h("table","diff"+(p?" inlinediff":"")),o)o.hasOwnProperty(g)&&u.appendChild(o[g]);return u}};
|
7
weboasis/text/js/lib/justified.js
Normal file
7
weboasis/text/js/lib/justified.js
Normal file
@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* justified <https://github.com/jonschlinkert/justified>
|
||||
*
|
||||
* Copyright (c) 2014-2018, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
function repeat(n,e){if("string"!=typeof n)throw new TypeError("expected a string");if(1===e)return n;if(2===e)return n+n;var t=n.length*e;if(cache!==n||"undefined"==typeof cache)cache=n,res="";else if(res.length>=t)return res.substr(0,t);for(;t>res.length&&e>1;)1&e&&(res+=n),e>>=1,n+=n;return res+=n,res=res.substr(0,t),res}function longest(n){if(!Array.isArray(n))throw new TypeError("expected an array");var e=n.length;if(0!==e){var t=n[0];"number"==typeof t&&(t=String(t));for(var r=t.length,a=0;++a<e;){var i=n[a];if(null!=i){"number"==typeof i&&(i=String(i));var o=i.length;"number"==typeof o&&o>r&&(r=o,t=i)}}return t}}function wrap(n,e){if(null==n)return n;var t=(e=e||{}).width||50,r="string"==typeof e.indent?e.indent:" ",a=e.newline||"\n"+r,i="function"==typeof e.escape?e.escape:identity,o=".{1,"+t+"}";!0!==e.cut&&(o+="([\\s]+|$)|[^\\s]+?([\\s]+|$)");var s=new RegExp(o,"g"),f=r+(n.match(s)||[]).map(function(n){return"\n"===n.slice(-1)&&(n=n.slice(0,n.length-1)),i(n)}).join(a);return!0===e.trim&&(f=f.replace(/[ \t]*$/gm,"")),f}function identity(n){return n}var lastRandomIndex=0;function justify(n,e){var t=Object.assign({random:random,width:55},e);lastRandomIndex=0,n=wrap(n,t);for(var r=t.indent?repeat(" ",t.indent):"",a=n.split(/\r?\n/),i=longest(a).length,o=Math.min(t.width,i),s=a.length,f="",u=0;u<s;u++){var l=a[u].trim(),d=u!==s-1||!0===t.justifyLastLine;u===s-1&&"function"==typeof t.justifyLastLine&&(d=t.justifyLastLine(l,o)),d&&(l=toMaxLength(l,o,t)),f+=r+l+"\n"}return f}function toMaxLength(n,e,t){for(var r=e-n.length,a=n.split(" "),i=a.length;r-- >0;)a[t.random(i-2)]+=" ";return a.join(" ").trim()}function random(n){var e=[.14975434898516649,.48920102670502064,.5460856891554375,.843156677246687,.5339584048702419,.6557222579529927,.025277961886063904,.7906919328816282,.39547316726978843,.8046447313481258,.40539968121122616,.3240593946801942,.04700841115323562],t=e[lastRandomIndex%e.length];return lastRandomIndex>1e3?lastRandomIndex=0:lastRandomIndex++,Math.floor(t*(n+1))}
|
5
weboasis/text/js/lib/naturalSort.js
Normal file
5
weboasis/text/js/lib/naturalSort.js
Normal file
@ -0,0 +1,5 @@
|
||||
/*
|
||||
* Natural Sort algorithm for Javascript - Version 0.7 - Released under MIT license
|
||||
* Author: Jim Palmer (based on chunking idea from Dave Koelle)
|
||||
*/
|
||||
function naturalSort(e,a){"use strict";var r,t,n=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,p=/^0x[0-9a-f]+$/i,c=/^0/,s=function(e){return naturalSort.insensitive&&(""+e).toLowerCase()||""+e},f=s(e).replace(i,"")||"",u=s(a).replace(i,"")||"",d=f.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),o=u.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),h=parseInt(f.match(p),16)||1!==d.length&&f.match(l)&&Date.parse(f),w=parseInt(u.match(p),16)||h&&u.match(l)&&Date.parse(u)||null;if(w){if(h<w)return-1;if(h>w)return 1}for(var $=0,m=Math.max(d.length,o.length);$<m;$++){if(r=!(d[$]||"").match(c)&&parseFloat(d[$])||d[$]||0,t=!(o[$]||"").match(c)&&parseFloat(o[$])||o[$]||0,isNaN(r)!==isNaN(t))return isNaN(r)?1:-1;if(typeof r!=typeof t&&(r+="",t+=""),r<t)return-1;if(r>t)return 1}return 0}
|
1
weboasis/text/js/pad-text.js
Normal file
1
weboasis/text/js/pad-text.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/password-generator.js
Normal file
1
weboasis/text/js/password-generator.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/remove-diacritics.js
Normal file
1
weboasis/text/js/remove-diacritics.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/remove-duplicate-lines.js
Normal file
1
weboasis/text/js/remove-duplicate-lines.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/remove-empty-lines.js
Normal file
1
weboasis/text/js/remove-empty-lines.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/remove-line-breaks.js
Normal file
1
weboasis/text/js/remove-line-breaks.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/remove-spaces.js
Normal file
1
weboasis/text/js/remove-spaces.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/remove-unwanted-characters.js
Normal file
1
weboasis/text/js/remove-unwanted-characters.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/replace-smart-straight-quotes.js
Normal file
1
weboasis/text/js/replace-smart-straight-quotes.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/reverse-letters.js
Normal file
1
weboasis/text/js/reverse-letters.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_1935=["\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\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","\x23\x73\x65\x74\x74\x69\x6E\x67\x73","\x52\x65\x76\x65\x72\x73\x65\x64","\x0A","\x46\x6C\x69\x70\x70\x65\x64","\x23\x72\x65\x76\x54\x65\x78\x74","\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=$(_$_1935[0]),examples=JSON.parse(localStorage.getItem(_$_1935[1]));function loadText(){var a=$(_$_1935[3])[_$_1935[2]](0).files[0],b= new FileReader;b.onload= function(a){var b=a.target.result;area.val(b)},b.readAsText(a,_$_1935[4])}function saveText(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),f=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),h=navigator.userAgent.match(/Edge/g),d=c?c[1]:f?11:h?12:-1;if(c&& d< 10){console.log(_$_1935[5])}else {b= (b= document.getElementById(_$_1935[7]).value).replace(/\r?\n/g,_$_1935[6]);var j= new Blob([b],{type:_$_1935[8]});if(_$_1935[9]!= (a= prompt(_$_1935[10],_$_1935[11])+ _$_1935[12])){if(d> -1){window.navigator.msSaveBlob(j,a)}else {var g=document.createElement(_$_1935[13]);g.download= a,g.href= window.URL.createObjectURL(j),g.onclick= function(a){document.body.removeChild(a.target)},g.style.display= _$_1935[14],document.body.appendChild(g),g.click()}}}}function printTextArea(){childWindow= window.open(_$_1935[15],_$_1935[16],_$_1935[17]),childWindow.document.open(),childWindow.document.write(_$_1935[18]),childWindow.document.write(document.getElementById(_$_1935[7]).value.replace(/\n/gi,_$_1935[19])),childWindow.document.write(_$_1935[20]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_1935[21]),$(_$_1935[26]).click(function(){Remember();var a=area.val(),b=$(_$_1935[22]).val();if(1== b){a= a.split(_$_1935[15]).reverse().join(_$_1935[15]),Toast(_$_1935[23])}else {if(2== b){var c=0;for(a= a.replace(/\r\n|\r|\n/gm,_$_1935[24]).split(_$_1935[24]),c= 0;c< a.length;c++){a[c]= a[c].split(_$_1935[15]).reverse().join(_$_1935[15])};a= a.join(_$_1935[24]),Toast(_$_1935[25])}};area.val(a),Remember()}),$(_$_1935[27]).click(function(){Clipboard(area)}),$(_$_1935[28]).click(function(){area.val(_$_1935[15]),Remember()}),$(_$_1935[3]).on(_$_1935[29],function(){loadText()}),$(_$_1935[30]).click(function(){saveText()}),$(_$_1935[31]).click(function(){printTextArea()}),$(_$_1935[32]).click(function(){var a=History.undo();void(0)!== a&& area.val(a)}),$(_$_1935[33]).click(function(){var a=History.redo();void(0)!== a&& area.val(a)}),$(_$_1935[34]).click(function(){Clipboard(area)}),$(_$_1935[35]).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()
|
1
weboasis/text/js/reverse-list.js
Normal file
1
weboasis/text/js/reverse-list.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_ec2d=["\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","\x31\x0A\x32\x0A\x33\x0A\x34\x0A\x35\x0A\x36\x0A\x37\x0A\x38\x0A\x39\x0A\x31\x30","\x0A","\x52\x65\x76\x65\x72\x73\x65\x64","\x23\x72\x65\x76\x65\x72\x73\x65\x4C\x69\x73\x74","\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=$(_$_ec2d[0]),examples=JSON.parse(localStorage.getItem(_$_ec2d[1]));function loadText(){var a=$(_$_ec2d[3])[_$_ec2d[2]](0).files[0],b= new FileReader;b.onload= function(a){var b=a.target.result;area.val(b)},b.readAsText(a,_$_ec2d[4])}function saveText(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),h=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),f=navigator.userAgent.match(/Edge/g),d=c?c[1]:h?11:f?12:-1;if(c&& d< 10){console.log(_$_ec2d[5])}else {b= (b= document.getElementById(_$_ec2d[7]).value).replace(/\r?\n/g,_$_ec2d[6]);var j= new Blob([b],{type:_$_ec2d[8]});if(_$_ec2d[9]!= (a= prompt(_$_ec2d[10],_$_ec2d[11])+ _$_ec2d[12])){if(d> -1){window.navigator.msSaveBlob(j,a)}else {var g=document.createElement(_$_ec2d[13]);g.download= a,g.href= window.URL.createObjectURL(j),g.onclick= function(a){document.body.removeChild(a.target)},g.style.display= _$_ec2d[14],document.body.appendChild(g),g.click()}}}}function printTextArea(){childWindow= window.open(_$_ec2d[15],_$_ec2d[16],_$_ec2d[17]),childWindow.document.open(),childWindow.document.write(_$_ec2d[18]),childWindow.document.write(document.getElementById(_$_ec2d[7]).value.replace(/\n/gi,_$_ec2d[19])),childWindow.document.write(_$_ec2d[20]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_ec2d[21]),$(_$_ec2d[24]).click(function(){Remember();var a=area.val().replace(/\r\n|\r|\n/gm,_$_ec2d[22]).split(_$_ec2d[22]);a= a.reverse().join(_$_ec2d[22]),area.val(a),Toast(_$_ec2d[23]),Remember()}),$(_$_ec2d[25]).click(function(){Clipboard(area)}),$(_$_ec2d[26]).click(function(){area.val(_$_ec2d[15]),Remember()}),$(_$_ec2d[3]).on(_$_ec2d[27],function(){loadText()}),$(_$_ec2d[28]).click(function(){saveText()}),$(_$_ec2d[29]).click(function(){printTextArea()}),$(_$_ec2d[30]).click(function(){var a=History.undo();void(0)!== a&& area.val(a)}),$(_$_ec2d[31]).click(function(){var a=History.redo();void(0)!== a&& area.val(a)}),$(_$_ec2d[32]).click(function(){Clipboard(area)}),$(_$_ec2d[33]).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()
|
1
weboasis/text/js/reverse-words.js
Normal file
1
weboasis/text/js/reverse-words.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_d89a=["\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","\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","\x23\x73\x65\x74\x74\x69\x6E\x67\x73","\x24\x31","\x0A","\x20","\x20\x0A\x20","\x20\x24\x31\x20","\x57\x6F\x72\x64\x73\x20\x72\x65\x76\x65\x72\x73\x65\x64","\x57\x6F\x72\x64\x73\x20\x66\x6C\x69\x70\x70\x65\x64","\x23\x72\x65\x76\x57\x6F\x72\x64\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=$(_$_d89a[0]),examples=JSON.parse(localStorage.getItem(_$_d89a[1]));function loadText(){var a=$(_$_d89a[3])[_$_d89a[2]](0).files[0],b= new FileReader;b.onload= function(a){var b=a.target.result;area.val(b)},b.readAsText(a,_$_d89a[4])}function saveText(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),d=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),j=navigator.userAgent.match(/Edge/g),h=c?c[1]:d?11:j?12:-1;if(c&& h< 10){console.log(_$_d89a[5])}else {b= (b= document.getElementById(_$_d89a[7]).value).replace(/\r?\n/g,_$_d89a[6]);var f= new Blob([b],{type:_$_d89a[8]});if(_$_d89a[9]!= (a= prompt(_$_d89a[10],_$_d89a[11])+ _$_d89a[12])){if(h> -1){window.navigator.msSaveBlob(f,a)}else {var g=document.createElement(_$_d89a[13]);g.download= a,g.href= window.URL.createObjectURL(f),g.onclick= function(a){document.body.removeChild(a.target)},g.style.display= _$_d89a[14],document.body.appendChild(g),g.click()}}}}function printTextArea(){childWindow= window.open(_$_d89a[15],_$_d89a[16],_$_d89a[17]),childWindow.document.open(),childWindow.document.write(_$_d89a[18]),childWindow.document.write(document.getElementById(_$_d89a[7]).value.replace(/\n/gi,_$_d89a[19])),childWindow.document.write(_$_d89a[20]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_d89a[21]),$(_$_d89a[30]).click(function(){Remember();var a=area.val(),b=$(_$_d89a[22]).val();1== b?(a= (a= (a= (a= a.replace(/\r\n|\r|\n/gm,_$_d89a[24])).replace(/([^a-z 0-9])/gi,_$_d89a[27])).replace(/\n/g,_$_d89a[26]).split(_$_d89a[25]).reverse().join(_$_d89a[25]).replace(/ \n /g,_$_d89a[24])).replace(/ ([^a-z 0-9]) /gi,_$_d89a[23]),Toast(_$_d89a[28])):2== b&& (a= (a= (a= (a= (a= a.replace(/\r\n|\r|\n/gm,_$_d89a[24])).replace(/([^a-z 0-9\n])/gi,_$_d89a[27])).split(_$_d89a[24]).reverse().join(_$_d89a[24])).replace(/\n/g,_$_d89a[26]).split(_$_d89a[25]).reverse().join(_$_d89a[25]).replace(/ \n /g,_$_d89a[24])).replace(/ ([^a-z 0-9\n]) /gi,_$_d89a[23]),Toast(_$_d89a[29])),area.val(a),Remember()}),$(_$_d89a[31]).click(function(){Clipboard(area)}),$(_$_d89a[32]).click(function(){area.val(_$_d89a[15]),Remember()}),$(_$_d89a[3]).on(_$_d89a[33],function(){loadText()}),$(_$_d89a[34]).click(function(){saveText()}),$(_$_d89a[35]).click(function(){printTextArea()}),$(_$_d89a[36]).click(function(){var a=History.undo();void(0)!== a&& area.val(a)}),$(_$_d89a[37]).click(function(){var a=History.redo();void(0)!== a&& area.val(a)}),$(_$_d89a[38]).click(function(){Clipboard(area)}),$(_$_d89a[39]).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()
|
1
weboasis/text/js/settings.js
Normal file
1
weboasis/text/js/settings.js
Normal file
@ -0,0 +1 @@
|
||||
function save_settings(){var e=$("#ta_language").val();localStorage.setItem("ta_language",e);var t=$("#ta_theme").val();localStorage.setItem("ta_theme",t);var a=$("#ta_font").val();localStorage.setItem("ta_font",a);var l=$("#ta_size").val();localStorage.setItem("ta_size",l),localStorage.setItem("ta_spellcheck",ta_spellcheck.checked),localStorage.setItem("ta_textwrap",ta_textwrap.checked),localStorage.setItem("ta_examples",ta_examples.checked),Toast("Settings saved")}function load_settings(){$("#ta_language").val(localStorage.getItem("ta_language")),$("#ta_theme").val(localStorage.getItem("ta_theme")),$("#ta_font").val(localStorage.getItem("ta_font")),$("#ta_size").val(localStorage.getItem("ta_size"));var e=JSON.parse(localStorage.getItem("ta_spellcheck"));$("#ta_spellcheck").prop("checked",e);var t=JSON.parse(localStorage.getItem("ta_textwrap"));$("#ta_textwrap").prop("checked",t);var a=JSON.parse(localStorage.getItem("ta_examples"));$("#ta_examples").prop("checked",a)}function show_default(){$("#ta_language").val("English"),$("#ta_theme").val("Light"),$("#ta_font").val("Roboto"),$("#ta_size").val("15px"),$("#ta_spellcheck").prop("checked",!1),$("#ta_textwrap").prop("checked",!0),$("#ta_examples").prop("checked",!0),Toast("Default settings applied")}$("#save_btn").click(function(){save_settings(),"Dark"==localStorage.getItem("ta_theme")?$("body").addClass("dark"):$("body").removeClass("dark")}),$("#reset_btn").click(function(){default_settings(),show_default(),$("body").removeClass("dark")}),load_settings(),localStorage.getItem("ta_language")||(default_settings(),show_default());
|
1
weboasis/text/js/site.js
Normal file
1
weboasis/text/js/site.js
Normal file
@ -0,0 +1 @@
|
||||
var font=localStorage.getItem("ta_font");$("#main textarea, .main textarea, .widget-body input").css("font-family",font);var size=localStorage.getItem("ta_size");$(".widget-body textarea").css("font-size",size);var spellcheck=JSON.parse(localStorage.getItem("ta_spellcheck"));$(".widget-body textarea, .widget-body input").attr("spellcheck",spellcheck);var textwrap=JSON.parse(localStorage.getItem("ta_textwrap"));function Alert(t){$(".alert-content").html(t),$(".alert").show()}function Toast(t){$(".toast-content").html(t),$(".toast").show().delay(2e3).fadeOut(250)}function Clipboard(t){t.select().focus(),document.execCommand("copy"),Toast("Copied to Clipboard")}function default_settings(){localStorage.setItem("ta_language","English"),localStorage.setItem("ta_theme","Light"),localStorage.setItem("ta_font","Roboto"),localStorage.setItem("ta_size","15px"),localStorage.setItem("ta_spellcheck",!1),localStorage.setItem("ta_textwrap",!0),localStorage.setItem("ta_examples",!0)}0==textwrap&&$(".widget-body textarea").addClass("wrap-off"),$("#app_menu").click(function(){$("#nav-menu").toggleClass("open"),$(".mask").addClass("active")}),$("body").mouseup(function(t){0===$(t.target).closest("#nav-menu").length&&($("#nav-menu").removeClass("open"),$(".mask").removeClass("active"))}),$(".accordion>li>a:not(:only-child)").click(function(t){var e=$(this).closest("li").find("ul");$(this).closest(".accordion").find("ul").not(e).slideUp(100),$(this).hasClass("active")?$(this).removeClass("active"):($(this).closest(".accordion").find("a.active").removeClass("active"),$(this).addClass("active")),e.stop(!1,!0).slideToggle(100),t.preventDefault()}),$("body").ready(function(){$(document).on("click",".dropdown-trigger",function(t){$(this).siblings().show(),$(this).parent().siblings().each(function(t,e){$(e).find(".dropdown-menu").hide()})})}),$("body").mouseup(function(t){var e=$(".dropdown-menu");e.is(t.target)||e.hide()}),$(".alert-x").click(function(){$(".alert").hide()}),$("#share_this").click(function(){var t=window.location.href;return window.open("https://www.addtoany.com/share#url="+escape(t),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=670"),!1}),$('a[href="#"]').click(function(t){t.preventDefault?t.preventDefault():t.returnValue=!1}),localStorage.getItem("ta_language")||default_settings();
|
1
weboasis/text/js/sort-text.js
Normal file
1
weboasis/text/js/sort-text.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/spaces-to-tabs.js
Normal file
1
weboasis/text/js/spaces-to-tabs.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_b68d=["\x23\x69\x6E\x70\x75\x74\x5F\x6F\x75\x74\x70\x75\x74","\x74\x61\x5F\x65\x78\x61\x6D\x70\x6C\x65\x73","","\x20","\x67","\x09","\x53\x70\x61\x63\x65\x73\x20\x72\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","\x20\x20\x20\x20\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21\x0A\x20\x20\x20\x20\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21\x0A\x20\x20\x20\x20\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21\x0A\x20\x20\x20\x20\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21","\x0A","\x23\x6E\x75\x6D\x53\x70\x61\x63\x65\x73","\x52\x65\x70\x6C\x61\x63\x65\x64","\x23\x63\x6F\x6E\x76\x65\x72\x74\x53\x70\x61\x63\x65\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=$(_$_b68d[0]),examples=JSON.parse(localStorage.getItem(_$_b68d[1]));function SpacestoTab(a,b){for(var c=_$_b68d[2],h=0;h< b;h++){c+= _$_b68d[3]};var d= new RegExp(c,_$_b68d[4]);return delete c,a= a.replace(d,_$_b68d[5])}function resetCount(){$(_$_b68d[7]).html(_$_b68d[6])}function loadText(){var a=$(_$_b68d[9])[_$_b68d[8]](0).files[0],b= new FileReader;b.onload= function(a){var b=a.target.result;area.val(b)},b.readAsText(a,_$_b68d[10])}function saveText(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),h=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),d=navigator.userAgent.match(/Edge/g),j=c?c[1]:h?11:d?12:-1;if(c&& j< 10){console.log(_$_b68d[11])}else {b= (b= document.getElementById(_$_b68d[13]).value).replace(/\r?\n/g,_$_b68d[12]);var g= new Blob([b],{type:_$_b68d[14]});if(_$_b68d[15]!= (a= prompt(_$_b68d[16],_$_b68d[17])+ _$_b68d[18])){if(j> -1){window.navigator.msSaveBlob(g,a)}else {var f=document.createElement(_$_b68d[19]);f.download= a,f.href= window.URL.createObjectURL(g),f.onclick= function(a){document.body.removeChild(a.target)},f.style.display= _$_b68d[20],document.body.appendChild(f),f.click()}}}}function printTextArea(){childWindow= window.open(_$_b68d[2],_$_b68d[21],_$_b68d[22]),childWindow.document.open(),childWindow.document.write(_$_b68d[23]),childWindow.document.write(document.getElementById(_$_b68d[13]).value.replace(/\n/gi,_$_b68d[24])),childWindow.document.write(_$_b68d[25]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_b68d[26]),$(_$_b68d[30]).click(function(){Remember();var a=area.val().replace(/\r\n|\r|\n/gm,_$_b68d[27]);a= SpacestoTab(a,$(_$_b68d[28]).val()),area.val(a),Toast(_$_b68d[29]),Remember()}),$(_$_b68d[31]).click(function(){Clipboard(area)}),$(_$_b68d[32]).click(function(){area.val(_$_b68d[2]),resetCount(),Remember()}),$(_$_b68d[9]).on(_$_b68d[33],function(){loadText(),resetCount()}),$(_$_b68d[34]).click(function(){saveText()}),$(_$_b68d[35]).click(function(){printTextArea()}),$(_$_b68d[36]).click(function(){var a=History.undo();void(0)!== a&& area.val(a),resetCount()}),$(_$_b68d[37]).click(function(){var a=History.redo();void(0)!== a&& area.val(a),resetCount()}),$(_$_b68d[38]).click(function(){Clipboard(area)}),$(_$_b68d[39]).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()
|
1
weboasis/text/js/split-text.js
Normal file
1
weboasis/text/js/split-text.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/strip-html-tags.js
Normal file
1
weboasis/text/js/strip-html-tags.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/swap-columns.js
Normal file
1
weboasis/text/js/swap-columns.js
Normal file
@ -0,0 +1 @@
|
||||
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()}),$(_$_4b7a[37]).click(function(){var b=History.undo();void(0)!== b&& area.val(b)}),$(_$_4b7a[38]).click(function(){var b=History.redo();void(0)!== b&& area.val(b)}),$(_$_4b7a[39]).click(function(){Clipboard(area)}),$(_$_4b7a[40]).click(function(){area.select().focus()});var History=function(){var b=[],c=0;return {remember:function(f){b[c- 1]!== f&& (b.splice(c,10),b.push(f),b.splice(0,b.length- 10),c= b.length)},undo:function(){if(c> 1){return b[--c- 1]}},redo:function(){if(c< b.length){return b[c++]}}}}();function Remember(){var b=area.val();History.remember(b)}Remember()
|
1
weboasis/text/js/tabs-to-spaces.js
Normal file
1
weboasis/text/js/tabs-to-spaces.js
Normal file
@ -0,0 +1 @@
|
||||
var _$_27fd=["\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\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","\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","\x09\x48\x65\x6C\x6C\x6F\x09\x57\x6F\x72\x6C\x64\x21","\x0A","\x23\x6E\x75\x6D\x53\x70\x61\x63\x65\x73","\x20","\x63\x68\x65\x63\x6B\x65\x64","\x23\x69\x73\x4C\x65\x61\x64\x69\x6E\x67","\x54\x61\x62\x73\x20\x72\x65\x70\x6C\x61\x63\x65\x64\x3A\x20","\x20\x74\x61\x62\x73\x20\x72\x65\x70\x6C\x61\x63\x65\x64","\x23\x63\x6F\x6E\x76\x65\x72\x74\x54\x61\x62\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=$(_$_27fd[0]),examples=JSON.parse(localStorage.getItem(_$_27fd[1]));function resetCount(){$(_$_27fd[3]).html(_$_27fd[2])}function loadText(){var b=$(_$_27fd[5])[_$_27fd[4]](0).files[0],g= new FileReader;g.onload= function(b){var g=b.target.result;area.val(g)},g.readAsText(b,_$_27fd[6])}function saveText(b,g){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),a=navigator.userAgent.match(/Trident\/7.0/)&& navigator.userAgent.match(/rv:11/),d=navigator.userAgent.match(/Edge/g),f=c?c[1]:a?11:d?12:-1;if(c&& f< 10){console.log(_$_27fd[7])}else {g= (g= document.getElementById(_$_27fd[9]).value).replace(/\r?\n/g,_$_27fd[8]);var h= new Blob([g],{type:_$_27fd[10]});if(_$_27fd[11]!= (b= prompt(_$_27fd[12],_$_27fd[13])+ _$_27fd[14])){if(f> -1){window.navigator.msSaveBlob(h,b)}else {var j=document.createElement(_$_27fd[15]);j.download= b,j.href= window.URL.createObjectURL(h),j.onclick= function(b){document.body.removeChild(b.target)},j.style.display= _$_27fd[16],document.body.appendChild(j),j.click()}}}}function printTextArea(){childWindow= window.open(_$_27fd[17],_$_27fd[18],_$_27fd[19]),childWindow.document.open(),childWindow.document.write(_$_27fd[20]),childWindow.document.write(document.getElementById(_$_27fd[9]).value.replace(/\n/gi,_$_27fd[21])),childWindow.document.write(_$_27fd[22]),childWindow.print(),childWindow.document.close(),childWindow.close()}1== examples&& area.val(_$_27fd[23]),$(_$_27fd[31]).click(function(){Remember();var b=area.val().replace(/\r\n|\r|\n/gm,_$_27fd[24]),g=$(_$_27fd[25]).val();if(null== (c= b.match(/\t/gm))){var c=0}else {c= c.length};var a=_$_27fd[26];if(a= a.repeat(g),null== (d= (b= $(_$_27fd[28]).prop(_$_27fd[27])?b.replace(/^\t/gm,a):b.replace(/\t/gm,a)).match(/\t/gm))){var d=0}else {d= d.length};var f=c- d;area.val(b),$(_$_27fd[3]).html(_$_27fd[29]+ f),Toast(f+ _$_27fd[30]),Remember()}),$(_$_27fd[32]).click(function(){Clipboard(area)}),$(_$_27fd[33]).click(function(){area.val(_$_27fd[17]),resetCount(),Remember()}),$(_$_27fd[5]).on(_$_27fd[34],function(){loadText(),resetCount()}),$(_$_27fd[35]).click(function(){saveText()}),$(_$_27fd[36]).click(function(){printTextArea()}),$(_$_27fd[37]).click(function(){var b=History.undo();void(0)!== b&& area.val(b),resetCount()}),$(_$_27fd[38]).click(function(){var b=History.redo();void(0)!== b&& area.val(b),resetCount()}),$(_$_27fd[39]).click(function(){Clipboard(area)}),$(_$_27fd[40]).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()
|
1
weboasis/text/js/upside-down-text.js
Normal file
1
weboasis/text/js/upside-down-text.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/word-count.js
Normal file
1
weboasis/text/js/word-count.js
Normal file
File diff suppressed because one or more lines are too long
1
weboasis/text/js/word-wrap.js
Normal file
1
weboasis/text/js/word-wrap.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user