Beautifully crafted timelines that are easy and intuitive to use. http://timeline.knightlab.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Zach Wise 4db864f0be Improved styling of tweets 13 years ago
examples First Commit 13 years ago
source Improved styling of tweets 13 years ago
.gitignore ignore .DS_Store 13 years ago
README.html Updated documentation 13 years ago
jquery-min.js First Commit 13 years ago
timeline-min.js Improved styling of tweets 13 years ago
timeline.css Improved styling of tweets 13 years ago
timeline.png Improved styling of tweets 13 years ago

README.html

<html><head><title>Timeline Documentation</title><style type="text/css">@import url('https://themes.googleusercontent.com/fonts/css?kit=lhDjYqiy3mZ0x6ROQEUoUw');ol{margin:0;padding:0}p{margin:0}.c7{max-width:468pt;background-color:#ffffff;padding:72pt 72pt 72pt 72pt}.c2{list-style-type:lower-latin;margin:0;padding:0}.c16{list-style-type:lower-roman;margin:0;padding:0}.c5{list-style-type:decimal;margin:0;padding:0}.c6{padding-left:0pt;margin-left:72pt}.c4{padding-left:0pt;margin-left:36pt}.c12{padding-left:0pt;margin-left:108pt}.c9{color:#1155cc;text-decoration:underline}.c17{color:inherit;text-decoration:inherit}.c15{font-size:14pt}.c8{text-indent:36pt}.c10{font-size:18pt}.c3{height:11pt}.c0{font-family:Consolas}.c1{direction:ltr}.c11{font-weight:bold}.c18{color:#980000}.c13{background-color:#ffffff}.c14{font-size:10pt}.title{padding-top:24pt;line-height:1.15;text-align:left;color:#000000;font-size:36pt;font-family:Arial;font-weight:bold;padding-bottom:6pt}.subtitle{padding-top:18pt;line-height:1.15;text-align:left;color:#666666;font-style:italic;font-size:24pt;font-family:Georgia;padding-bottom:4pt}body{color:#000000;font-size:11pt;font-family:Arial}h1{padding-top:24pt;line-height:1.15;text-align:left;color:#000000;font-size:18pt;font-family:Arial;font-weight:bold;padding-bottom:6pt}h2{padding-top:18pt;line-height:1.15;text-align:left;color:#000000;font-size:14pt;font-family:Arial;font-weight:bold;padding-bottom:4pt}h3{padding-top:14pt;line-height:1.15;text-align:left;color:#666666;font-size:12pt;font-family:Arial;font-weight:bold;padding-bottom:4pt}h4{padding-top:12pt;line-height:1.15;text-align:left;color:#666666;font-style:italic;font-size:11pt;font-family:Arial;padding-bottom:2pt}h5{padding-top:11pt;line-height:1.15;text-align:left;color:#666666;font-size:10pt;font-family:Arial;font-weight:bold;padding-bottom:2pt}h6{padding-top:10pt;line-height:1.15;text-align:left;color:#666666;font-style:italic;font-size:10pt;font-family:Arial;padding-bottom:2pt}</style></head><body class="c7"><p class="c1"><span class="c10">Document history with Timeline</span></p><p class="c1"><span>There are lots of timeline tools on the web but they are almost all either hard on the eyes or hard to use. Create timelines that are at the same time beautiful and intuitive for users</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>Timeline is great for pulling in media from different sources. Just throw in a link from Twitter, YouTube, Flickr, Vimeo, Google Maps or SoundCloud and Timeline will format it to fit perfectly. More media types will be supported in the future.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>Creating one is as easy as filling in a Google spreadsheet or as detailed as JSON.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span class="c10">Add it to your site</span></p><h2 class="c1"><a name="h.yijq1obhmdin"></a><span>Step 1</span></h2><p class="c1"><span>Include these lines in the </span><span class="c0">&lt;head&gt;</span><span>&nbsp;of your site.</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- CSS --&gt;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;link href=&quot;timeline.css&quot; rel=&quot;stylesheet&quot;&gt;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- JavaScript --&gt;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-min.js&quot;&gt;&lt;/script&gt;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot; src=&quot;timeline-min.js&quot;&gt;&lt;/script&gt;</span></p><h2 class="c1"><a name="h.4g1c2uur90mz"></a><span>Step 2</span></h2><p class="c1"><span>A</span><span>dd a </span><span class="c0">&lt;div&gt;</span><span>&nbsp;with an id called &ldquo;timeline&rdquo; in the </span><span class="c0">&lt;body&gt;</span><span>&nbsp;of your site.</span></p><p class="c3 c1"><span></span></p><p class="c8 c1"><span class="c0">&lt;div id=&quot;timeline&quot;&gt;&lt;/div&gt;</span></p><p class="c1 c3"><span class="c0"></span></p><h2 class="c1"><a name="h.xzqzcem05wi"></a><span>Step 3</span></h2><p class="c1"><span>I</span><span>nitialize the data source in either the </span><span class="c0">&lt;head&gt;</span><span>&nbsp;or the </span><span class="c0">&lt;body&gt;</span></p><p class="c3 c1"><span></span></p><p class="c1 c8"><span class="c0">&lt;script&gt;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(document).ready(function() {</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timeline = new VMM.Timeline();</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timeline.init(&quot;your_data.json&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p class="c1"><span class="c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});</span></p><p class="c8 c1"><span class="c0">&lt;/script&gt;</span></p><p class="c3 c1"><span></span></p><p class="c3 c1"><span></span></p><p class="c1"><span class="c10">File Formats</span></p><p class="c1"><span class="c15">JSON:</span></p><p class="c1"><span>JSON is the native data format of Timeline. It is easy to work with and even people non-coders can create timelines with this method.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>JSON is picky though. Pay special attention to the small details. A misplaced comma or quotation mark can prevent the timeline from loading properly.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>Instructions on actually using the JSON file are included in the example data.JSON file.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>A few hints about working with JSON files. </span></p><ol class="c5" start="1"><li class="c4 c1"><span>JSON works in pairs. In the file you will notice &ldquo;parameters&rdquo;:&rdquo;specific attributes&rdquo;</span></li></ol><ol class="c2" start="1"><li class="c6 c1"><span>The part you will want to change goes in the specific attributes section.</span></li></ol><ol class="c5" start="2"><li class="c4 c1"><span>Pay special attention to the formatting notes in the json-guide/data.json file.</span></li></ol><p class="c3 c1"><span></span></p><p class="c3 c1"><span></span></p><p class="c1"><span class="c15">Google Docs:</span></p><p class="c1"><span>If you don&rsquo;t want to mess with JSON, grab a spreadsheet in Google Docs to build your timeline. It&rsquo;s as simple as dropping a date, text, and links into the appropriate columns in Timeline&rsquo;s template. </span></p><p class="c3 c1"><span></span></p><p class="c1"><span>You can find the template here: </span><span class="c9"><a class="c17" href="https://docs.google.com/a/digitalartwork.net/previewtemplate?id=0AppSVxABhnltdEhzQjQ4MlpOaldjTmZLclQxQWFTOUE&amp;mode=public">https://docs.google.com/a/digitalartwork.net/previewtemplate?id=0AppSVxABhnltdEhzQjQ4MlpOaldjTmZLclQxQWFTOUE&amp;mode=public</a></span></p><p class="c3 c1"><span></span></p><p class="c1"><span>There are only four things you need to know in order to create a timeline using Google Docs:</span></p><p class="c3 c1"><span></span></p><ol class="c5" start="1"><li class="c4 c1"><span class="c11">Make the spreadsheet public: </span><span><br>Google Docs are automatically set to private but the spreadsheet must be public.<br><br>Click the blue &ldquo;Share&rdquo; button on the top right-hand corner. In the &ldquo;Share settings&rdquo; window, you&rsquo;ll see the private setting of the spreadsheet: click &ldquo;Change...&rdquo;. In the Visibility options window, choose &ldquo;Public on the Web&rdquo; and save.</span></li></ol><p class="c3 c1"><span></span></p><p class="c3 c1"><span></span></p><ol class="c5" start="2"><li class="c4 c1"><span class="c11">Publish to the Web</span><span><br>Under the File menu, select &ldquo;Publish to the Web.&rdquo; <br><br>In the next window, check the box next to &ldquo;</span><span class="c13">Automatically republish when changes are made.&rdquo; Uncheck all other boxes. Click &ldquo;start publishing.&rdquo; This will give you the URL to embed in your HTML file.</span></li></ol><p class="c3 c1"><span></span></p><p class="c3 c1"><span></span></p><ol class="c5" start="3"><li class="c1 c4"><span class="c11">Copy/paste the Web URL into your Timeline HTML file</span><span><br>After you publish the spreadsheet, Google Docs will generate a link to the file. Copy the link for the Web Page option (as opposed to PDF, HTML, XLS, etc.), then paste it into the timeline&rsquo;s HTML file:<br><br></span><span class="c0 c14">timeline.init(&ldquo;</span><span class="c0 c14 c18">URL goes here</span><span class="c0 c14">&rdquo;)</span></li></ol><p class="c3 c1"><span></span></p><ol class="c5" start="4"><li class="c4 c1"><span class="c11">Designate the &ldquo;start&rdquo; slide</span><span><br>This indicates which event is the title slide, the one that begins the timeline. <br><br>Only one should be labeled &quot;start&quot; (generally, the first one). The title slide must have a start date, headline and text to appear properly.</span></li></ol><p class="c3 c1"><span></span></p><p class="c1"><span class="c10">Getting Timeline onto the web</span></p><p class="c1"><span>The zipped folder contains all of the files that you need in order to get Timeline working on your site. Upload the entire folder to your server and then you can play with the example timelines.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>To create a new timeline, decide which file format you would like to use. Check out the examples folder of your chosen format. </span></p><p class="c3 c1"><span></span></p><p class="c1"><span>For a google spreadsheet:</span></p><ol class="c5" start="1"><li class="c4 c1"><span>Start by dropping in a placeholder, like &ldquo;Timeline title goes here.&rdquo;</span></li></ol><ol class="c2" start="1"><li class="c6 c1"><span>Save, make the spreadsheet public and publish it.</span></li></ol><ol class="c16" start="1"><li class="c1 c12"><span>To publish: File &gt; Publish to the Web</span></li><li class="c12 c1"><span>Copy/paste the link into HTML page</span></li><li class="c12 c1"><span>Save, upload to server</span></li></ol><ol class="c2" start="2"><li class="c6 c1"><span>After making changes in the spreadsheet, reload the page in the browser to make sure everything is working well.</span></li></ol><p class="c1"><span class="c10">Media</span></p><p class="c1"><span>Included in the zip file is a kitchen sink example. This timeline shows how to incorporate the different media types from different services like Twitter, YouTube, Flickr and Vimeo. </span></p><p class="c3 c1"><span></span></p><p class="c1"><span>Twitter: Just copy and paste the address of the tweet from the browser bar into the media parameter. Timeline will auto-magically pull in the tweet and format it so that it looks beautiful.</span></p><p class="c3 c1"><span></span></p><p class="c1"><span>For Flickr, Google Maps, SoundCloud, YouTube and Vimeo, just copy the URL and paste it into the media parameter.</span></p><p class="c3 c1"><span></span></p><p class="c3 c1"><span></span></p><p class="c1"><span class="c10">Best practices</span></p><p class="c1"><span>T</span><span>ips and tricks to best utilize Timeline</span></p><p class="c3 c1"><span></span></p><ol class="c5" start="1"><li class="c4 c1"><span>Timelines look best when they flow well and maintain a good pace. Some ideas to keep in mind:</span></li></ol><ol class="c2" start="1"><li class="c6 c1"><span>Keep it light - don&rsquo;t get bogged down by text or other elements</span></li><li class="c1 c6"><span>Include compelling media that help</span></li></ol><ol class="c5" start="2"><li class="c4 c1"><span>Chronology</span></li></ol><ol class="c2" start="1"><li class="c6 c1"><span>The best timeline stories have a strong chronological flow to the story. It does not &nbsp;work well for stories that do not have a strong timeline element or that need to jump around in the timeline.</span></li><li class="c6 c1"><span>Chronological order is inherent in a timeline, but we&rsquo;re human: Sometimes we forget a date. Luckily, Timeline will sort events by date regardless of what order they are in on the spreadsheet.</span></li></ol><ol class="c5" start="3"><li class="c4 c1"><span>Include more than just the major events</span></li></ol><ol class="c2" start="1"><li class="c6 c1"><span>It is generally a more compelling story to include important smaller events that lead up to major events than just showing the major events.</span></li></ol></body></html>