Code Monkey home page Code Monkey logo

workbreak-timer's Introduction

WorkBreak Timer

Description: Improve productivity, Stay focused, and get things done using WorkBreak Timer.

A Chrome extension using JavaScript that enables you to set timers for Pomodoro-like cycles of work/break sessions.

Features

  • Give your Work/Break session a unique name.
  • Specify the duration of both sessions "25/5 by default".
  • Pause, resume and reset when needed.
  • See the log of completed sessions and their respective durations.

Functionality

WorkBreak Timer is a browser-based extension that uses chrome API to listen for clicks on the extension icon and create a popup window containing the timer.

JavaScript, HTML, and CSS are used to build this extension.

ProgressBar.js is used to create a circle SVG path that displays current progress.

How it works

When daunted by a huge task it's advised that you divide it into small tasks and address them one by one taking small breaks in between and every 4 small breaks you can take a longer break.

After launching the extension by clicking on its icon you can:

  • Decide on what task you're going to tackle.

  • Set work and break timers

  • Work on your task until the timer goes off

  • now it's time for a small break.

  • Repeat

Folder Structure

|   background.js  
|   ding.mp3 
|   icon.png    
|   manifest.json   
|   package-lock.json   
|   package.json    
|   popup.html  
|   README.md   
|   script.js   
|   styles.css  
|       
\---node_modules    

Design

It's mainly written in JavaScript, with a simple structure in HTML and a few CSS tweaks in appearance to give it a modern yet elegant look.

/background.js: contains the chrome.action.onClicked function which is responsible for creating and displaying the popup window.

/script.js: holds the content and core functionality of the extension. It contains declarations, event listeners, and functions.

/popup.html: the skeleton of the extension:

Constructed by:

  • a < div > that holds the timer and progress bar.
  • inputs for task label and controller buttons.
  • an unordered list containing session details updated by /script.js.

Skills acquired & Topics researched

  • Time management "No Pun Intended"
  • Better understanding of functional programming in JavaScript.
  • JSON.
  • Packages & npm

References

This Project is submitted as my final project for CS50โ€™s Introduction to Computer Science Course.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.