PageSourceSearch

https://elinsurance.com/wp-content/themes/astonishing_brewer/javas…/jquery.foundation.navigation.js?ver=7.0.5

js elinsurance.com collected 2026-10-08 10:16:58 UTC 1,711 bytes, 55 lines download raw bytes

1;(function ($, window, undefined) {
2  'use strict';
3
4  $.fn.foundationNavigation = function (options) {
5
6    var lockNavBar = false;
7    // Windows Phone, sadly, does not register touch events :(
8    if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) {
9      $(document).on('click.fndtn touchstart.fndtn', '.nav-bar a.flyout-toggle', function (e) {
10        e.preventDefault();
11        var flyout = $(this).siblings('.flyout').first();
12        if (lockNavBar === false) {
13          $('.nav-bar .flyout').not(flyout).slideUp(500);
14          flyout.slideToggle(500, function () {
15            lockNavBar = false;
16          });
17        }
18        lockNavBar = true;
19      });
20      $('.nav-bar>li.has-flyout', this).addClass('is-touch');
21    } else {
22      $('.nav-bar>li.has-flyout', this).on('mouseenter mouseleave', function (e) {
23        if (e.type == 'mouseenter') {
24          $('.nav-bar').find('.flyout').hide();
25          $(this).children('.flyout').show();
26        }
27
28        if (e.type == 'mouseleave') {
29          var flyout = $(this).children('.flyout'),
30              inputs = flyout.find('input'),
31              hasFocus = function (inputs) {
32                var focus;
33                if (inputs.length > 0) {
34                  inputs.each(function () {
35                    if ($(this).is(":focus")) {
36                      focus = true;
37                    }
38                  });
39                  return focus;
40                }
41
42                return false;
43              };
44
45          if (!hasFocus(inputs)) {
46            $(this).children('.flyout').hide();
47          }
48        }
49
50      });
51    }
52
53  };
54
55})( jQuery, this );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.