[Launch Pad v1.0.2] Countdown / Launch Date

Home Forums Launch Pad HTML [Launch Pad v1.0.2] Countdown / Launch Date

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6719
    TourneDisque
    Participant

    Hi themecatcher,

    Is it possible to have the launch date and countdown separate dates?
    i.e Launch date set 0 days in the future // Countdown date set 30 days in the future.

    // Preview date set 0 days in the future
    var previewDate = new Date();
    previewDate.setDate(previewDate.getDate()+0);

    // Preview date set 30 days in the future
    var previewDate = new Date();
    previewDate.setDate(previewDate.getDate()+30);

    TourneDisque
    TC Member

    #6731
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #6740
    TourneDisque
    Participant

    Hi themecatcher,

    Yes, It worked as described by staff above.

    ❶ Add today’s date variable.

    // Preview date set 0 days in the future
    var previewDate2 = new Date();
    previewDate2.setDate(previewDate2.getDate()+0);

    ❷ Change launch date settings.

    $('.launch-date-wrap .day').html(previewDate2.getDate());
    $('.launch-date-wrap .month').html(months[previewDate2.getMonth()+1]);
    $('.launch-date-wrap .year').html(previewDate2.getFullYear());

    TourneDisque
    TC Member

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy