Skip to main content

Add a countdown to your page using jQuery Responsive Countdown

If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here.

Table of Contents



  1. Brief Description

  2. Step 1 (Download, Unzip)

  3. Step 2 (Set options)

  4. Step 3 (Import required files)

  5. Step 4 (Create HTML container)

  6. Step 5 (Create and activate countdown)

  7. Resources


Brief Description - top






jQuery Responsive Countdown is a tool that gives you the ability to create a nice looking countdown, which uses flipping animation to display remaining time to a target date. Since it is based on the canvas object it cannot run natively in older browsers like IE8. The tool uses SVG data to draw the digits and the panels, so it is scalable and looks nice on larger resolutions too. It does not use images, so it is very easy to change colors and adapt the look of it to the design of your page. The tool has a large list of options, but it can also be activated with few lines of code.

In this tutorial I will show you how to add the tool to a coming soon page.

Step 1 (Download, Unzip) - top






Download the countdown package and unzip it in a folder on your web server. Load the index page, which features the Visual Builder.

Step 2 (Set options) - top






1. Using the Visual Builder you will be able to set the colors and all other options that will make your countdown unique. The tool shows the days, hours, minutes and seconds in two types of groups. Group one is used for the most right positioned group - usually that groups is the seconds group and then for every other group (usually hours). The other group is used alternatively.

2. For each group you can set the color of the digits (digit gr1, digit gr2) which is solid color. You can also set the color of the panels. Panels can use gradient color (gradient gr1, gradient gr2), or solid color if equal values for each group are entered. The Visual Builder allows the usage of background color, which gives you idea how the countdown will look against the background of your page. Each group can be hidden and number of day digits can be set. Let us imagine that the colors from the image below (fig. 1) are used in your html page design. Using the Visual Builder (fig. 2) the colors of the countdown can changed (fig. 3, fig. 4).
colors
fig. 1

vb1
fig. 2

vb2
fig. 3

vb3
fig. 4


3. Groups can be divided not only by color, but also by space. Normally digits have a bit of space between them, but you can add more between groups (spacing). That option is a number of additional space added to the normal that exists between digits. You can further divide groups by adding a spacer (spacer). It can be circles or squares. The spacer uses the color settings of the labels. Let us use circle dividers and 3x spacing (fig. 5).
vb4
fig. 5


4. Since the countdown resizes within the space available it may become very large. You can use the (max height) option to control the maximum size of it. Labels can be hidden (show labels) and their color (labels color) and glow color (labels glow) can be set. Glow color is used to soften the look of the labels, which in some browsers look too pixelated. Glow can be turned off though using the (glow = 0) option. The labels can have long and short caption. Short caption is used when there is not enough space to show the long caption. The labels resize along with digits, but if they reach the minimum size allowed (min size) the short caption is used. Max size can also be controlled for larger resolutions. Use fonts that are web friendly. The font size is calculated based on the size of the digits. So you need to set a percentage value. The gap above the labels that separates them from the digits is again set as a percentage but this time based on the size of the labels. Let for our example use these labels: DAYS, HOURS, MINUTES, SECONDS and set 33% for font size and 0% for gap (fig. 6).
vb5
fig. 6


5. Very important option to set is the target date and time zone. Let us imagine that we are creating coming soon page that will be live on the 14th of February 2016. Setting the time zone allows people from different portions of the world to see same time remaining to your target date. You can set it to your time zone or for example to the time zone where your site will be hosted. I will set time zone 2 for this example (fig. 7)
vb6
fig. 7


Step 3 (Import required files) - top






Import these in the head section of your page.
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="jquery.responsive_countdown.js"></script>

Step 4 (Create HTML container) - top






The tool needs a container to display in. For our example it can be a div element with 100% width. That means the countdown will try to cover all available browser width. Only the maximum height can prevent it from taking all available width for large resolutions. The div needs to have an id, which will be used when the tool is created. Another important setting is the relative position of the div. This is a must because the countdown creates absolutely positioned canvas elements.
<div id="first_countdown" style="position: relative; width: 100%; height: 50px;"></div>

Step 5 (Create and activate countdown) - top






The Visual Builder outputs the needed javascript code for countdown creation and activation. You need to select that text and use it (fig. 8). Note that the id of the div you created matches the one used in the selector (first_countdown). You can paste that code in the body or in the head of your page.
vb7
fig. 8


