mirror of
https://github.com/gamaio/unps.us-Shortener.git
synced 2024-12-22 18:22:41 +00:00
20 lines
586 B
JavaScript
20 lines
586 B
JavaScript
$(function(){
|
|
var note = $('#note'),
|
|
ts = new Date(2013, 7, 20, 12, 30);
|
|
|
|
$('#countdown').countdown({
|
|
timestamp : ts,
|
|
callback : function(days, hours, minutes, seconds){
|
|
var message = "";
|
|
message += days + " day" + ( days==1 ? '':'s' ) + ", ";
|
|
message += hours + " hour" + ( hours==1 ? '':'s' ) + ", ";
|
|
message += minutes + " minute" + ( minutes==1 ? '':'s' ) + " and ";
|
|
message += seconds + " second" + ( seconds==1 ? '':'s' ) + " <br />";
|
|
message += "Until the relaunch of <a href=\"http://unps.us\">UnPS.US</a>";
|
|
|
|
note.html(message);
|
|
}
|
|
});
|
|
|
|
});
|