Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding the js and css files in the docs

  • Loading branch information...
commit f37d7d135d7f33cc2b6facde297e2e92207cffdf 1 parent 0aa1d06
@tjvantoll authored
Showing with 8 additions and 3 deletions.
  1. +7 −2 README.markdown
  2. +1 −1  demo.html
View
9 README.markdown
@@ -1,10 +1,15 @@
# PictureCube
-Create a 3D interactive cube with an image on all 6 sides. For a full explanation of the creation of this file and a full demo of all of the functionality see tjvantoll.com.
+Create a 3D interactive cube with an image on all 6 sides. For a full explanation of the creation of this file and a full demo of all of the functionality see http://tjvantoll.com. [All browsers that support CSS 3D transforms](http://caniuse.com/#feat=transforms3d) are supported. Browsers that do not support the transforms will simply see a box with the first image passed in.
## Usage
-Call the constructor after the 'DOMContentLoaded' event has fired.
+Include the CSS and JS files.
+
+ <link rel="stylesheet" href="/PictureCube.css" />
+ <script src="/PictureCube.js"></script>
+
+Call the constructor anytime after the 'DOMContentLoaded' event has fired.
/**
* @param node {DOMNode|string} The node to turn into the cube or the id attribute of the node
View
2  demo.html
@@ -6,7 +6,7 @@
<script>
addEventListener('DOMContentLoaded', function() {
- var cube = new PictureCube('test', [
+ cube = new PictureCube('test', [
'img/izzie/1.jpg',
'img/izzie/2.jpg',
'img/izzie/3.jpg',
Please sign in to comment.
Something went wrong with that request. Please try again.