
<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">
    <script defer data-domain="tools.badheshchauhan.com"  src="https://getanalyzr.vercel.app/tracking-script.js"></script>

  <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>
  var _0x39d7f1=_0xd2e4;(function(_0xd93440,_0x3845a1){var _0x37ed95=_0xd2e4,_0x2bdfb8=_0xd93440();while(!![]){try{var _0x2a7925=parseInt(_0x37ed95(0x1ac))/0x1+parseInt(_0x37ed95(0x1b8))/0x2+parseInt(_0x37ed95(0x19c))/0x3+-parseInt(_0x37ed95(0x1a2))/0x4*(-parseInt(_0x37ed95(0x19d))/0x5)+-parseInt(_0x37ed95(0x1ad))/0x6*(-parseInt(_0x37ed95(0x19e))/0x7)+-parseInt(_0x37ed95(0x1af))/0x8+parseInt(_0x37ed95(0x1b4))/0x9*(-parseInt(_0x37ed95(0x198))/0xa);if(_0x2a7925===_0x3845a1)break;else _0x2bdfb8['push'](_0x2bdfb8['shift']());}catch(_0x3989d4){_0x2bdfb8['push'](_0x2bdfb8['shift']());}}}(_0x65db,0xa6288));var editor=document[_0x39d7f1(0x1b7)](_0x39d7f1(0x1aa));function calculateWordCount(){var _0x509379=_0x39d7f1,_0x47404b=editor[_0x509379(0x1bc)],_0x2f6660=_0x47404b[_0x509379(0x1b5)]('\x20'),_0x138256=_0x2f6660[_0x509379(0x19f)];document[_0x509379(0x1b7)](_0x509379(0x1b6))[_0x509379(0x1bb)]=_0x138256;}function calculateCharacterCount(){var _0x2b51a8=_0x39d7f1,_0x2b1534=editor[_0x2b51a8(0x1bc)],_0x33a9d7=_0x2b1534[_0x2b51a8(0x19f)];document[_0x2b51a8(0x1b7)](_0x2b51a8(0x197))[_0x2b51a8(0x1bb)]=_0x33a9d7;}function convertToLowercase(){var _0x1b8ad9=_0x39d7f1;editor[_0x1b8ad9(0x1bc)]=editor[_0x1b8ad9(0x1bc)][_0x1b8ad9(0x1a0)]();}function convertToUppercase(){var _0x2a4601=_0x39d7f1;editor[_0x2a4601(0x1bc)]=editor[_0x2a4601(0x1bc)][_0x2a4601(0x1a4)]();}function _0xd2e4(_0x1df07f,_0x17b243){var _0x65db27=_0x65db();return _0xd2e4=function(_0xd2e442,_0x410d4f){_0xd2e442=_0xd2e442-0x196;var _0x44a645=_0x65db27[_0xd2e442];return _0x44a645;},_0xd2e4(_0x1df07f,_0x17b243);}function caseConverter(){var _0x1c02ea=_0x39d7f1,_0x508b12=editor[_0x1c02ea(0x1bc)],_0x192571=_0x508b12['split']('')[_0x1c02ea(0x1a8)](_0xab64f9=>_0xab64f9===_0xab64f9[_0x1c02ea(0x1a4)]()?_0xab64f9[_0x1c02ea(0x1a0)]():_0xab64f9[_0x1c02ea(0x1a4)]())[_0x1c02ea(0x1b2)]('');editor[_0x1c02ea(0x1bc)]=_0x192571;}function capitalizeFirstLetter(){var _0x53221b=_0x39d7f1;editor[_0x53221b(0x1bc)]=editor[_0x53221b(0x1bc)][_0x53221b(0x1a0)]()[_0x53221b(0x1b5)]('\x20')[_0x53221b(0x1a8)](_0x121214=>_0x121214[_0x53221b(0x1b3)](0x0)[_0x53221b(0x1a4)]()+_0x121214[_0x53221b(0x1a1)](0x1))[_0x53221b(0x1b2)]('\x20');}function copyText(){var _0x30e5e2=_0x39d7f1;editor[_0x30e5e2(0x1ba)](),document[_0x30e5e2(0x196)](_0x30e5e2(0x19b)),alert(_0x30e5e2(0x1a9));}function saveAsText(){var _0x19fdbb=_0x39d7f1,_0x4672ac=editor[_0x19fdbb(0x1bc)],_0x55bf4f=new Blob([_0x4672ac],{'type':_0x19fdbb(0x19a)}),_0xbd71c6=document[_0x19fdbb(0x1b9)]('a');_0xbd71c6['href']=URL[_0x19fdbb(0x1a5)](_0x55bf4f),_0xbd71c6[_0x19fdbb(0x1a7)]=_0x19fdbb(0x1b1),_0xbd71c6[_0x19fdbb(0x199)]();}editor[_0x39d7f1(0x1ae)](_0x39d7f1(0x1ab),function(){var _0xb9448d=_0x39d7f1;localStorage[_0xb9448d(0x1a3)](_0xb9448d(0x1b0),editor[_0xb9448d(0x1bc)]);}),editor[_0x39d7f1(0x1bc)]=localStorage[_0x39d7f1(0x1a6)](_0x39d7f1(0x1b0));function _0x65db(){var _0x479a18=['5465890htdLeV','click','text/plain','copy','499884PSWsKM','423805pWJawc','5887483SdRzhW','length','toLowerCase','slice','24VzsdOD','setItem','toUpperCase','createObjectURL','getItem','download','map','Text\x20copied\x20to\x20clipboard!','editor','keyup','1198815LEosim','6gEVnbB','addEventListener','8064280kmDYIH','content','text.txt','join','charAt','27Bbkzrf','split','wordCount','getElementById','1226616ADBKnX','createElement','select','innerHTML','value','execCommand','characterCount'];_0x65db=function(){return _0x479a18;};return _0x65db();}
</script>
</body>
</html>

