Created
March 4, 2012 17:30
-
-
Save srobbin/1974010 to your computer and use it in GitHub Desktop.
Intelligist: Init Demo
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
/* | |
Using Intelligist is easy. | |
Just select the container, and pass in an object of gists that you'd like to display. | |
The object is made of keys (the gist ID) and values (titles for the drop-down menu). | |
Note: In this example, we are setting the "exec" option to true. | |
This instructs Intelligist to execute the code after the gist is displayed. | |
It is optional, and disabled by default. | |
Important: If you are using the "exec" option, your Gist must be set | |
to the correct language. Intelligist uses a Gist's language to determine | |
how it should execute the code. | |
*/ | |
$("#demo").intelligist({ | |
"1973984": "Welcome to Intelligist" | |
, "1973990": "Live CSS preview" | |
, "1973575": "Live JS preview" | |
}, { exec: true }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment