Quick Hack: One Bootstrap Popover at a Time
Bootstrap is my new favorite front-end framework, and I really like the JavaScript popovers for contextual information and help. One thing I don’t like about them is they aren’t aware of each other. If you only want 1 to be visible on your page at a time, here’s a quick hack. It does involve 1 global variable, which should make you feel dirty.
1 | // Global variable - cringe |
Check it out over here. Click on a bubble at the top, then click on a different bubble or somewhere else on the page.