Giter VIP home page Giter VIP logo

flipcountdown's Introduction

flipcountdown's People

Contributors

nolsherry avatar petah avatar xdan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flipcountdown's Issues

time don't show correctly with version 3.0.5

hello,
with the new version of flip countdown my code that worked with 3.0.4 does not return me the correct time instead of 11:00:00 a.m. 11:00:00 p.m. displays.
Zeros are not displayed but instead there ":"
In my code I call the display xs only, nothing else i don't no where is the mistake

Stop countdown

i want when countdown over, stop .

i = 3;
$('#job_'+alvo).flipcountdown({size:"lg",
tick:function(){
if(i==0){ console.log("I want stop countdown here"); }
return i--; 
}
});

Add a thousands separator

Hi,
How do you add a thousands separator for function :
jQuery(function(){
var i = 100000000;
jQuery('#flipcountdownbox1').flipcountdown({
tick:function(){
return i++;
},size:"lg",
});
})

Thank you for your time!

beforeDateTime and tzoneOffset

Hello,

I can you please check, support the option tzoneOffset along beforeDateTime.

Currently these two scripts show the exact same time.

$('#retroclockbox1').flipcountdown({
beforeDateTime:'10/20/2015 11:00:00',
tzoneOffset: 2
});

$('#retroclockbox2').flipcountdown({
beforeDateTime:'10/20/2015 11:00:00',
tzoneOffset: 3
});

I found a few time in order to fix it and i came with the following modification:
Line 187 options.beforeDateTime = Math.round((new Date(options.beforeDateTime)).getTime()/1000);

I placed for a test...

if(options.tzoneOffset){
//get current local time
var tmp = new Date(options.beforeDateTime).getTime();
//get current local time offset
var localoffset = new Date(options.beforeDateTime).getTimezoneOffset();
//find the difference between offsets
var offsetdif = ( (options.tzoneOffset * 60) + localoffset ) / 60;
//place the date in a var
tmp = (new Date(options.beforeDateTime)).getTime() - 3600000 * (offsetdif)
options.beforeDateTime = Math.round(tmp/1000);
}else{
options.beforeDateTime = Math.round((new Date(options.beforeDateTime)).getTime()/1000);
}

This covers the string and not the object case of course... but is is something :)
Unfortunately there is no easy way in javascript to convert a date into specific timezoneoffset.

Thank you for your time!

Edit: 6-10-2015.

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.