Skip to content

About

A clean and minimal Bootstrap-based web app that counts characters in real time (currently button-triggered) with a 280-character limit — inspired by social media post constraints.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🚀 Live Character Counter (280 Limit)

A simple and clean web-based character counter built using HTML, CSS, Bootstrap, and JavaScript.

This project allows users to enter text and check how many characters they have used out of a maximum limit of 280 characters, inspired by social media post constraints.


📌 Features

  • Clean and centered UI layout
  • Built with Bootstrap 5
  • 280 character limit logic
  • Dynamic character calculation
  • Simple and readable JavaScript
  • Beginner-friendly structure

🛠️ Tech Stack

  • HTML5
  • CSS3
  • Bootstrap 5
  • Vanilla JavaScript

⚙️ How It Works

  1. User types text into the textarea.
  2. When the Check button is clicked:
    • JavaScript calculates the length of the input.
    • Remaining characters are updated dynamically.
  3. The maximum allowed characters is set to 280.

Core logic:

var message_length = document.getElementById("message").value.length;
const max = 280;
remaining.innerHTML = max - message_length;

📂 Project Structure

Live Character Counter.html
Live Character Counter.css
Live Character Counter.js
README.md

🎯 Current Version

v1.0 — Button-triggered character counter


🚀 Planned Improvements

This project will be enhanced with:

1️⃣ Fully Responsive Design

  • Better mobile layout
  • Improved spacing on small screens
  • Adaptive textarea resizing

2️⃣ Automatic Real-Time Counting (Button-Free)

  • Remove manual "Check" button
  • Convert to oninput event listener
  • Live character updates while typing

3️⃣ Animations & Visual Feedback

  • Smooth counter transitions
  • Color change near character limit
  • Warning effect when limit is exceeded
  • Subtle UI micro-interactions

4️⃣ Advanced Enhancements (Future Scope)

  • Word count toggle
  • Character progress bar
  • Custom character limit selection

🧠 Learning Outcomes

Through this project, I practiced:

  • DOM manipulation
  • Event handling
  • Dynamic UI updates
  • Clean layout structuring with Flexbox & Bootstrap
  • Writing readable and structured frontend code

🔧 How to Run

  1. Download or clone the repository
  2. Open Live Character Counter.html in your browser
  3. Start typing and click Check

📈 Purpose

This project is part of my frontend development learning journey.
It represents my foundation in building interactive web interfaces and will continue evolving with more advanced features.


⭐ More improvements coming soon.

About

A clean and minimal Bootstrap-based web app that counts characters in real time (currently button-triggered) with a 280-character limit — inspired by social media post constraints.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages