Skip to content

Commit

Permalink
Update 1991-07-25-rm-space.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ibbsbbr authored Sep 11, 2024
1 parent d09f0f8 commit f32ec3d
Showing 1 changed file with 73 additions and 21 deletions.
94 changes: 73 additions & 21 deletions _posts/1991-07-25-rm-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,76 @@ tags:
layout: default
slug: rm-space
---
<script src="https://phrasefix.com/dist/js/jquery.min.js" type="text/javascript"></script>
<h2 class="text-center">Remove Leading and Trailing Space Tool</h2>
<script>
var _0x2c21c3=_0x2945;(function(_0x4ec64b,_0x4aebf9){var _0x4056b7=_0x2945,_0x2bcca2=_0x4ec64b();while(!![]){try{var _0x235149=-parseInt(_0x4056b7(0x142))/0x1+-parseInt(_0x4056b7(0x132))/0x2*(-parseInt(_0x4056b7(0x12e))/0x3)+-parseInt(_0x4056b7(0x13e))/0x4*(-parseInt(_0x4056b7(0x143))/0x5)+parseInt(_0x4056b7(0x13b))/0x6*(parseInt(_0x4056b7(0x12b))/0x7)+parseInt(_0x4056b7(0x147))/0x8+-parseInt(_0x4056b7(0x127))/0x9*(-parseInt(_0x4056b7(0x144))/0xa)+-parseInt(_0x4056b7(0x12c))/0xb;if(_0x235149===_0x4aebf9)break;else _0x2bcca2['push'](_0x2bcca2['shift']());}catch(_0x5de0c1){_0x2bcca2['push'](_0x2bcca2['shift']());}}}(_0x5609,0x653ce));function clear_all(){var _0x43dcda=_0x2945;document[_0x43dcda(0x135)]['results'][_0x43dcda(0x140)]='',document[_0x43dcda(0x135)][_0x43dcda(0x11b)][_0x43dcda(0x140)]='',document[_0x43dcda(0x120)](_0x43dcda(0x131))[_0x43dcda(0x13a)]=_0x43dcda(0x121),document[_0x43dcda(0x120)](_0x43dcda(0x11f))['innerHTML']=_0x43dcda(0x139),document[_0x43dcda(0x120)](_0x43dcda(0x146))[_0x43dcda(0x13a)]=_0x43dcda(0x125),document['getElementById'](_0x43dcda(0x124))[_0x43dcda(0x13a)]=_0x43dcda(0x148),document['getElementById'](_0x43dcda(0x126))[_0x43dcda(0x13a)]=_0x43dcda(0x11e),document[_0x43dcda(0x120)](_0x43dcda(0x129))[_0x43dcda(0x13a)]=_0x43dcda(0x119);}function download_results(){var _0xb36ad2=_0x2945;this['saveTextAsFile'](document[_0xb36ad2(0x135)][_0xb36ad2(0x11c)][_0xb36ad2(0x140)],'phrasefix-com.txt');}function copy_results(){var _0xd88ae5=_0x2945;return document[_0xd88ae5(0x135)][_0xd88ae5(0x11c)]['select'](),document[_0xd88ae5(0x12d)](_0xd88ae5(0x14a)),document[_0xd88ae5(0x120)](_0xd88ae5(0x11a))[_0xd88ae5(0x13a)]='<div\x20class=\x22alert\x20alert-success\x22\x20role=\x22alert\x22\x20style=\x22display:\x20block;\x22;><b>Text\x20copied\x20to\x20clipboard!</b></div>',document[_0xd88ae5(0x120)](_0xd88ae5(0x11a))[_0xd88ae5(0x14b)]['display']=_0xd88ae5(0x141),setTimeout(function(){var _0x21ed58=_0xd88ae5;document[_0x21ed58(0x120)](_0x21ed58(0x11a))[_0x21ed58(0x14b)][_0x21ed58(0x12a)]=_0x21ed58(0x123);},0x1194),![];}function _0x2945(_0x2c3ac2,_0x3b5a3a){var _0x56097c=_0x5609();return _0x2945=function(_0x29459c,_0x410f55){_0x29459c=_0x29459c-0x118;var _0x59078c=_0x56097c[_0x29459c];return _0x59078c;},_0x2945(_0x2c3ac2,_0x3b5a3a);}function _0x5609(){var _0x30512c=['execCommand','3oBeaIu','','text/plain','characterCount','1062156EcWsfE','webkitURL','createObjectURL','script','location','split','Download\x20File','Character\x20Count\x20(without\x20spaces):\x200','innerHTML','1002UPBSwf','fix','download','52uBoRaE','URL','value','block','766506YQQUjk','217145nyJecN','50hXlltm','createElement','wordCount','5802904LwZPul','Sentence\x20Count:\x200','appendChild','copy','style','href','Line\x20Count:\x200','copied','input','results','trim','Paragraph\x20Count:\x200','characterCountns','getElementById','Character\x20Count:\x200','body','none','sentenceCount','Word\x20Count:\x200','paragraphCount','327105VseFxq','indexOf','lineCount','display','7609sVZjhq','11034056kWozjT'];_0x5609=function(){return _0x30512c;};return _0x5609();}function phraseFix(){var _0x2ce1e0=_0x2945,_0x37652f=document[_0x2ce1e0(0x135)][_0x2ce1e0(0x11b)]['value'];_0x37652f=_0x37652f[_0x2ce1e0(0x137)](/\n/)['map'](function(_0x45f4a5){var _0x12bcc7=_0x2ce1e0;return _0x45f4a5[_0x12bcc7(0x11d)]();})['join']('\x0a'),document[_0x2ce1e0(0x135)][_0x2ce1e0(0x11c)][_0x2ce1e0(0x140)]=_0x37652f;}function saveTextAsFile(_0x30d70a,_0x4a16bd){var _0xf62c4e=_0x2945,_0x27e552=new Blob([_0x30d70a],{'type':_0xf62c4e(0x130)}),_0x4ef417=document[_0xf62c4e(0x145)]('a');_0x4ef417[_0xf62c4e(0x13d)]=_0x4a16bd,_0x4ef417[_0xf62c4e(0x13a)]=_0xf62c4e(0x138),window[_0xf62c4e(0x133)]!=null?_0x4ef417[_0xf62c4e(0x118)]=window[_0xf62c4e(0x133)][_0xf62c4e(0x134)](_0x27e552):(_0x4ef417[_0xf62c4e(0x118)]=window[_0xf62c4e(0x13f)][_0xf62c4e(0x134)](_0x27e552),_0x4ef417['onclick']=destroyClickedElement,_0x4ef417[_0xf62c4e(0x14b)][_0xf62c4e(0x12a)]=_0xf62c4e(0x123),document[_0xf62c4e(0x122)][_0xf62c4e(0x149)](_0x4ef417)),_0x4ef417['click']();}if(window[_0x2c21c3(0x136)]['href'][_0x2c21c3(0x128)](_0x2c21c3(0x13c))!=-0x1){}else window[_0x2c21c3(0x136)][_0x2c21c3(0x118)]=_0x2c21c3(0x12f);</script>
<form name="script">
<textarea name="input" id="input" rows="10" class="form-control border-0 form-control-lg shadow-sm" placeholder="Type or paste your content here" onkeyup="phraseFix();"></textarea>
Stats: <span id="characterCount" class="badge badge-light">Character Count: 0</span>
<span id="characterCountns" class="badge badge-light">Character Count (without spaces): 0</span>
<span id="wordCount" class="badge badge-light">Word Count: 0</span>
<span id="sentenceCount" class="badge badge-light">Sentence Count: 0</span>
<span id="paragraphCount" class="badge badge-light">Paragraph Count: 0</span>
<span id="lineCount" class="badge badge-light">Line Count: 0</span>
<div class=" pt-2"></div>
<textarea name="results" id="results" rows="10" class="form-control border-0 form-control-lg shadow-sm" placeholder="Results will be shown here."></textarea>
<div class=" pt-2">
<input type="button" style=" margin-bottom:5px;" class="btn btn-primary" onClick='copy_results();' value="Copy Results">
<input type="button" style=" margin-bottom:5px;" class="btn btn-primary" onClick='clear_all();' value="Clear">
<input type="button" style=" margin-bottom:5px;" class="btn btn-primary" onclick='download_results();' value="Download">
</div>
<div id="copied"></div>
</form>
<script src="https://phrasefix.com/dist/js/jquery.min.js" type="text/javascript"></script>
<h2 class="text-center">Remove Leading and Trailing Space Tool</h2>
<script>
function clear_all() {
var _0x43dcda = _0x2945;
document[_0x43dcda(0x135)]['results'][_0x43dcda(0x140)] = '',
document[_0x43dcda(0x135)][_0x43dcda(0x11b)][_0x43dcda(0x140)] = '',
document[_0x43dcda(0x120)](_0x43dcda(0x131))[_0x43dcda(0x13a)] = _0x43dcda(0x121),
document[_0x43dcda(0x120)](_0x43dcda(0x11f))['innerHTML'] = _0x43dcda(0x139),
document[_0x43dcda(0x120)](_0x43dcda(0x146))[_0x43dcda(0x13a)] = _0x43dcda(0x125),
document['getElementById'](_0x43dcda(0x124))[_0x43dcda(0x13a)] = _0x43dcda(0x148),
document['getElementById'](_0x43dcda(0x126))[_0x43dcda(0x13a)] = _0x43dcda(0x11e),
document[_0x43dcda(0x120)](_0x43dcda(0x129))[_0x43dcda(0x13a)] = _0x43dcda(0x119);
}
function download_results() {
var _0xb36ad2 = _0x2945;
this['saveTextAsFile'](document[_0xb36ad2(0x135)][_0xb36ad2(0x11c)][_0xb36ad2(0x140)], 'phrasefix-com.txt');
}
function copy_results() {
var _0xd88ae5 = _0x2945;
return document[_0xd88ae5(0x135)][_0xd88ae5(0x11c)]['select'](),
document[_0xd88ae5(0x12d)](_0xd88ae5(0x14a)),
document[_0xd88ae5(0x120)](_0xd88ae5(0x11a))[_0xd88ae5(0x13a)] = '<div\x20class=\x22alert\x20alert-success\x22\x20role=\x22alert\x22\x20style=\x22display:\x20block;\x22;><b>Text\x20copied\x20to\x20clipboard!</b></div>',
document[_0xd88ae5(0x120)](_0xd88ae5(0x11a))[_0xd88ae5(0x14b)]['display'] = _0xd88ae5(0x141),
setTimeout(function() {
var _0x21ed58 = _0xd88ae5;
document[_0x21ed58(0x120)](_0x21ed58(0x11a))[_0x21ed58(0x14b)][_0x21ed58(0x12a)] = _0x21ed58(0x123);
}, 0x1194),
![];
}
function phraseFix() {
var _0x2ce1e0 = _0x2945
, _0x37652f = document[_0x2ce1e0(0x135)][_0x2ce1e0(0x11b)]['value'];
_0x37652f = _0x37652f[_0x2ce1e0(0x137)](/\n/)['map'](function(_0x45f4a5) {
var _0x12bcc7 = _0x2ce1e0;
return _0x45f4a5[_0x12bcc7(0x11d)]();
})['join']('\x0a'),
document[_0x2ce1e0(0x135)][_0x2ce1e0(0x11c)][_0x2ce1e0(0x140)] = _0x37652f;
}
function saveTextAsFile(_0x30d70a, _0x4a16bd) {
var _0xf62c4e = _0x2945
, _0x27e552 = new Blob([_0x30d70a],{
'type': _0xf62c4e(0x130)
})
, _0x4ef417 = document[_0xf62c4e(0x145)]('a');
_0x4ef417[_0xf62c4e(0x13d)] = _0x4a16bd,
_0x4ef417[_0xf62c4e(0x13a)] = _0xf62c4e(0x138),
window[_0xf62c4e(0x133)] != null ? _0x4ef417[_0xf62c4e(0x118)] = window[_0xf62c4e(0x133)][_0xf62c4e(0x134)](_0x27e552) : (_0x4ef417[_0xf62c4e(0x118)] = window[_0xf62c4e(0x13f)][_0xf62c4e(0x134)](_0x27e552),
_0x4ef417['onclick'] = destroyClickedElement,
_0x4ef417[_0xf62c4e(0x14b)][_0xf62c4e(0x12a)] = _0xf62c4e(0x123),
document[_0xf62c4e(0x122)][_0xf62c4e(0x149)](_0x4ef417)),
_0x4ef417['click']();
}
if (window[_0x2c21c3(0x136)]['href'][_0x2c21c3(0x128)](_0x2c21c3(0x13c)) != -0x1) {} else
window[_0x2c21c3(0x136)][_0x2c21c3(0x118)] = _0x2c21c3(0x12f);
</script>
<form name="script">
<textarea name="input" id="input" rows="10" class="form-control border-0 form-control-lg shadow-sm" placeholder="Type or paste your content here" onkeyup="phraseFix();"></textarea>
Stats: <span id="characterCount" class="badge badge-light">Character Count: 0</span>
<span id="characterCountns" class="badge badge-light">Character Count (without spaces): 0</span>
<span id="wordCount" class="badge badge-light">Word Count: 0</span>
<span id="sentenceCount" class="badge badge-light">Sentence Count: 0</span>
<span id="paragraphCount" class="badge badge-light">Paragraph Count: 0</span>
<span id="lineCount" class="badge badge-light">Line Count: 0</span>
<div class=" pt-2"></div>
<textarea name="results" id="results" rows="10" class="form-control border-0 form-control-lg shadow-sm" placeholder="Results will be shown here."></textarea>
<div class=" pt-2">
<input type="button" style=" margin-bottom:5px;" class="btn btn-primary" onclick="copy_results();" value="Copy Results"/>
<input type="button" style=" margin-bottom:5px;" class="btn btn-primary" onclick="clear_all();" value="Clear"/>
<input type="button" style=" margin-bottom:5px;" class="btn btn-primary" onclick="download_results();" value="Download"/>
</div>
<div id="copied"></div>
</form>

0 comments on commit f32ec3d

Please sign in to comment.