arielsalminen / TinyNav.js

Responsive navigation plugin that weighs just 443 bytes
http://tinynav.viljamis.com/
635 stars 207 forks source link

Non Javascript fallback ? #49

Closed solaceten closed 10 years ago

solaceten commented 11 years ago

I love Tinynav but recently had a situation where a user did not have JS on their device, so they couldn't navigate the site.

Does anyone have any tips what non JS idea to use for a fall back ?

Thanks

ghost commented 11 years ago

If you like to get it done without Javascript you need to create the select box server side (PHP, Perl, whatever you're using), there are plugins for Wordpress. I think this the wrong place to ask?

solaceten commented 11 years ago

Hi dotmagic, thanks for your advice. I am using @media queries to activate TinyNav, so if the screen is at a certain breakpoint, the Wordpress nav menu is replaced with TN. However, if JS is not active, then it would be nice to be able to specify a fallback. If you have any code examples, or suggested links, that would be helpful. I posted this here because I was not sure where else to ask! Thanks for help.

arielsalminen commented 10 years ago

Check out the example at the bottom of the tinynav site: http://tinynav.viljamis.com

I am using similar approach on my own site at http://viljamis.com/