GithubHelp home page GithubHelp logo

project-week-1's Introduction

Project Week 1

Brief

This project will be a tabatha timer which will allow the user to input the time that they want. They will then set the time, start, stop or reset the time if they need to. A MVP will be done up to ensure that the basic functionality are present before doing up the additional features.

Basic functionality includes:

-Display minute, seconds, milliseconds -set time, start time, stop time, reset time

Additional features

-Increase the time using buttons -Make the whole counter function as a whole

overview of plan for 3 areas:

HTML: Time panel: Div to house time panel Div for time panel Div for displaying and input time for minute(element might change) Label for display ? Div for displaying input time for seconds(element might change) Div for displaying input time for milliseconds(element might change)

Button panel: Div to house the buttons Button for start time Button for stop time Button for set time Button for reset time

CSS: Flex to house the panels ? then alter the padding and margin after Time panel: Color for div for housing the time panel, border maybe, positioning of the element Color for div for time panel, border maybe, positioning of the element Color for div for the display of minute time(element might change) , positioning of the element Color for div for the display of seconds time(element might change) , positioning of the element Color for div for the display of milliseconds time(element might change) , positioning of the element

Color for div for housing the button panel, border maybe, positioning of the element Color for start time button, positioning of the element Color for stop time button, positioning of the element Color for set time button, positioning of the element Color for reset time button, positioning of the element

JS: Calculate and translate the time to be displayed in minute Calculate and translate the time to be displayed in seconds Calculate and translate the time to be displayed in milliseconds Might need an object to house the calculation and translation setInterval(,1000)๏ƒ  for seconds and minutes setInterval(,10)-๏ƒ  for milliseconds, show only first 2 digits. Time need to check https://www.py4u.net/discuss/276938 http://sstut.com/javascript/convert-hours-minutes-seconds-to-milliseconds.php if use text area to input the text, need to do validation check for correct input from user

addeventListener to start time button to start the countdown addeventListener to stop time button to pause the countdown addeventListener to set time button to fix the total time addeventListener to reset time button to reset the time to 0

###Citations for project sound for start and rest and transition -code using audio object -using audio element https://stackoverflow.com/questions/9419263/how-to-play-audio https://www.w3schools.com/jsref/met_audio_play.asp https://www.w3schools.com/jsref/dom_obj_audio.asp

-Having 1 audio object and change the src to change different audio https://stackoverflow.com/questions/35299053/play-one-html-audio-file-at-a-time-with-javascript-jquery/35299235

button image: -puttting the image tag inside the button tag https://stackoverflow.com/questions/8683528/embed-image-in-a-button-element

-image cant change and hover seems to have an issue -seems to solve with mouseover and mouseout https://www.w3schools.com/jsref/dom_obj_event.asp

-Using set interval for timing https://www.py4u.net/discuss/276938 http://sstut.com/javascript/convert-hours-minutes-seconds-to-milliseconds.php

project-week-1's People

Contributors

thenhao avatar

Watchers

 avatar

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.