GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - javascript-space/year-in-progress: A simple progress bar for year which changes dynamically

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

62 Commits
62 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
js
js
 
 
readme_screenshots
readme_screenshots
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.js
app.js
 
 
contributing.md
contributing.md
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
vercel.json
vercel.json
 
 

Repository files navigation

Year In Progress

Join Our Discord Subscribe on YouTube Subscribe to Newsletter

A simple yet effective progress bar that visually represents the percentage of the year (or any custom date range) that has passed. This dynamic progress bar updates in real-time and supports both standard and dark themes, as well as flexible date ranges.

Features

  • Displays the progress of the current year by default.
  • Supports custom date ranges (e.g., fiscal years, project timelines).
  • Two themes available: light and dark.

Getting Started

Run the project locally

Prerequesites

Ensure you have the following installed:

  • Node.js

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/year-progress-api.git
    cd year-progress-api
  2. Install dependencies
    npm install
  3. Start the server
    node app.js
  4. Open your browser and navigate to:
    http://localhost:3000/year-progress

Gitpod

In the cloud-free development environment where you can directly start coding.

You can use Gitpod in the cloud Gitpod Ready-to-Code

Usage

Default Year Progress

By default, the project will show the progress of the current year (from January 1st to December 31st)

http://localhost:3000/year-progress

Screenshot: year-in-progress-default

Custom Date Ranges

You can pass custom startDate and endDate query parameters to track the progress of a specific date range, such as fiscal years or project timelines.

You have to specify the exact startDate and endDate in the YYYY-MM-DD format.

Example 1: Custom Fiscal Year (April 1, 2024 to March 31, 2025)

http://localhost:3000/year-progress?startDate=2024-04-01&endDate=2025-03-31

Screenshot: year-in-progress-fiscal-year

Example 2: Progress of a Single month (October 2024, screenshoted on October 2)

http://localhost:3000/year-progress?startDate=2024-10-01&endDate=2024-10-31

Screenshot: year-in-progress-one-month

Query parameters

startDate (optional): The start date in YYYY-MM-DD.
endDate (optional): The end date in YYYY-MM-DD.
theme (optional): Can be dark or standard (default). It helps changing the theme of the progress bar.

Where to modify the URL and see live changes

To see the changes of the progress bar in real-time, you can change the date range in the URL in the index file and refresh the page.

Change the lines below:

<img id="progress-img" src="https://year-in-progress.vercel.app/year-progress" alt="Year Progress" style="width: 450px; height: 75px;">
document.getElementById('progress-img').src = `https://year-in-progress.vercel.app/year-progress?time=${Date.now()}&startDate=2024-04-01&endDate=2025-03-31&theme=${theme}`

To:

<img id="progress-img" src="http://localhost:3000/year-progress?startDate=2024-04-01&endDate=2025-03-31" alt="Year Progress" style="width: 450px; height: 75px;">
document.getElementById('progress-img').src = `http://localhost:3000/year-progress?time=${Date.now()}&startDate=2024-04-01&endDate=2025-03-31&theme=${theme}`

You can change the date range and theme as per your requirement.


Feel free to update the README.md or raise issues if any to enhance the project

Contributors 💖

Thanks to all the amazing contributors who have helped make a thriving community! 🌟

About

A simple progress bar for year which changes dynamically

year-in-progress.vercel.app/

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.