javascript - Responsive Bootstrap -
i added responsive bootstrap application , things working great. i've been able make modifications layout based on screen resolutions following in application.css
file:
* // other stuff here...// * *= require_self *= require bootstrap_and_overrides *= require_tree . */ @media (min-width: 1200px) { #winner_table { max-width: 30%; } }
now, i'm wondering if it's possible make modifications these javascript based on screen resolution? specifically, want popover on element float right default, float when using phone. options this? may incorrect assuming responsive bootstrap can solve problem, feel solvable problem somehow.
you can use matchmedia.js call jquery elements - https://github.com/paulirish/matchmedia.js/
Comments
Post a Comment