GithubHelp home page GithubHelp logo

stacyholtz6 / fliptimer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewjtait/fliptimer

0.0 1.0 0.0 11.3 MB

A jQuery plugin that will tell the time, count-down or count-up from a specified date.

Home Page: http://andrewjtait.github.io/flipTimer/

CSS 25.15% JavaScript 72.10% HTML 2.64% Shell 0.11%

fliptimer's Introduction

flipTimer

A jQuery plugin that will count-down to or count-up from a specified date.

Usage

Link to the required files:

<link rel="stylesheet" href="css/flipTimer.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="js/jquery.flipTimer.js"></script>

Initialise flipTimer (if no date is set, it will tell the time for today):

<script>
  $(document).ready(function() {
    $('.example').flipTimer({ direction: 'down', date: 'June 17, 2013 23:15:00', callback: function() { alert('times up!'); } });
  });
</script>

In the body of your HTML page, choose which digits you want to use:

<div class="example">
  <div class="days"></div>
  <div class="hours"></div>
  <div class="minutes"></div>
  <div class="seconds"></div>
</div>

Tests

To run the test suite, run:

npm install
npm test

This will run the tests and continue to watch for any file changes.

Demo

There is a demo of flipTimer to view.

License

Copyright (c) 2013 Andrew James Tait
Licensed under the MIT, GPL licenses.

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.