From 771030995f9c2f55bbbcb044119adb46406e19ae Mon Sep 17 00:00:00 2001 From: suprsidr Date: Wed, 5 Mar 2014 11:19:12 -0600 Subject: [PATCH] Adding required off-canvas javascript --- doc/pages/components/offcanvas.html | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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: -- 2.47.2