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.
13 KiB
13 KiB
<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"><head></span><span> of your site.</span></p><p class="c1"><span class="c0"> <!-- CSS --></span></p><p class="c1"><span class="c0"> <link href="timeline.css" rel="stylesheet"></span></p><p class="c1"><span class="c0"> </span></p><p class="c1"><span class="c0"> <!-- JavaScript --></span></p><p class="c1"><span class="c0"> <script type="text/javascript" src="jquery-min.js"></script></span></p><p class="c1"><span class="c0"> <script type="text/javascript" src="timeline-min.js"></script></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"><div></span><span> with an id called “timeline” in the </span><span class="c0"><body></span><span> of your site.</span></p><p class="c3 c1"><span></span></p><p class="c8 c1"><span class="c0"><div id="timeline"></div></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"><head></span><span> or the </span><span class="c0"><body></span></p><p class="c3 c1"><span></span></p><p class="c1 c8"><span class="c0"><script></span></p><p class="c1"><span class="c0"> $(document).ready(function() {</span></p><p class="c1"><span class="c0"> timeline = new VMM.Timeline();</span></p><p class="c1"><span class="c0"> timeline.init("your_data.json"); </span></p><p class="c1"><span class="c0"> });</span></p><p class="c8 c1"><span class="c0"></script></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 “parameters”:”specific attributes”</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’t want to mess with JSON, grab a spreadsheet in Google Docs to build your timeline. It’s as simple as dropping a date, text, and links into the appropriate columns in Timeline’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&mode=public">https://docs.google.com/a/digitalartwork.net/previewtemplate?id=0AppSVxABhnltdEhzQjQ4MlpOaldjTmZLclQxQWFTOUE&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 “Share” button on the top right-hand corner. In the “Share settings” window, you’ll see the private setting of the spreadsheet: click “Change...”. In the Visibility options window, choose “Public on the Web” 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 “Publish to the Web.” <br><br>In the next window, check the box next to “</span><span class="c13">Automatically republish when changes are made.” Uncheck all other boxes. Click “start publishing.” 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’s HTML file:<br><br></span><span class="c0 c14">timeline.init(“</span><span class="c0 c14 c18">URL goes here</span><span class="c0 c14">”)</span></li></ol><p class="c3 c1"><span></span></p><ol class="c5" start="4"><li class="c4 c1"><span class="c11">Designate the “start” 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 "start" (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 “Timeline title goes here.”</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 > 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’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 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’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>