
<html>
<head>
      <title>Online Text Editor</title>
      <link rel="icon" type="image/x-icon" href="logo.png">

    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes">

  <style>
   .tool-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px green;

      }
 #editor {
    width: 100%;
    height: 400px;
    border: 4px solid black;
    border-radius: 25px;
  }
    .button {
        background-color: #4CAF50;
        color: white;
        padding: 12px 10px;
        margin: 10px 0;
        border: none;
        cursor: pointer;
        width: 100%;
        border-radius: 30px;
        font-size: 15px;
       text-shadow: 2px 2px 5px red;


  }
</style>
</head>
<body>
    <div class="tool-container"><br />
      <center><div class="tool-header">Online Text Editor</div></center><br />
<textarea id="editor"></textarea>
<br>
<button class="button" onclick="calculateWordCount()">Calculate Word Count</button>
<button class="button" class="button" onclick="calculateCharacterCount()">Calculate Character Count</button>
<button class="button" onclick="convertToLowercase()">Convert to Lowercase</button>
<button class="button" onclick="convertToUppercase()">Convert to Uppercase</button>
<button class="button" onclick="capitalizeFirstLetter()">Capitalize First Letter of Each Word</button>
<button class="button" onclick="caseConverter()">Case Converter</button>
<button class="button" onclick="copyText()">Copy</button>
<button class="button" onclick="saveAsText()">Save as Text</button>

<p>The word count is: <span id="wordCount"></span></p>
<p>The character count is: <span id="characterCount"></span></p>

<script>
function _0x2fb4(_0x101097,_0x3634e1){var _0x283b2c=_0x283b();return _0x2fb4=function(_0x2fb46d,_0x35e086){_0x2fb46d=_0x2fb46d-0x173;var _0x2d9c0e=_0x283b2c[_0x2fb46d];return _0x2d9c0e;},_0x2fb4(_0x101097,_0x3634e1);}var _0x213bfd=_0x2fb4;(function(_0x2b34f3,_0x4eee05){var _0x886f90=_0x2fb4,_0x143f8e=_0x2b34f3();while(!![]){try{var _0x4802e7=parseInt(_0x886f90(0x175))/0x1+parseInt(_0x886f90(0x17a))/0x2+-parseInt(_0x886f90(0x18d))/0x3*(-parseInt(_0x886f90(0x189))/0x4)+-parseInt(_0x886f90(0x193))/0x5*(parseInt(_0x886f90(0x19a))/0x6)+-parseInt(_0x886f90(0x17b))/0x7*(parseInt(_0x886f90(0x194))/0x8)+-parseInt(_0x886f90(0x17e))/0x9*(parseInt(_0x886f90(0x18a))/0xa)+parseInt(_0x886f90(0x173))/0xb;if(_0x4802e7===_0x4eee05)break;else _0x143f8e['push'](_0x143f8e['shift']());}catch(_0x4e6f6e){_0x143f8e['push'](_0x143f8e['shift']());}}}(_0x283b,0xa12e2));var editor=document[_0x213bfd(0x18b)](_0x213bfd(0x18e));function calculateWordCount(){var _0xc943f0=_0x213bfd,_0x3f17ec=editor[_0xc943f0(0x196)],_0x507882=_0x3f17ec[_0xc943f0(0x197)]('\x20'),_0x27199a=_0x507882[_0xc943f0(0x195)];document[_0xc943f0(0x18b)](_0xc943f0(0x190))[_0xc943f0(0x199)]=_0x27199a;}function calculateCharacterCount(){var _0x579445=_0x213bfd,_0x1a497f=editor[_0x579445(0x196)],_0x571ab7=_0x1a497f[_0x579445(0x195)];document[_0x579445(0x18b)](_0x579445(0x185))[_0x579445(0x199)]=_0x571ab7;}function convertToLowercase(){var _0x58f36d=_0x213bfd;editor[_0x58f36d(0x196)]=editor[_0x58f36d(0x196)][_0x58f36d(0x177)]();}function convertToUppercase(){var _0x5bcbd2=_0x213bfd;editor[_0x5bcbd2(0x196)]=editor[_0x5bcbd2(0x196)][_0x5bcbd2(0x183)]();}function caseConverter(){var _0x77eaad=_0x213bfd,_0x21cf27=editor[_0x77eaad(0x196)],_0x10c1e9=_0x21cf27[_0x77eaad(0x197)]('')[_0x77eaad(0x186)](_0x273966=>_0x273966===_0x273966[_0x77eaad(0x183)]()?_0x273966[_0x77eaad(0x177)]():_0x273966[_0x77eaad(0x183)]())[_0x77eaad(0x18c)]('');editor[_0x77eaad(0x196)]=_0x10c1e9;}function capitalizeFirstLetter(){var _0x1538ec=_0x213bfd;editor[_0x1538ec(0x196)]=editor[_0x1538ec(0x196)][_0x1538ec(0x177)]()[_0x1538ec(0x197)]('\x20')[_0x1538ec(0x186)](_0x450fdf=>_0x450fdf[_0x1538ec(0x17d)](0x0)[_0x1538ec(0x183)]()+_0x450fdf[_0x1538ec(0x188)](0x1))[_0x1538ec(0x18c)]('\x20');}function copyText(){var _0x218100=_0x213bfd;editor[_0x218100(0x17c)](),document[_0x218100(0x181)](_0x218100(0x182)),alert(_0x218100(0x179));}function _0x283b(){var _0x40f183=['split','createObjectURL','innerHTML','4854SSODXS','href','12365199MRdLCt','content','217163PPyCxB','download','toLowerCase','createElement','Text\x20copied\x20to\x20clipboard!','762880ShYUol','21eyLfvr','select','charAt','1102293Pbbpdt','addEventListener','getItem','execCommand','copy','toUpperCase','setItem','characterCount','map','text.txt','slice','1052hYAwmH','70pHnsDD','getElementById','join','13746zXGDQf','editor','keyup','wordCount','text/plain','click','4325xuNJRA','1894560LkAjWU','length','value'];_0x283b=function(){return _0x40f183;};return _0x283b();}function saveAsText(){var _0xeeb7=_0x213bfd,_0x48dc9a=editor[_0xeeb7(0x196)],_0x2e1c25=new Blob([_0x48dc9a],{'type':_0xeeb7(0x191)}),_0x3bf984=document[_0xeeb7(0x178)]('a');_0x3bf984[_0xeeb7(0x19b)]=URL[_0xeeb7(0x198)](_0x2e1c25),_0x3bf984[_0xeeb7(0x176)]=_0xeeb7(0x187),_0x3bf984[_0xeeb7(0x192)]();}editor[_0x213bfd(0x17f)](_0x213bfd(0x18f),function(){var _0x42b86b=_0x213bfd;localStorage[_0x42b86b(0x184)](_0x42b86b(0x174),editor[_0x42b86b(0x196)]);}),editor[_0x213bfd(0x196)]=localStorage[_0x213bfd(0x180)](_0x213bfd(0x174));
</script>

</body>
</html>

