Giter Site home page Giter Site logo

syotimer's Introduction

jQuery SyoTimer Plugin

jQuery plugin of countdown on html-page

Requirements

jQuery SyoTimer Plugin has been tested with jQuery 1.7+ on all major browsers:

  • Firefox 2+ (Win, Mac, Linux);
  • IE8+ (Win);
  • Chrome 6+ (Win, Mac, Linux, Android, iPhone);
  • Safari 3.2+ (Win, Mac, iPhone);
  • Opera 8+ (Win, Mac, Linux, Android, iPhone).

Features

  • Callback after the end of the countdown timer with the possibility of changing the structure of the timer
  • Periodic counting with the specified period
  • The effect of fading in the countdown
  • The correct declension of nouns next to numeral numerals
  • Custom formatting and styling timer

Options

Option Description Type of Value Default Value Available Values
year year of date, which should count down timer integer 2014 >1979
month month of date, which should count down timer integer 7 1-12
day day of date, which should count down timer integer 31 1-31
hour hour of date, which should count down timer integer 0 0-23
minute minute of date, which should count down timer integer 0 0-59
second second of date, which should count down timer integer 0 0-59
dayVisible true - show the number of days. false - the number of days is not shown in the timer and the number of hours may exceed 23 boolean true
dubleNumbers true - show hours, minutes and seconds with leading zeros (2 hours 5 minutes 4 seconds = 02:05:04) boolean true
effectType The effect of changing the value of seconds string 'none' 'none', 'opacity'
lang localization signatures timer (days, hours, minutes, seconds) string 'eng' 'eng', 'rus'
periodic true - the timer is periodic. If the date until which counts the timer is reached, the next value date which will count down the timer is incremented by the value periodInterval boolean false
periodInterval the period of the timer in periodUnit (if periodic is set to true) integer 7 >0
periodUnit the unit of measurement period timer string 'd' 'd', 'h', 'm', 's'

HTML Structure of SyoTimer

<div class="timer">
    <div class="timer-head-block"></div>
    <div class="timer-body-block">
        <div class="table-cell day">
            <div class="tab-val">1</div>
            <div class="tab-metr">day</div>
        </div>
        <div class="table-cell hour">
            <div class="tab-val">1</div>
            <div class="tab-metr">hour</div>
        </div>
        <div class="table-cell minute">
            <div class="tab-val">1</div>
            <div class="tab-metr">minute</div>
        </div>
        <div class="table-cell second">
            <div class="tab-val">1</div>
            <div class="tab-metr">second</div>
        </div>
    </div>
    <div class="timer-foot-block"></div>
</div>

Version History

  • 1.0.1 2015-02-24
    • add option for change effect of counting
    • add documentation
    • add examples
  • 1.0.0 2014-12-10
    • first use timer on real web-site

TODO

  • feature: countdown to date equal now plus necessary interval

syotimer's People

Contributors

mrfratello avatar

Watchers

James Cloos 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.