A Pen by hellonicolas on CodePen.
Created
July 15, 2015 15:13
-
-
Save rebhichaouki/3c30a5217b410af3f417 to your computer and use it in GitHub Desktop.
jEgpjp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="timeline-container"> | |
<div id="my-timeline"></div> | |
</div> | |
<!-- always load the CSS --> | |
<link rel="stylesheet" type="text/css" href="http://cdn.knightlab.com/libs/timeline/latest/css/themes/dark.css"> | |
<!-- but no need for both --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
createStoryJS({ | |
type: 'timeline', | |
width: '100%', | |
height: '100%', | |
source: 'https://docs.google.com/spreadsheet/pub?key=0Agj2HRrBDEjJdGtiUTg3aFFUY3hfU1YtbmFuejZjWGc&output=html', | |
embed_id: 'my-timeline' | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#my-timeline { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment