Skip to content

Commit bf8baf0

Browse files
committed
meta added
1 parent 3ff7d61 commit bf8baf0

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

word-counter/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22
<html lang="en">
33

44
<head>
5+
<!-- Meta Description -->
6+
<meta name="description"
7+
content="Enhance your productivity with our JavaScript Word and Character Counter tool. Accurately count words and characters in real-time, perfect for writers, editors, and students. Simplify text analysis with instant results and an intuitive interface. Ideal for ensuring word limits and optimizing content length across various platforms." />
8+
9+
<!-- Meta Keywords -->
10+
<meta name="keywords"
11+
content="word counter, character counter, JavaScript tool, text analysis, word count tool, character count, writing tool, text editor, real-time word count, productivity tool, content length optimization" />
12+
13+
<!-- Open Graph Tags for Social Media -->
14+
<meta property="og:title" content="JavaScript Word and Character Counter" />
15+
<meta property="og:description"
16+
content="Accurately count words and characters in real-time with our intuitive JavaScript tool, perfect for writers and editors." />
17+
<meta property="og:type" content="website" />
18+
<meta property="og:url" content="https://coderespite.com/projects/js-projects/word-counter/" />
19+
<meta property="og:image" content="https://coderespite.com/image/js-projects/word-counter.png" />
20+
21+
<!-- Twitter Card Tags -->
22+
<meta name="twitter:card" content="summary_large_image" />
23+
<meta name="twitter:title" content="JavaScript Word and Character Counter" />
24+
<meta name="twitter:description"
25+
content="Effortlessly count words and characters with our JavaScript tool. Ideal for writers, students, and editors to streamline text analysis." />
26+
<meta name="twitter:image" content="https://coderespite.com/image/js-projects/word-counter.png" />
27+
528
<meta charset="UTF-8">
629
<link rel="stylesheet" href="styles.css">
730
<meta name="viewport" content="width=device-width, initial-scale=1.0">

word-counter/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const count = () => {
1414
return element !== "";
1515
});
1616

17-
console.log(filtered);
17+
// console.log(filtered);
1818

1919
wordcount.innerText = filtered.length;
2020
};

word-counter/styles.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@
55
}
66

77
body {
8-
height: 100vh;
98
background-color: black;
109
color: white;
1110
display: flex;
1211
justify-content: center;
13-
align-items: center;
12+
margin-top: 5rem;
1413
}
1514

1615
.main {
17-
background-color: whitesmoke;
16+
background-color: rgb(0, 10, 146);
1817
border-radius: 10px;
19-
box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.7);
18+
box-shadow: 0px 0px 10px rgba(223, 160, 160, 0.7);
2019
min-width: 400px;
2120
width: 650px;
2221
max-width: 50%;
@@ -34,15 +33,26 @@ textarea {
3433
border-radius: 10px;
3534
padding: 0.5rem;
3635
font-size: 1rem;
36+
text-justify: distribute;
3737
}
3838

3939
h1 {
4040
font-size: 1.5rem;
4141
text-align: center;
42+
color: blueviolet;
4243
}
4344

4445
.count {
4546
display: flex;
4647
justify-content: space-around;
4748
font-size: 1.2rem;
49+
}
50+
51+
span {
52+
color: white;
53+
}
54+
55+
h5 {
56+
color: blueviolet;
57+
4858
}

0 commit comments

Comments
 (0)