Giter Site home page Giter Site logo

lesson-06-webapibasics's Introduction

Lesson-06-WebAPIBasics

Please see the slide.

Assignment

Please write a simple clock application, which has the following features.

  1. (30%) Display current time in YYYY/MM/dd hh:mm:ss format (e.g.: 2015/11/02 19:02:29), and update it every second.
    1. (+5%) Display week.
    2. (+5%) Display timezone.
  2. (30%) Stopwatch that displays in mm:ss.cc (e.g.: 00:00.00). Users can click buttons to start, pause and reset the stopwatch.
    • start: Starts the timer, increases the timer every 1/100 second.
    • pause: Pauses the timer, the timer can be resumed by start.
    • reset: Resets the timer to zero.
  3. (40%) Users can schedule an alarm that will trigger in future (at most 59min 59sec).
    • NOTE: Your application should be able to notify users even if they closed the application.

Turn In

  1. Fork this repository.
  2. Modify files in simple_clock directory.
  3. Create a pull request that have your student ID in the title.

Deadline

Please create the pull request before the end of 2015/11/13 (UTC+8).

If you turn in after 2015/11/13 and before the end of 2015/11/20 (UTC+8), your score will multiply with 80%.

Hints

  1. You can use Date to get the desired time.
  2. You can use setInterval to periodically do something.
  3. You can use Alarm API to schedule messages to system.
  4. You can use Notifications API to send system-level notifications.

Examples

Some examples were borrowed from somewhere.

Simple Telnet Client

Cloned from https://github.com/soapdog/firefoxos-sample-app-telnet-client .

Bouncing Ball

Copied from https://developer.mozilla.org/en-US/docs/Web/API/Detecting_device_orientation .

Todo List

Cloned from https://github.com/mdn/to-do-notifications/tree/gh-pages .

Emogotchi

Cloned from https://github.com/mdn/emogotchi .

lesson-06-webapibasics's People

Contributors

legnaleurc avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.