1(function ($) { 2 3 var isiOS = navigator.userAgent.match(/iPad|iPhone|iPod/i) != null; 4 5 // DROP DOWN MENUS 6 $.fn.elementalNav = function( options ) { 7 var defaults = {}; 8 options = $.extend(defaults, options); 9 10 return this.each(function () { 11 var $this = $(this); 12 13 $this.find('li')[($.fn.hoverIntent) ? 'hoverIntent' : 'hover'](function(){ 14 $(this).addClass('hover'); 15 $('ul:first',this).stop(true, true).fadeIn(100); 16 }, function(){ 17 $(this).removeClass('hover'); 18 $('ul:first',this).delay(300).fadeOut(100); 19 }); 20 21 $this.find('li:has(ul)').find('a:first').addClass('has-children'); 22 }); 23 }; 24 25 $.fn.elementalInit = function() { 26 27 // remove hover on touch devices 28 if ( isiOS ) { 29 $('body').children().on('click', $.noop); 30 } 31 32 }; 33 34 function _get_title(e) { 35 return e.attr('title') || e.data('title'); 36 } 37 38 function _get_breakpoint() { 39 return $('body').data('breakpoint') || 320; 40 } 41 42})(jQuery);
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.