b10qu34d0
White Hat
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
400 XP
This simple project is entitled Live Word Counter Application. It is a web-based application that counts the number of words, characters, and paragraphs of text content. This project was mainly developed using Pure JavaScript. It has a simple, pleasant, and mobile-responsive user interface using a Custom Stylesheet script. This project easy-to-use and automatically counts the text content words, characters, and paragraphs without reloading or refreshing the page.
How does the Live Word Counter Application work?
The Live Word Counter Application is a straightforward application that is counting the entered text content words, characters, and paragraphs as the primary purpose. The application allows the user to enter the text content they wanted to count and the count data will be updated automatically while the user inputs to the provided text field. This simple project is mobile responsive which resizes and updates the page payout when the window has changed or in smaller screen devices such as smartphones.
Features
This Live Word Counter contains the following features:
Technologies
This simple project was developed using the following technologies:
How does the project count the text content?
The entered text content words, characters, and paragraphs are being counted using the built-in methods, API, and functions. Check out the script below.
Snapshots
Here are some Snapshots of the Live Word Counter Application:
Page Layout (Big Screens)
Page Layout (Mobile or smaller screen)
Text Content Panel
Word Count Blocks Panel
The Live Word Counter Application's complete source code is available on this website and it is free to download. Feel free to download and modify the source code the way your desire to meet your own requirements. This project was mainly developed for educational purposes only.
How to Run?
DEMO VIDEO
That's it! I hope this Live Word Counter Application using Pure JavaScript Source Code will help you with what you are looking for and will be useful for your current and future web application projects.
Explore more on this website for more Tutorials and Free Source Codes.
Enjoy =)
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Download
How does the Live Word Counter Application work?
The Live Word Counter Application is a straightforward application that is counting the entered text content words, characters, and paragraphs as the primary purpose. The application allows the user to enter the text content they wanted to count and the count data will be updated automatically while the user inputs to the provided text field. This simple project is mobile responsive which resizes and updates the page payout when the window has changed or in smaller screen devices such as smartphones.
Features
This Live Word Counter contains the following features:
- Counts the number of words
- Counts the number of Characters
- Counts the number of paragraphs
- Live Updating the Count Panel or text block
Technologies
This simple project was developed using the following technologies:
- VS Code Editor
- HTML
- CSS
- JavaScript
- Google Fonts
How does the project count the text content?
The entered text content words, characters, and paragraphs are being counted using the built-in methods, API, and functions. Check out the script below.
- //Text Content Field
- const
textField =
document.getElementById
(
'contentField'
)
- //Total Words Count Text Block
- const
wordsCountField =
document.getElementById
(
'words_count'
)
- //Total Characters Count Text Block
- const
charactersCountField =
document.getElementById
(
'characters_count'
)
- //Total Paragraphs Count Text Block
- const
paragraphsCountField =
document.getElementById
(
'paragraphs_count'
)
- textField.addEventListener
(
'input'
,
(
)
=>
{
- var
_content =
textField.value
- if
(
_content ==
''
)
{
- var
words =
0
- var
chars =
0
- var
paragraphs =
0
- }
else
{
- var
words =
_content.split
(
/\s/
)
.length
- var
chars =
(
(
_content)
.replace
(
/\s/gi
,
''
)
)
.split
(
''
)
.length
- var
paragraphs =
0
- var
paragraphs_split =
_content.split
(
/\n/
)
- paragraphs_split.forEach
(
par =>
{
- if
(
par.trim
(
)
!=
""
)
{
- paragraphs++;
- }
- }
)
- }
- wordsCountField.innerText
=
words.toLocaleString
(
'en-US'
)
- charactersCountField.innerText
=
chars.toLocaleString
(
'en-US'
)
- paragraphsCountField.innerText
=
paragraphs.toLocaleString
(
'en-US'
)
- }
)
Snapshots
Here are some Snapshots of the Live Word Counter Application:
Page Layout (Big Screens)
Page Layout (Mobile or smaller screen)
Text Content Panel
Word Count Blocks Panel
The Live Word Counter Application's complete source code is available on this website and it is free to download. Feel free to download and modify the source code the way your desire to meet your own requirements. This project was mainly developed for educational purposes only.
How to Run?
- Download the provided source code zip file. (download button is located below)
- Extract the downloaded source code zip file.
- Locate the index.html file in the extracted source code directory.
- Browse the index file with your preferred browser.
DEMO VIDEO
That's it! I hope this Live Word Counter Application using Pure JavaScript Source Code will help you with what you are looking for and will be useful for your current and future web application projects.
Explore more on this website for more Tutorials and Free Source Codes.
Enjoy =)
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Download
You must upgrade your account or reply in the thread to view hidden text.