1$(document).on('mouseenter', '.hover-block .hover-block__item', function () { 2 var $this = $(this); 3 var $menu = $this.find('.hover-block__item-wrapper'); 4 var delay = $this.data('delay'); 5 var speed = $this.data('speed'); 6 7 if($menu.data('timer')){ 8 clearTimeout($menu.data('timer')); 9 $menu.data('timer', false); 10 } 11 12 $menu.data('timer', setTimeout(function(){ 13 $menu.stop(); 14 $menu.fadeIn(speed && speed.show ? speed.show : 300); 15 }, (delay && delay.show ? delay.show : 100))); 16 17 $this.one('mouseleave', function () { 18 if($menu.data('timer')){ 19 clearTimeout($menu.data('timer')); 20 $menu.data('timer', false); 21 } 22 23 $menu.data('timer', setTimeout(function(){ 24 $menu.stop(); 25 $menu.fadeOut(speed && speed.hide ? speed.hide : 100); 26 }, (delay && delay.hide ? delay.hide : 300))); 27 }); 28});
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.