I just started playing with the Twitter Bootstrap API for the project I came up with. The main navigator contains 3 main elements:
- nav site
- social links nav
- site form search
I use the collapse plugin to collapse the site navigation and search form when viewing the site on mobile devices. In the mobile view, there are two buttons that, when pressed, switch to the search form or enter / turn off the main navigation.
However, if I turn off the search form and resize my browser to the desktop, is the search form still hidden in this view?
I read about using classes like visible-mobile, etc., but they seem to come across collapse plugin. I also understand that maybe I could write my own CSS hacks to fix this, but thought I would ask if there is an easier solution.
Bootstrap has show events shown, hidden and hidden, so I thought that maybe I could write some kind of custom JS that would show or hide these elements in each specific view of the device. However, I did not know how to determine which device I was using at that time.
Thoughts?
Thank you in advance
javascript twitter-bootstrap device-detection
James Howell Jan 21 '13 at 15:07 2013-01-21 15:07
source share