A collection of 51 small, self-contained web apps built with vanilla HTML, CSS, and JavaScript while working through the CCBP Dynamic Web Applications track.
Every app is plain front-end code — no build step, no framework, no npm install. Each one focuses
on a single JavaScript idea (event handlers, timers, arrays, JSON, localStorage, DOM creation,
form validation, fetch) and keeps the surrounding markup deliberately simple so the JS is the
interesting part.
Clone the repo and open any project's index.html in a browser:
git clone git@github.com:saipraneethpb1/Dynamic-Web-Applications.git
cd Dynamic-Web-Applications
xdg-open Tip-Calculator/index.html # macOS: open, Windows: startOr serve the whole folder and browse the directory listing:
python3 -m http.server 8000
# then visit http://localhost:8000A local server is the nicer option — localStorage behaves consistently across the projects that
use it, instead of being scoped to file://.
Each project is a folder with the same three files:
Project-Name/
├── index.html # markup + Bootstrap CDN links
├── style.css # project-specific styling
└── script.js # the behaviour
Three folders are nested groups of related exercises rather than single apps:
Todo-Application/, Forms/, and Fetch-and-Callbacks/.
| Project | What it does |
|---|---|
| Traffic-Light | Three buttons switch which signal is lit, recolouring both the light and the active button. |
| Toggle-like-and-unlike | A like button that flips state — swaps the image, icon colour, and button styling on each click. |
| Seasons-Switcher | Swaps img.src between four seasonal images, with separate small and medium assets. |
| Color-Picker | Four swatches set the container background and display the selected hex code. |
| Tabs | A three-tab layout for a travel page — shows one panel at a time by toggling a d-none class. |
| Sizing-an-Image | Increment/decrement an image's width in 5px steps, with warnings at the 100px and 300px bounds. |
| Button-Maker | Live-styles a preview button from six inputs: colours, font size and weight, padding, border radius. |
| Random-Color-Generator | Picks a random background colour from a fixed palette on every click. |
| Project | What it does |
|---|---|
| Key-code | Logs the keyCode of every key pressed in an input as a growing list. |
| Theme-switcher | Type Light or Dark and press Enter to swap the background image and heading colour; anything else alerts. |
| Bomb-Defuser | A 10-second countdown that reaches BOOM unless you type defuse and hit Enter in time. |
| Project | What it does |
|---|---|
| Tip-Calculator | Calculates tip and total from a bill amount and percentage, validating for empty fields. |
| Addition-Game | Generates two random numbers, checks the user's sum, and restarts with a fresh pair. |
| Chatbot | Appends the user's message to the chat, then a canned reply picked at random. |
| Greeting-Card | Renders a greeting card from a JSON string parsed with JSON.parse. |
| TIme-Converter | Converts hours and minutes to seconds, with a separate error message for each empty field. |
| Project | What it does |
|---|---|
| Clear-the-counter-timer | A counter ticking every second, stopped with clearInterval. |
| Custom-range-counter | Counts from a user-supplied from value up to a to value, one step per second. |
| Peace-Timer | A countdown with 20s / 30s / 40s / 1min presets; starting a new one cancels the previous. |
| Project | What it does |
|---|---|
| Find-the-Index-of-the-Numbers | Looks up a number's position in an array with findIndex. |
| Splice-Playground | An interactive Array.splice sandbox — supply start index, delete count, and an item to insert. |
| Word-cloud | Renders words at random font sizes and lets you add your own. |
| JSON-Stringify | Shows JSON.stringify output for an array, an object, and an array of objects. |
| Project | What it does |
|---|---|
| local-storage | Saves a textarea's contents and restores them on reload. |
| Remove-item-ls | Same idea, plus a default seed value and removeItem to clear the key. |
Real <form> submissions — event.preventDefault(), per-field error messages, and validation on
blur/change before the submit handler runs.
| Project | What it does |
|---|---|
| Select-your-pet | A <select> whose change event swaps the displayed pet image, looked up from an object. |
| Answer-the-question | A radio-button quiz that reports correct, wrong, or nothing selected. |
| Subscribe-to-us | Name and email fields validated on blur, each with its own Required* message. |
| Update-password | Two password fields, validated both on blur and again on submit. |
| Bookmark-Maker | Validates a site name and URL, then appends the bookmark to a list as a real link. |
| Add-user | Collects name, email, status, and gender, POSTs the user to GoREST, and surfaces the API's field errors inline. |
| Go-Rest-Console | A mini API console — pick POST or PUT, edit the URL and body, and see the status and formatted response. |
The Fetch-and-Callbacks/ group works through the four HTTP verbs against the
GoREST API; the rest consume CCBP's public APIs.
| Project | What it does |
|---|---|
| HTTP-Get-Method | Fetches the user list and shows the status code alongside the stringified body. |
| HTTP-Post-Method | Sends an editable JSON body as a POST with auth headers. |
| HTTP-Put-Method | Updates a user by id with a PUT request. |
| HTTP-Delete-Method | Deletes a user by id and reports the response status. |
| Random-Joke-Page | Fetches a random joke on click, with a spinner while the request is in flight. |
| Known-fact-about-the-number | Press Enter on a number to fetch a fact about it. |
| Wikipedia-Page | A search page that builds each result — title, link, description — from the response. |
| Countries-Search-Page | Fetches the country list once, then filters it client-side as you type. |
| Library-Management | Searches a book store API by title and renders result cards, with a "No results found" state. |
| Speed-Typing-Test | Fetches a random quote, times how long you take to retype it exactly, and resets with a new one. |
A progression from creating a single DOM element to a persisted todo list.
| Project | What it does |
|---|---|
| Checkbox-and-label | Creates a linked checkbox and label entirely from JavaScript. |
| Toggle-the-strike-through | Adds a class toggle so checking the box strikes the label through. |
| User-Profile | Builds a profile card — image, name, age — from an object. |
| Grocery-List | Renders a styled list from an array, styling applied in JS. |
| Recipe-Page | Fills in a recipe's title, image, and ingredient list from an object. |
| Mark-your-skills | A checkbox list generated from objects, each wired to its own toggle handler. |
| Your-ordered-items | An order list where each item has a Cancel button that removes its row. |
| Add-to-Cart-Page | Builds the entire page — heading, input, button, list — in JavaScript, then adds items to the cart. |
| Todos-Application | The full app: add, check off, and delete todos, saved to localStorage. |
The GoREST projects — everything in Fetch-and-Callbacks/ plus Forms/Add-user/ — send an
Authorization: Bearer YOUR_ACCESS_TOKEN header with a placeholder token. Writes (POST, PUT,
DELETE) will come back 401 until it's replaced with a real token from
gorest.co.in; the GET example works without one. The CCBP APIs
(apis.ccbp.in) need no key.
- HTML5 and CSS3
- Vanilla JavaScript — no frameworks, no bundler
- Bootstrap 4.5.2 via CDN, for layout and utility classes
- Font Awesome via CDN, in the projects that use icons
All dependencies load from a CDN, so an internet connection is needed for styling to render correctly.
Personal learning projects — free to read, run, and borrow from.