]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
feat: add "MediaQuery.only()"
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 11 Aug 2018 22:05:38 +0000 (00:05 +0200)
committerDaniel Ruf <mac1@daniel-ruf.de>
Sun, 17 Nov 2019 15:49:45 +0000 (16:49 +0100)
commit180e2c4b38c05f456d190c14be86c69faf46c02d
tree290eb0681b290154432fefc96e8c4d1229e472b1
parentfe182c64c7e038368a088ad7f99ce77e5af2e060
feat: add "MediaQuery.only()"

Add method:
* `MediaQuery.only(size)`
  Checks if the screen is within the given breakpoint.
  If smaller than the breakpoint of wider than its upper limit, returns false.
js/foundation.util.mediaQuery.js