<script>
$(function() {
$("#first_countdown").ResponsiveCountdown({
target_date:"2016/2/14 00:00:00",
time_zone:2,target_future:true,
set_id:0,pan_id:0,day_digits:3,
fillStyleSymbol1:"rgba(255, 227, 227, 1)",
fillStyleSymbol2:"rgba(219, 228, 255, 1)",
fillStylesPanel_g1_1:"rgba(154, 102, 52, 1)",
fillStylesPanel_g1_2:"rgba(186, 123, 63, 1)",
fillStylesPanel_g2_1:"rgba(51, 103, 153, 1)",
fillStylesPanel_g2_2:"rgba(57, 115, 171, 1)",
text_color:"rgba(0, 0, 0, 1)",
text_glow:"rgba(168, 162, 162, 1)",
show_ss:true,show_mm:true,
show_hh:true,show_dd:true,
f_family:"Verdana",show_labels:true,
type3d:"single",max_height:300,
days_long:"DAYS",days_short:"dd",
hours_long:"HOURS",hours_short:"hh",
mins_long:"MINUTES",mins_short:"mm",
secs_long:"SECONDS",secs_short:"ss",
min_f_size:9,max_f_size:30,
spacer:"circles",groups_spacing:3,text_blur:2,
font_to_digit_ratio:0.33,labels_space:1
});
});
</script>

Resources - top






The countdown can be used to show elapsed time too. It also has a custom mode, where it waits for outside calls that change the states of its digits. The tool has another set of digits. Different sets can be added easily using some SVG descriptions. Full documentation is available at jQuery Responsive Countdown Documentation. The tool is available at jQuery Responsive Countdown with Visual Builder.

If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here.

This post is written by Krasimir Dimov  who loves to play with jQuery and HTML5. You can reach him by clicking here

