Created
February 18, 2011 21:30
-
-
Save jonobr1/834444 to your computer and use it in GitHub Desktop.
Snippet for Edward co. Eyebeam for DataViz Challenge embed of HTML5 canvas object.
This file contains hidden or 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
<!-- Place anywhere in the head --> | |
<style type = "text/css"> | |
canvas { | |
width: 100%; | |
height: 759px; | |
} | |
#example-vis { | |
position: absolute; | |
top: -250px; | |
left: 0; | |
width: 100%; | |
overflow-x: hidden; | |
overflow-y: visible; | |
} | |
#content>div.section { | |
margin-top: 150px; | |
} | |
</style> | |
<script type = "text/javascript" src = "example/_js/DataVizHomepage.min.js"></script> |
This file contains hidden or 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
<!-- Place right after the <body> tag --> | |
<div id = "example-vis"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment