How to use the foundation-sites.MediaQuery function in foundation-sites

To help you get started, we’ve selected a few foundation-sites examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github decidim / decidim / decidim-core / app / packs / src / decidim / conferences.js View on Github external
$(() => {
  // True if small devices
  if (!Foundation.MediaQuery.atLeast("medium")) {
    const $speaker = $(".js-conference")

    $speaker.hover(function () {
      const top = $(window).scrollTop() + ($(window).height() * 0.1)
      $(this).find(".js-bio").css("top", top)
    })
  }
});