Comments

  1. Amazing! This blog looks just like my old one! It's on a completely
    different subject but it has pretty much the same page layout and design. Outstanding choice of colors!

    ReplyDelete
  2. Generating challenge coins from scratch can be a complex and overwhelming job to numerous, but our
    expert group has produced a method that lets consumers design and syle the
    coin they want, in a timely manner. We begin with a basic concept oor description supplied by our clients.
    This can be a sketch, pictures, or some basic descriptioms of what iss
    needed and the challenge coin's objective. We then take that
    sketch or idea and turn it into a quantity of standard styles that can be selected
    from. When the client is happy with the look we move into adding colors and texture to the
    coin. A excellent portion of the time designing the challenge coin iis spent producing sure that the coin is exactly the way it really iis intended
    to look.

    ReplyDelete
  3. Mormonism is depressed with overdoses becoming a growing concern inn the young adult demographics.
    Now is the time to take a serious look at at the growing problem of of the youth in Utah

    ReplyDelete
  4. Roger Jason Stone Jr. is an American political consultant, lobbyist, and
    strategist, noted for his use of opposition research, typically for candidates
    of the Republican Celebration. Stone has been praised by some cannabis activists because he could serve as
    a pro-cannabis influence in the White House, pushing the president
    to respect state healthcare cannabis laws and persuading the federal government
    to contemplate rescheduling cannabis.

    ReplyDelete
  5. Religious groups oppose the teaching of evolution on thhe grounds that
    it is a flawed science and undermines creationist have had a
    couple of reverses lately. In other words, literal belief in the Bible means
    you have got to actually feel in way far more than just six impossible factors just ahead off breakfast, and I
    kid you not, the above list could be exteended by dozens far a
    lot more not possible concerns all ccontained inn the Congressman's Creationist Bible.
    We can think by faith that provided lengtthy sufficient, such a issue could come about,
    and perhaps a method might possibly be located to make it come about, or we can conclude that
    no technique atheist apologetics observed enables dogs
    to do one thing other than produce their private variety
    as the book of Genesis states God made them to do.
    In addition we can state that limiting elements are constructed ito the DNA of
    a species. As a outcome it pleased the Lord, at sundry situations, annd in divers manners, to reveal Himself, and
    to declare that His will unto His Church and afterwards for the much better preserving and propagating of the
    truth, and for the significantly much more confident establishment
    and comfort of the Church against the corruption of the flesh, and the malice
    of Satan and of the planet, to commit the extremely very same wholly
    unto writing which tends to make the Holy Scripture to be most needed these former
    strategies of God's revealing His wjll unto His individuals beccoming now ceased.
    I make contact with Atheist Max a troll due to the
    reality he'll hijack articles that have definitely nothing
    at all at all to do with immorality inn religion and commence throwing out random bible verses
    that have absolutely absolutely nothing at all to do wkth the
    subject thee write-up is speaking about and completely ruin any reasonably priced discussion that might have
    been going on with his off topic ramblings.
    Atheists usually appear to convey they generally hold to science, trigger and logic
    (and consequently some philosophy) while they will assert folks off faith realize faith to
    be believing in anything there is no proof of or merely developoed ideas.

    For the sake of this list, I've simplifid substantially (so the nuances of evolutionary
    theory and the exegesis of Genesis have been largely skipped), and I've taken the straightforward extremes of
    scientific and Christian interpretation, by speaking in terms of thee
    Richard Dawkins view” and the Ken Ham view”.

    ReplyDelete
  6. Undeniably consider that which you said.
    Your favorite reason appeared to be at the net the simplest thing to take into accout of.
    I say to you, I definitely get annoyed even as people consider worries
    that they just don't know about. You controlled to hit the nail
    upon the highest and also defined out the whole thing with no
    need side effect , people could take a signal. Will probably be
    again to get more. Thanks

    ReplyDelete
  7. We absolutely love your blog and find many of your post's to be just
    what I'm looking for. can you offer guest writers to write content for you personally?
    I wouldn't mind writing a post or elaborating on most of the subjects you write with regards to here.
    Again, awesome web log!

    ReplyDelete
  8. And we South Africans are resourceful people.

    ReplyDelete
  9. This paragraph is actually a pleasant one it assists new internet users, who are wishing in favor of blogging.

    ReplyDelete
  10. We present translation solutions in 190 languages.

    ReplyDelete
  11. http://mewkid.net/buy-prednisone/ - Prednisone 20 Mg Prednisone 20mg vdu.hnip.chillgeeks.com.fqm.no http://mewkid.net/buy-prednisone/

    ReplyDelete
  12. http://mewkid.net/buy-prednisone/ - Prednisone Without Dr Prescription Prednisone dyx.sijo.chillgeeks.com.dfp.uk http://mewkid.net/buy-prednisone/

    ReplyDelete
  13. http://mewkid.net/buy-prednisone/ - Prednisone 20mg Prednisone 20 Mg vza.upws.chillgeeks.com.swm.il http://mewkid.net/buy-prednisone/

    ReplyDelete
  14. cbd oil full spectrum cbd oil cbd oil cbd oil buy cbd oil cure buy cbd oil cbd oil

    cbd oil hemp cbd oil cbd oil buy cbd oil cbd oil whole greens cbd oil cbd oil charlotte's web cbd oil

    ReplyDelete
  15. Welcome to thе mоst renowned escort agency in Paris.

    ReplyDelete
  16. These escort girls are incredible and damn sexy.

    ReplyDelete
  17. Buy Citalopram Mail Online Uk http://apcialisle.com/# - Buy Cialis Bootleg Viagra For Sale In Toronto Buy Cialis Cialis Ou Viagra Ou Levitra

    ReplyDelete
  18. Cialis Original Wirkung https://apcialisle.com/# - buy liquid cialis online I Want To Buy Misoprostol Tablets Cialis Farmacia Canadiense Viagra

    ReplyDelete
  19. Hey there :)

    Your wordpress site is very sleek - hope you don't mind me asking what theme you're using?
    (and don't mind if I steal it? :P)

    I just launched my site --also built in wordpress like yours-- but the theme slows (!) the site down quite
    a bit.

    In case you have a minute, you can find it by searching for "royal cbd" on Google (would
    appreciate any feedback) - it's still in the
    works.

    Keep up the good work-- and hope you all take care of yourself during the coronavirus scare!

    ReplyDelete
  20. I loved this poѕt! I read your blog fairly often and you are alᴡays coming out with ѕome great ѕtᥙff.
    I will shares this on my facebook, instagram and sօme off my loyalty followers.
    Great jobs! Keep work it with it.

    ReplyDelete
  21. I used to be suggested this website by my cousin. I'm now
    not certain whether or not this post is written by way of him as nobody else recognise such designated approximately my
    problem. You're amazing! Thanks!

    ReplyDelete

Post a Comment

Popular posts from this blog

Fulfilling The Urge of Shopping is Now Easy

Shopaholics on the alert! Get set, and go! Yes, it has indeed turned into a race – a race of online shopping. It may be an occasion embraced shopping carnival or a clearance sale or simply just a season ending mega sale. On its way is another such colossal online shopping fest knownas the Great Online Shopping Festival or simply GOSF which is to take place from the 10th to the 12th of December 2014.   What does GOSF do? The GOSF is an initiative by Google and was launched on the 12th of December, 2012. Ever since then, it has been a favorite among its users. The GOSF offers are not only limited to those particular days of December but numerous trifle coupons, reminders as well as updates are also sent to your registered email ids all through the year. Along with these, there are funny little games on the GOSF site that provide you with innumerable opportunities to win yourself free gift coupons or free shopping facilities just by scoring points in the game.   Worried about the products...

PowerMockup- Helps you sketch mockups in Powerpoint

Most of us use Microsoft Power point to give presentations to our clients… Here is the solution to your wireframing, mockup, sketching needs in Power Point, its PowerMockup… Main features includes- 63 fully editable user interface elements Easy access via a separate ribbon tab Compatible with PowerPoint 2007 and 2010 Microsoft Power Point Window The best part of it which I liked is.., that you can create fully editable mock-ups. So, there is no need to install any other additional software to present in Power point, just use Powermockup and you are done. You can get this amazing piece of add-on just for free, till wednesday(6 April 2011)… So.., hurry up, don’t loose chance. Check out the main product website for more details.. PowerMockup