Calculator Tools Calculator Tools

Text Correction App

Dec 27, 2023

About this app

An app that corrects text with issue descriptions

Text Correction App Text Correction App Input Text: Correct Text Corrected Text:

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Text Correction App</title>
<meta name="description" content="An app that corrects text with issue descriptions">
<meta name="keywords" content="text correction, grammar check, proofreading">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
document.addEventListener("DOMContentLoaded", function() {
// Function to correct the text
function correctText() {
var inputText = $("#input-text").val();
// Perform text correction logic here
var correctedText = inputText;

// Update the corrected text in the output textarea
$("#output-text").val(correctedText);
}

// Event listener for the "Correct Text" button
$("#correct-button").click(function() {
correctText();
});
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
font-family: 'Roboto', sans-serif;
}

.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}

h1 {
text-align: center;
margin-bottom: 20px;
}

.form-group {
margin-bottom: 20px;
}

.form-control {
height: 200px;
}

.btn {
width: 100%;
}

#output-text {
margin-top: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Text Correction App</h1>
<div class="form-group">
<label for="input-text">Input Text:</label>
<textarea id="input-text" class="form-control" placeholder="Type or paste your text here"></textarea>
</div>
<button id="correct-button" class="btn btn-primary">Correct Text</button>
<div class="form-group">
<label for="output-text">Corrected Text:</label>
<textarea id="output-text" class="form-control" readonly></textarea>
</div>
</div>
</body>
</html>