-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
293 lines (202 loc) · 13.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<div class="container bg-primary">
<div class="row" id="navrow1">
<div class="col d-flex" id="col1">
<img class="navimg" src="spell-check.png" alt="">
<h1 class="text-light" id="navlogotext">Text Summarizer</h1>
</div>
<div class="col" id="navlinkscol">
<ul class="d-flex" id="navlinks">
<a href="index.html" class="nav-link text-light">Home</a>
<a href="#home" class="nav-link text-light">About</a>
<a href="#spellcheck" class="nav-link text-light">Text-Summarizer</a>
<a href="#contact" class="nav-link text-light">Contact</a>
</ul>
</div>
<div class="col" id="row1col3">
<a href="https://github.com/Ajmal112" class="btn btn-warning" id="buymecoffeebtn">buy me a
coffee</a>
<a class="btn btn-dark" href="https://github.com/" id="btn2"><svg xmlns="http://www.w3.org/2000/svg"
width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
</svg> Github</a>
</div>
</div>
</div>
</header>
<main>
<div class="container" id="container2">
<div class="row">
<div class="jumbotron bg-primary-subtle">
<h1 class="fs-1" id="heroh1">About</h1><br>
<h1 class="fs-3" id="home">Welcome to text Summarize Online</h1>
<p>Our text summarizer website is a valuable tool for anyone who needs to condense long articles or documents into shorter, more manageable summaries. With its intuitive interface and advanced algorithms, users can easily input their text and generate concise summaries in a matter of seconds.
The website's powerful AI-based technology ensures that the summaries are accurate and representative of the main points in the original text. This can be particularly helpful for students, researchers, or professionals who need to quickly understand the key takeaways from large volumes of information.<br><br>
The website also provides customizable options, allowing users to adjust the length of the summary and choose which elements of the text to include or exclude. This flexibility makes it easy to tailor the summaries to specific needs or preferences.
One of the standout features of the website is its multilingual support, allowing users to generate summaries in a wide range of languages. This is particularly useful for individuals or businesses with global operations or international clients.<br><br>
The website is designed to be user-friendly and accessible, with a clean and simple layout that makes it easy to navigate. It also includes helpful instructions and tips to ensure that users get the most out of the summarization tool.
In addition to its core functionality, the website also provides related resources and tools, such as writing guides and citation generators. This comprehensive approach ensures that users have everything they need to complete their tasks efficiently and effectively.<br><br>
The website is constantly updated and refined, with regular bug fixes and feature enhancements based on user feedback. This ongoing commitment to improvement ensures that the tool remains relevant and useful for years to come.
The website's privacy policy ensures that user data is kept secure and confidential, with strict protocols in place to protect sensitive information.
Users can access the summarization tool from any device with an internet connection, making it easy to use on the go or in a variety of work settings.
The website's customer support team is available to assist users with any questions or issues they may encounter. This responsive and knowledgeable support ensures that users always have the help they need to make the most of the tool.
The summarization tool is compatible with a wide range of document formats, including PDF, Word, and HTML. This flexibility makes it easy to work with different types of content and integrate the tool into existing workflows.
The website includes a range of pricing plans, including free and premium options. This means that users can choose the level of service that best meets their needs and budget.
The website's terms of service are clear and transparent, outlining user responsibilities and ensuring that everyone uses the tool in a fair and ethical manner.
The summarization tool uses advanced machine learning algorithms to continually improve its accuracy and effectiveness. This ensures that users receive the most accurate and representative summaries possible.
The website includes a range of customization options, allowing users to choose from different summary styles, font sizes, and other settings. This ensures that users can create summaries that meet their specific needs and preferences.
The website's summarization tool is fast and efficient, able to process large volumes of text in a matter of seconds. This makes it easy to generate summaries quickly and keep pace with demanding workloads.
The website's user interface is designed to be accessible and easy to use, with clear instructions and prompts guiding users through each step of the summarization process.
The summarization tool is designed to work seamlessly with other productivity tools and software, allowing users to integrate it into their existing workflows and processes.
The website's developers are committed to providing ongoing support and maintenance, ensuring that the summarization tool remains reliable and effective over time.
In conclusion, Our text summarizer website is an invaluable resource for anyone who needs to quickly and accurately condense large volumes of text into concise summaries. With its advanced technology, intuitive interface, and range of customization options, it is an essential tool for students, researchers, professionals, and anyone else who</p>
</div>
</div>
</div>
<!-- container 2 spell check-->
<div class="container jumbotron bg-primary-subtle" id="spellcheck-container">
<div class="row">
<h1 class="fs-1" id="spellcheck">Text Summarizer</h1>
<div class="col">
<div class="card" id="cardtext">
<div class="card-header p50">
Text Summarize
</div>
<div class="card-body">
<h5 class="card-title">How to Use ?</h5>
<p class="card-text">
<ol>
<li><b>Paste</b> Your Long Paragraph in the below TextBox</li>
<li>Click <b>Submit</b></li>
<li>Wait for <b>10</b> seconds</li>
<li>Copy the <b>Summarized Paragraph</b> below</li>
</ol>
</p>
<textarea name="summarize" placeholder="Enter Your Big Paragraph Here to Summarize it !!!" class="form-control" id="summarize" cols="30" rows="10"></textarea>
<button type="button" class="btn btn-primary" id="submit">Submit</button>
</div>
</div>
<div class="card" id="cardtext">
<div class="card-header p50">
Copy Your Summarized text Here
</div>
<div class="card-body">
<textarea name="summarize" disabled placeholder="Copy Your Summarized text Paragraph Using Below Button !!!" class="form-control" id="summarizedpara" cols="30" rows="10"></textarea>
<button type="button" class="btn btn-primary" id="copytext">Copy Text</button>
</div>
</div>
</div>
</div>
<br>
<hr>
<br>
</main>
<!-- footer -->
<footer id="contact">
<div class="container bg-primary" id="footerdiv">
<div class="row">
<div class="col d-flex" id="footer">
<img class="navimg" src="spell-check.png" alt="">
<h1 class="text-light" id="navlogotext">Text Summarizer</h1>
</div>
<div class="col">
<span id="footerspan">© 2023 - 2025 All Rigts Reserved</span>
</div>
<div class="col" id="footerlinks">
<a href="https://www.facebook.com/freeky.ajmal/" class="fa fa-facebook"></a>
<a href="https://twitter.com/freaky__ajmal" class="fa fa-twitter"></a>
<a href="#" class="fa fa-google"></a>
<a href="https://www.linkedin.com/in/mohammed-ajmal-479b311b8/" class="fa fa-linkedin"></a>
<a href="https://www.youtube.com/" class="fa fa-youtube"></a>
<a href="https://www.instagram.com/freaky__ajmal/" class="fa fa-instagram"></a>
</div>
</div>
<div class="row">
<div class="col d-flex" id="footerlinklast">
<a href="tel:9500320194" class="text-light text-decoration-none">Contact</a>
<a href="mailto:[email protected]" class="text-light text-decoration-none">Email</a>
<a href="#" class="text-light text-decoration-none">Privacy Policy</a>
</div>
</div>
</div>
</footer>
<!-- footer end -->
<script>
let submit = document.getElementById("submit");
submit.addEventListener("click",(event) => {
event.preventDefault();
let summarize = document.getElementById("summarize").value;
console.log(summarize);
const options = {
method: 'POST',
headers: {
'content-type': 'application/json',
'X-RapidAPI-Key': '5209d67708msh2b4c4487ee24df4p1a9455jsn60b60f48436e',
'X-RapidAPI-Host': 'text-analysis12.p.rapidapi.com'
},
body: JSON.stringify({
language: 'english',
summary_percent: 30,
text: summarize,
}),
};
const url = 'https://text-analysis12.p.rapidapi.com/summarize-text/api/v1.1';
let x;
fetch(url,options)
.then(response => response.json())
.then(response => {
console.log(response)
console.log(response.sentences.length);
x = response.sentences;
const responselength = response.sentences.length;
let textarea = document.getElementById("summarizedpara");
console.log(textarea);
const liArray = [];
for(let i=0;i<responselength;i++){
liArray.push(x[i]);
}
console.log(liArray);
let textareaValue = "";
for (let i = 0; i < liArray.length; i++) {
textareaValue += liArray[i] + "\n" + "\n";
}
textarea.value = textareaValue;
})
});
// Get the input element and copy button
let input = document.getElementById("summarizedpara");
let copyBtn = document.getElementById("copytext");
// Add click event listener to the copy button
copyBtn.addEventListener("click", function() {
// Select the text inside the input element
input.select();
input.setSelectionRange(0, 99999); // For mobile devices
// Copy the selected text to clipboard
document.execCommand("copy");
// Copy the selected text to clipboard
navigator.clipboard.writeText(input.value);
// Deselect the input element
input.blur();
input.style.backgroundColor = "#CFE2FF";
// Update the copy button text
copyBtn.innerHTML = "Copied !!!";
});
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"></script>
</body>
</html>