nydailynews / how-long

Track how long until / how long since a particular (news) event. http://interactive.nydailynews.com/project/how-long/have-meghan-markle-prince-harry-been-married/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How Long

Clocks to keep track of elapsed time or countdown until something happens.

Usage

How to create a new how-long

  1. cd into the www directory.
  2. cp -fr _blank name-of-your-new-how-long to create a new directory for your how-long project, with the boilerplate HTML.
  3. Now that you have the blank HTML, here are the strings you need to search-and-replace with real values:
    1. Values that are in multiple places, so need to be searched-and-replaced:
      1. TITLE
      2. DESCRIPTION
      3. SLUG should be whatever name-of-your-new-how-long is
    2. Values that are only in one place, so can be edited in-place.
      1. OVERLINE
      2. KEYWORDS
      3. SOMELINKSHERE add a link or more to related content
      4. UNTILWHAT flesh out the twitter text
      5. AUTHOR
      6. PARSELY-KEYWORDS
      7. SECTION
  4. You'll also have to change the date that's hard-coded, March 29, 2018 13:10:00, to whatever the date and time is you're counting too.
  5. Change the Parsely date 2018-02-05T06:00:00Z to the expected launch date and time.
  6. On the line below the POINT TO THE RIGHT SECTION section, update the link and the text to point to the right section.
  7. On the line with FEEDSLUG in it, figure out how to get a new article feed up in there.

About

Track how long until / how long since a particular (news) event. http://interactive.nydailynews.com/project/how-long/have-meghan-markle-prince-harry-been-married/

License:MIT License


Languages

Language:HTML 78.5%Language:CSS 12.0%Language:JavaScript 9.4%