Closed Stefan4472 closed 3 years ago
Oops, didn't realize this is kind of a duplicate of #11.
Implemented. We use Javascript's window.onresize
callback to get the current screen width. Depending on the width, we set the banner's Jumbotron to either show the banner
(on wide screens) or post_img
(on narrow screens).
Quite primitive, but works!
Change the banner image shown based on screen width:
post_banner_url
when the screen is widepost_image_url
when the screen is narrow