From: suprsidr Date: Wed, 5 Mar 2014 17:19:12 +0000 (-0600) Subject: Adding required off-canvas javascript X-Git-Tag: v5.2.0~7^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4600%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Adding required off-canvas javascript --- diff --git a/doc/pages/components/offcanvas.html b/doc/pages/components/offcanvas.html index 97ec1fba2..5ca5edfc5 100644 --- a/doc/pages/components/offcanvas.html +++ b/doc/pages/components/offcanvas.html @@ -271,6 +271,36 @@ Off-canvas layouts can be easily customized using our provided Sass variables. *** +### Using the Javascript + +
+ Before you can use Off-canvas you'll want to verify that jQuery and `foundation.js` are available on your page. You can refer to the [Javascript documentation](../javascript.html) on setting that up. +
+ +Just add `foundation.offcanvas.js` AFTER the `foundation.js` file. Your markup should look something like this: + +{{#markdown}} +```html + + + ... + + + + + + + + +``` +{{/markdown}} + +Required Foundation Library: `foundation.offcanvas.js` + +*** + ### Sass Errors? If the default "foundation" import was commented out, then make sure you import this file: