CSS Project 1
CSS Project 1
1) CO-a Create interactive web pages using program flow control structure.
2) CO-b Implement arrays and functions in JavaScript
3) CO-c Create event based web forms using Java script
(A) Process and Product Assesssment (Convert above total marks out of 6 marks)
8 Presentation
9 Viva
MICRO PROJECT
Academic year 2023-24
TITLE OF PROJECT
Word Counter
CERTIFICATE
This is to certify Tope Akshay Ravindra of 5th Semester of Diploma in Computer
Technology of Institute, SNJB's Shri Hiralal Hastimal (Jain Brothers, Jalgaon)
Polytechnic, Chandwad) (Code: 0079) has completed the Micro-Project satisfactorily in Subject
Client Side Scripting Language (22519) for the academic year 2023- 2024 as prescribed in the
curriculum.
Place: CHANDWAD
SR_NO
CONTENT PAGE NO.
.
Part A
Part B
1. Brief Introduction
A word counter is a tool or program designed to count the number of words, characters,
sentences, and sometimes even paragraphs in a given text. It is commonly used in
various contexts, such as writing, editing, and academic research, to track and analyze
the length of written content. Word counters are particularly useful in ensuring that
texts meet specific word or character limits, such as those required in academic papers,
essays, articles, social media posts, or other types of written content. They help writers
and content creators to maintain concise and clear communication, adhere to specific
guidelines, and avoid exceeding or falling short of required word counts. Various word
counter tools are available online, ranging from simple web-based interfaces to more
advanced software with additional features for analyzing text structure and readability.
3.Action Plan:
1
4.Resources Required-
2
PART B-Plan
Title of micro-project: Word Counter.
1. Brief Description:
The Many times word count needs to be done between different projects. In all these cases, this type of
JavaScript Word Counter will help you completely. In this tutorial, you will leam how to create Word
Counter JavaScript. A lot of times we show character limits or word limits in different input boxes. For
example, in the case of Twitter, there is a character limit. Although I have shared a tutorial before
where I have shown how to create a character limit input box. This tutorial will show you how to
count words and characters. That means you will see both a project word and a character.
3
4.Actual Methodology/Procedure Followed:
Source Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<!-- Google Font -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"
rel="stylesheet"
/>
<!-- Stylesheet -->
<style media="screen">
*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #8bc1f7;
}
.wrapper {
position: absolute;
width: 75vmin;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
}
.container {
background-color: #ffffff;
padding: 30px 20px 20px 20px;
border-radius: 0px 0px 8px 8px;
box-shadow: 0 30px 50px rgba(30, 21, 49, 0.3);
}
.count {
background-color: #0547ad;
width: 100%;
4
padding: 7px;
position: relative;
display: flex;
font-family: sans-serif;
justify-content: space-around;
text-align: center;
border-radius: 5px 5px 0px 0px;
}
.count p {
color: #ceced7;
}
.count h5 {
color: #ffffff;
font-size: 22px;
}
textarea {
width: 100%;
border: none;
resize: none;
outline: none;
font-size: 16px;
line-height: 28px;
padding: 10px;
max-height: 280px;
color: #0e101a;
box-shadow: 0 20px 65px rgba(61, 139, 190, 0.33);
}
</style>
</head>
<body>
<div class="wrapper">
<div class="count">
<div>
<h5 id="word-count">0</h5>
<p>Words</p>
</div>
<div>
5
<h5 id="charac-count">0</h5>
<p>Characters</p>
</div>
</div>
<div class="container">
<textarea
id="input-textarea"
rows="12"
placeholder="Start Typing here..."
></textarea>
</div>
</div>
<!-- Script -->
<script type="text/javascript">
let inputTextArea = document.getElementById("input-textarea");
let characCount = document.getElementById("charac-count");
let wordCount = document.getElementById("word-count");
inputTextArea.addEventListener("input", () => {
characCount.textContent = inputTextArea.value.length;
let txt = inputTextArea.value.trim();
wordCount.textContent = txt.split(/\s+/).filter((item) => item).length;
});
</script>
</body>
</html>
6
5.Output of the Micro-Project:
Step1:
7
Step2:
8
6.Actual Resources Used:
7. Skill Developed:
1. Define the Project Scope: Start by clearly defining the scope of your word counter
project. What should it do? Consider the features you want to include, such as
counting words in a text, displaying the total word count, or providing additional
statistics like character count or average word length.
2. Choose a Programming Language: Select a programming language that you are
comfortable with or want to learn. Common choices include Python, JavaScript, or
Java.
3. Set Up Your Development Environment: Install the necessary tools and libraries to
support your chosen programming language. For example, you might need a code
editor, such as Visual Studio Code or PyCharm, and any specific libraries or
frameworks for your chosen language
4. Implement the Word Count Logic: Write code to count words within a given text.
You can approach this task in several ways, but here's a simple example in Python:
5. Create a User Interface: Depending on your project's scope, you may want to build a
graphical user interface (GUI) or a command-line interface (CLI). For a GUI, you
can use libraries like Tkinter (Python) or React (JavaScript). For a CLI, you can use
libraries like argparse (Python) or Commander.js (JavaScript).
9
8. Applications of Microproject:
A word counter is a simple yet versatile tool with various practical applications in
different domains. Here are some common applications of a word counter:
10