Upload index.html
Browse files- index.html +80 -0
index.html
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<title>Bootstrap demo</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
| 8 |
+
</head>
|
| 9 |
+
|
| 10 |
+
<style>
|
| 11 |
+
body {
|
| 12 |
+
padding: 20px;
|
| 13 |
+
background:black;
|
| 14 |
+
color: white
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.container {
|
| 18 |
+
margin-top:10px;
|
| 19 |
+
max-width: 600px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
h1 {
|
| 23 |
+
text-align: center;
|
| 24 |
+
margin-bottom: 30px;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
textarea {
|
| 28 |
+
width: 100%;
|
| 29 |
+
height: 200px;
|
| 30 |
+
resize: none;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.btn-primary {
|
| 34 |
+
margin-top: 20px;
|
| 35 |
+
width: 100%;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.corrected-text {
|
| 39 |
+
margin-top: 30px;
|
| 40 |
+
font-size: 18px;
|
| 41 |
+
font-weight: bold;
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
<body>
|
| 47 |
+
<h1 class="text-center">Grammar And Spell Checker</h1>
|
| 48 |
+
<div class="container">
|
| 49 |
+
<form action="/spell" method="post" enctype="multipart/form-data">
|
| 50 |
+
<div class="form-group">
|
| 51 |
+
<label for="text">Type your text here</label>
|
| 52 |
+
<textarea class="form-control" id="text" name="text"></textarea>
|
| 53 |
+
</div>
|
| 54 |
+
<button type="submit" class="btn btn-primary">Correct</button>
|
| 55 |
+
</form>
|
| 56 |
+
|
| 57 |
+
{% if corrected_text and corrected_grammar %}
|
| 58 |
+
<h5>Corrected Word: <br> {{corrected_text}}</h5>
|
| 59 |
+
<h5>Grammar Mistakes: <br> {{corrected_grammar}}</h5>
|
| 60 |
+
{% endif %}
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<div class="container">
|
| 64 |
+
<form action="/grammar" method="post" enctype="multipart/form-data">
|
| 65 |
+
<div class="form-group">
|
| 66 |
+
<label for="file">Upload File</label>
|
| 67 |
+
<input type="file" name="file" class="form-control">
|
| 68 |
+
</div>
|
| 69 |
+
<button type="submit" class="btn btn-primary">Correct</button>
|
| 70 |
+
</form>
|
| 71 |
+
{% if corrected_file_text and corrected_file_grammar %}
|
| 72 |
+
<h5>Corrected Word: <br> {{corrected_file_text}}</h5>
|
| 73 |
+
<h5>Grammar Mistakes: <br> {{corrected_file_grammar}}</h5>
|
| 74 |
+
{% endif %}
|
| 75 |
+
</div>
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
|
| 79 |
+
</body>
|
| 80 |
+
</html>
|