Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd Sep 2015, 03:09 PM   #1
www.schrader.co
War Room Member
 
GowebMkt's Avatar
 
Join Date: 2010
Location: Northern Michigan
Posts: 469
Thanks: 207
Thanked 29 Times in 25 Posts
Default
How to set date for countdown timer?
Share on: 
fb share twitter share gplus share more share

Hi Warriors,

I am using this countdown timer script...seen here:

https://github.com/sonnyt/downCount

I have put the date / time info on the custom.css file...no go.

Its being used on this site:
Top Jimmy Construction - Web Site Coming Soon!

Thanks in advance for help on this!

Bret

GowebMkt is offline  
Unread 22nd Sep 2015, 11:17 PM   #2
Active Warrior
 
Join Date: 2015
Location: Kherson, Ukraine
Posts: 42
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: How to set date for countdown timer?
Share on: 
fb share twitter share gplus share more share

Hi. You need to insert code in html file. Sample code:

Code:
    
<script class="source" type="text/javascript">
        $('.countdown').downCount({
            date: '24/09/2014 12:00:00',
            offset: +10
        });
    </script>
Or insert code in custom js file. Sample code:


Code:
    
(function ($) {
        $('.countdown').downCount({
            date: '24/09/2014 12:00:00',
            offset: +10
        });
})(jQuery);
wordpress+expert is offline  
Unread 23rd Sep 2015, 07:30 AM   #3
www.schrader.co
War Room Member
 
GowebMkt's Avatar
 
Join Date: 2010
Location: Northern Michigan
Posts: 469
Thanks: 207
Thanked 29 Times in 25 Posts
Default
Re: How to set date for countdown timer?
Share on: 
fb share twitter share gplus share more share

I already have this code in custom.js


$(function() {
window.scrollReveal = new scrollReveal();
"use strict";

// PreLoader
$(window).load(function() {
$(".loader").fadeOut(400);
});

// Backstretchs
$("#header").backstretch("images/3.jpg");
$("#services").backstretch("images/3.jpg");

// Countdown
$('.countdown').downCount({
date: '12/12/2015 12:00:00',
offset: +10
});

});

GowebMkt is offline  
Unread 23rd Sep 2015, 07:56 AM   #4
Active Warrior
 
Join Date: 2015
Location: Kherson, Ukraine
Posts: 42
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: How to set date for countdown timer?
Share on: 
fb share twitter share gplus share more share

Replace these files:
Attached Files
File Type: zip replace.zip (1.5 KB, 1 views)
wordpress+expert is offline  
The Following User Says Thank You to wordpress+expert For This Useful Post:
Unread 23rd Sep 2015, 08:59 AM   #5
www.schrader.co
War Room Member
 
GowebMkt's Avatar
 
Join Date: 2010
Location: Northern Michigan
Posts: 469
Thanks: 207
Thanked 29 Times in 25 Posts
Default
Re: How to set date for countdown timer?
Share on: 
fb share twitter share gplus share more share

Hey - that worked - thanks!

I see the 'custom.js' file is the same as the orig....can you please tell me what you did diff on the jquery.downCount.js file?

Thanks again!!

GowebMkt is offline  
Unread 23rd Sep 2015, 10:08 AM   #6
Active Warrior
 
Join Date: 2015
Location: Kherson, Ukraine
Posts: 42
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: How to set date for countdown timer?
Share on: 
fb share twitter share gplus share more share

You're welcome.

In file jquery.downCount.jz I replaced the line 10 on:

Code:
date: null,
wordpress+expert is offline  
The Following User Says Thank You to wordpress+expert For This Useful Post:
Closed Thread


Bookmarks

Tags
countdown, date, set, timer


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:14 PM.