Urdu Keyboard Urdu Keyboard Tool .keyboard-container { display: flex; flex-wrap: wrap; } .letter { margin: 5px; } ا آ ب پ ت ٹ ث ج چ ح خ د ڈ ذ ر ڑ ز ژ س ش ص ض ط ظ ع غ ف ق ک گ ل م ن و ہ ھ ء ی ے ۃ ؏ ﷲ ﷽ ﷻ ﷺ ۱ ۲ ۳ ۴ ۵ ٦ ۷ ۸ ۹ ۰ = – ! ؛ / ۔ ، ÷ + x ؟ ٪ @ ⌫ Copy Download Clear All // JavaScript code to clear the textarea function clearTextarea() { document.getElementById("text-input").value = ""; // Set textarea value to empty string } // Function to handle letter button clicks $(".letter").on("click", function() { var letter = $(this).val(); $("#text-input").val($("#text-input").val() + letter); }); // Function to handle backspace button click $("#backspace").on("click", function() { var text = $("#text-input").val(); $("#text-input").val(text.slice(0, -1)); }); // Function to handle space button click $("#space").on("click", function() { var text = $("#text-input").val(); $("#text-input").val(text + " "); }); // Function to handle copy button click $("#copy").on("click", function() { $("#text-input").select(); document.execCommand("copy"); alert("Text copied to clipboard!"); }); // Function to handle download button click function handleDownload() { // Get the text from the textarea var text = document.getElementById('text-input').value; // Create a Blob object with the text content var blob = new Blob([text], { type: 'text/plain;charset=utf-8' }); // Create a download link element var downloadLink = document.createElement('a'); downloadLink.href = URL.createObjectURL(blob); downloadLink.download = 'urdu_text.txt'; // Append the download link element to the body and trigger the download document.body.appendChild(downloadLink); downloadLink.click(); document.body.removeChild(downloadLink); } // Add click event listener to the download button document.getElementById('download-link').addEventListener('click', handleDownload);