Open TJScalzo opened 3 years ago
The behavior that this JavaScript creates can be accomplished using CSS. You just need to add a media query in flag.css at 780px and use the selector :last-of-type to hide the flag. https://github.com/team178/team178.github.io/blob/e5c572d499e72114a1db79b7e191d578aa7e5aee/assets/js/flag.js#L1-L12
:last-of-type
The behavior that this JavaScript creates can be accomplished using CSS. You just need to add a media query in flag.css at 780px and use the selector
:last-of-type
to hide the flag. https://github.com/team178/team178.github.io/blob/e5c572d499e72114a1db79b7e191d578aa7e5aee/assets/js/flag.js#L1-L12