foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.66k stars 5.48k forks source link

off-canvas links #641

Closed jasonkendall closed 12 years ago

jasonkendall commented 12 years ago

I've implemented the off-canvas slide-nav (panel slides from the top) and it works - except for one thing. I can't seem to get the links to actually GO anywhere. I'm developing on a subdomain if that makes a difference. I've also tried using absolute and relative links.

Here's a link to the site: http://www.unstuffeddesign.com/responsive/index.html

Obviously you'll have to view it on a small device or shrink your browser to see it.

Thanks for the help! Jason

smileyj68 commented 12 years ago

Check your JS - there must be something causing nav links to return false;

jasonkendall commented 12 years ago

jquery.offcanvas.js:48TypeError: 'null' is not an object (evaluating '$target.offset().top')

Jonathan, this is the error that's showing up in the javascript (offcanvas.js). I haven't changed anything in the .js file and I copied and pasted the demo code. I realize this isn't a javascript support forum but any help would be much appreciated :)

hatefulcrawdad commented 12 years ago

These seem to be working on your site now so I'll close this down. Reopen if you are still seeing the problem!

jasonkendall commented 12 years ago

Hey Chris. Actually I just wound up writing my own jquery script. I never did get the off-canvas to work.

siraskalot commented 12 years ago

Same issue as issue https://github.com/zurb/foundation/issues/728