Streaming live at 10am (PST)

Whats the Right Code for Count Down Timer Embed?


#1

I've been trying to find the right countdown timer code to place in the embed section in webflow but i'm confused on what code it should be.

Please can someone help me? cc: Vincent, PixelGeek


#2

Hi @brilliantlights smile

You'll need to add the plugin into the custom code area (http://help.webflow.com/site-settings/custom-code)

Then create your elements in the designer tool.

If you need something simple, nothing fancy, you may try this: http://keith-wood.name/countdown.html

hope this helps


#3

Thank you! but i'm still a little bit lost.

This is the plugin code i got for the timer:

var newYear = new Date(); 
newYear = new Date(newYear.getFullYear() + 1, 1 - 1, 1); 
$('#defaultCountdown').countdown({until: newYear}); 
 
$('#removeCountdown').click(function() { 
    var destroy = $(this).text() === 'Remove'; 
    $(this).text(destroy ? 'Re-attach' : 'Remove'); 
    $('#defaultCountdown').countdown(destroy ? 'destroy' : {until: newYear}); 
});

Am i going to paste exactly that in the custom code?

Thereafter, what type of element should i create? how do i write the element code for the embed?

I'm sorry for too many questions, i'm new to all this.


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.