team178 / team178.github.io

The 2nd Law Enforcers' Website
http://farmingtonrobotics.org
Mozilla Public License 2.0
14 stars 17 forks source link

Flag.js is not necessary #151

Open TJScalzo opened 3 years ago

TJScalzo commented 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