xdan / flipcountdown Goto Github PK
View Code? Open in Web Editor NEWClock in retro style
License: MIT License
Clock in retro style
License: MIT License
Hi.
The counter stop on mobile devices and just display zeros.
Please fix the countdown animation of numbers, i.e. 10 to 09 ,20 to 19, 30 to 29 etc.
If change to the normal direction (09 to 10, 19 to 20 etc.) the it works perfect.
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
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--;
}
});
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!
Cannot find anything in the docs.
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.
Thanks for this great plugin.
For sizes other than lg
, dots (.
) in the value are replaced with colons (:
).
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.