Sha256: 3cdb6c86cf6e7e1487e66dcd4e62056416442c68799b486f51944ec4f45cc3a5
Contents?: true
Size: 939 Bytes
Versions: 3
Compression:
Stored size: 939 Bytes
Contents
(function ($){ $.fn.foundationNavigation = function (options) { var lockNavBar = false; // Windows Phone, sadly, does not register touch events :( if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) { $('.nav-bar a.flyout-toggle', this).on('click.fndtn touchstart.fndtn', function (e) { e.preventDefault(); var flyout = $(this).siblings('.flyout').first(); if (lockNavBar === false) { $('.nav-bar .flyout').not(flyout).slideUp(500); flyout.slideToggle(500, function () { lockNavBar = false; }); } lockNavBar = true; }); $('.nav-bar>li.has-flyout', this).addClass('is-touch'); } else { $('.nav-bar>li.has-flyout', this).hover(function () { $(this).children('.flyout').show(); }, function () { $(this).children('.flyout').hide(); }); } }; })( jQuery );
Version data entries
3 entries across 3 versions & 1 rubygems