-
Notifications
You must be signed in to change notification settings - Fork 1
/
wordcounter.html
211 lines (190 loc) · 10.6 KB
/
wordcounter.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
<!DOCTYPE html>
<html>
<head>
<title>Word Counter</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://www.seotoolscheck.net/theme/simpleX/css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/wordcounter.css">
<style>
* {
scrollbar-width: auto;
scrollbar-color: #e37575 #ffffff;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 16px;
}
*::-webkit-scrollbar-track {
background: #ffffff;
}
*::-webkit-scrollbar-thumb {
background-color: #e37575;
border-radius: 10px;
border: 3px solid #ffffff;
}
</style>
</head>
<body>
<header class="header">
<a href="home.php" class=""><img src="images/logo.png" width="200px" height="70px"></a>
<nav class="navbar">
<a href="home.php">Home</a>
<a href="home.php#services">Services</a>
<a href="about.html">About</a>
<a href="review.html">Review</a>
<a href="contact.html">Contact</a>
</nav>
<div id="menu-btn" class="fas fa-bars"></div>
</header>
<div class="container main-container" style="margin-top: 130px;">
<div class="box">
<header>
<h2 style="font-size: 3rem; font-weight: 600;color: #e8786e;">WORD COUNTER</h2>
</header>
<form>
<textarea rows="10" cols="100" class="form-control" placeholder="Enter text here..." oninput="myFunction()"></textarea>
</form>
<div class="container" style="margin-bottom:10px;">
<div class="row">
<div class="col-sm-6">
<div class="card" style="width: 100%; margin-top: 20px;">
<div class="card-body">
<h5 class="card-text">CHARACTERS : <span id="characterCount">0</span></h5>
</div>
<div class="card-footer">Characters(with spaces)</div>
</div>
</div>
<div class="col-sm-6">
<div class="card" style="width: 100%; margin-top: 20px;">
<div class="card-body">
<h5 class="card-text">WORDS : <span id="wordCount">0</span></h5>
</div>
<div class="card-footer">words</div>
</div>
</div>
</div><br>
<div class="row">
<div class="col-sm-6">
<div class="card" style="width: 100%;">
<div class="card-body">
<h5 class="card-text">CHARACTERS : <span id="noSpaceCharCount">0</span></h5>
</div>
<div class="card-footer">Characters(without spaces)</div>
</div>
</div>
<div class="col-sm-6">
<div class="card" style="width: 100%;">
<div class="card-body">
<h5 class="card-text">SENTENCES : <span id="sentencesCount">0</span></h5>
</div>
<div class="card-footer">sentences</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="box-container-main">
<div class="xd_top_box mt-3">
<h2 style="font-size: 3rem; font-weight: 600;color: #e8786e;"> About Word Counter </h2>
<article style="font-size: 16px; text-align: justify;">
Website Word Count Tool That Helps You Find And Count Characters In Your Written Content. Get Accurate Results And Know The Length And Extent Of Your Content. This Free Text Counter Isn't Just A Word Or Phrase Display Tool, The Letters Are What Makes Your Content Attractive. He Is An Advanced Text Content Analyst. As You Can See In The Section "How To Count My Words Using A SEO Tools Check" Section Below, This Means That You Can Use Our Tools To Help You With Your Content Related Projects. We Support Professional Online Writers, Entrepreneurs, Students And Teachers. Or Simply A Social Media Explorer
</article>
<br>
<h2 style="font-size: 2rem; font-weight: 600; color: #e8786e;">
How word count tool works?</h2>
<article style="font-size: 16px; text-align: justify;">Our Free Word Count Tool Has A Very Simple And Easy Interface. It's Sophisticated Enough To Get Great Results, But Very Easy To Use. Just Paste The Text Into The Text Box That Appears. The Device Will Then Automatically Search And Display The Results Immediately.
</article>
<br>
<h2 style="font-size: 2rem; font-weight: 600; color: #e8786e;">
Purpose of Word Counter Tool</h2>
<article style="font-size: 16px; text-align: justify;">Whether You're An Incumbent Writer Or Internet Hacker, We're All In The Era Of Word Counting, From Social Media Personality Restrictions To Long Document Requests When Using Words In A Corporate Environment. Live . Whether You Know Or Not, Twitter Was Limited To 140 Characters, But Has Since Increased To 280 Characters. You Cannot Post More Than 63,206 Characters On Facebook Or Comment More Than 8,000 Characters. Think Of Your Favorite 30 Instagram Hashtags. The 2,200 Character Limit For Instagram Subtitles Has Been Reduced To 125 Characters. In Fact, When Your Blog Post Is First Published On Google, I've Been Told That 1,800 Words Can Remain. The Era Of Character Restrictions Is With Us! You Should Always Keep An Eye On It To Make Sure The Content Is On The Relevant Operating System. Accidentally Accumulating Or Increasing Or Decreasing The Number Of Words, Or Encountering Certain Situations Or Text Counters Will Not Help You Calculate Social Accumulation. Use The Word Calculator To Average. If You're Not Sure Why You Use The Online Word Counter Tool, Try The Content Character Counter Manually First. This Exercise Is Very Difficult, But It Also Becomes 1 If You Want To Use The Tool Stuffy And Easy And Want To Waste Valuable Time Calculating Long Documents Before Going Into Line 7. Ask For Help Like Us. Online Search Tool & Word Counter Find Word Counts With A Seo Tools Check. This Is A Smart Word Count Calculator That Works Right Out Of The Box.
</article>
</div>
</div>
<!--footer section start here-->
<section class="footer">
<div class="box-container">
<div class="box">
<h3>Our Investment Partners </h3>
<a href="https://fearlessjournalism.com/"> <i class="fas fa-arrow-left"></i>Fearless Jouranlism </a>
<a href="https://Karoblogging.in"> <i class="fas fa-arrow-left"></i>Karo Blogging</a>
<a href="https://sportsinspect.live"> <i class="fas fa-arrow-left"></i>Sports Inspect</a>
</div>
<div class="box">
<h3>quick links</h3>
<a href="home.php"> <i class="fas fa-arrow-right"></i>home</a>
<a href="home.php#services"> <i class="fas fa-arrow-right"></i>services</a>
<a href="about.html"> <i class="fas fa-arrow-right"></i>about</a>
<a href="review.html"> <i class="fas fa-arrow-right"></i>review</a>
<a href="contact.html"> <i class="fas fa-arrow-right"></i>contact</a>
</div>
<div class="box">
<h3 style="text-align: center; margin-left: 85px;">our services</h3>
<a href="rank.php"> <i class="fas fa-check"></i>Alexa Rank checker</a>
<a href="wordcounter.html"> <i class="fas fa-check"></i>Word Counter</a>
<a href="audit_tool.php"> <i class="fas fa-check"></i>Robot.txt generator</a>
<a href="domainage.html"> <i class="fas fa-check"></i>Domain age checker</a>
</div>
<div class="box ">
<br>
<br><br><br>
<a href="amazon.html"> <i class="fas fa-check"></i>Amazon Affiliate Link</a>
<a href="password.html"> <i class="fas fa-check"></i>Password Checker</a>
<a href="article.php"> <i class="fas fa-check"></i>Article Rewriter</a>
<a href="qrcode.html"> <i class="fas fa-check"></i>QR code generator</a>
</div>
<div class="box">
<h3>follow us</h3>
<a href="#">
<i class="fab fa-facebook-f"></i>facebook</a
>
<a href="#">
<i class="fab fa-twitter"></i>Twitter</a
>
<a href="#/">
<i class="fab fa-instagram"></i>instagram</a
>
<a href="#">
<i class="fab fa-github"></i>github</a
>
</div>
</div>
<div class="credit">
created by <span>Seodaddy Team</span> | © all rights reserved
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
function myFunction() {
var input=document.querySelectorAll('textarea')[0];
console.log(input.value.length);
if(input.value.length == 0)
{
document.getElementById("characterCount").textContent = 0;
document.getElementById("wordCount").textContent = 0;
document.getElementById("noSpaceCharCount").textContent = 0;
document.getElementById("sentencesCount").textContent = 0;
}
else
{
var input=document.querySelectorAll('textarea')[0];
input.addEventListener('keyup', function(e) {
words = input.value.match(/\b[-?(\w+)?]+\b/gi);
sentences = input.value.split(/[.|!|?]+/g);
myString = input.value.replace(/\s/g, "");
document.getElementById("characterCount").textContent = input.value.length;
document.getElementById("wordCount").textContent = words.length;
document.getElementById("noSpaceCharCount").textContent = myString.length;
document.getElementById("sentencesCount").textContent = sentences.length-1;
});
}
}
</script>
</body>
</html>