1/**/ 2var deviceType = /iPad/.test(navigator.userAgent) ? 't' : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? 'm' : 'p',ucBro=/UC/.test(navigator.userAgent); 3/* 4 * deviceType //设å¤å¤æï¼pï¼PC,tï¼å¹³æ¿ï¼mï¼ææºï¼ 5 */ 6$(document).ready(function() { 7 Breakpoints(); 8 /*导èªå¤ç*/ 9 if (deviceType != 'p') { 10 $('.main-nav .nav>li>.dropdown-menu .visible-xs').removeClass('visible-xs'); 11 } 12 $('.main-nav .dropdown a.link').click(function() { 13 if (deviceType == 'p' && !Breakpoints.is('xs') && $(this).data("hover")) window.location.href = $(this).attr('href'); 14 }); 15 /*䏿èåå¨ç»ä¿®å¤*/ 16 $(".navlist .dropdown-submenu").hover( 17 function() { 18 $(this).parent('.dropdown-menu').addClass('overflow-visible'); 19 }, 20 function() { 21 $(this).parent('.dropdown-menu').removeClass('overflow-visible'); 22 } 23 ); 24 var nav_li=$(".navlist .dropdown"); 25 (function($){ 26 $.fn.hoverDelay = function(options){ 27 var defaults = { 28 // é¼ æ ç»è¿çå»¶æ¶æ¶é´ 29 hoverDuring: 200, 30 // é¼ æ ç§»åºçå»¶æ¶æ¶é´ 31 outDuring: 0, 32 // é¼ æ ç»è¿æ§è¡çæ¹æ³ 33 hoverEvent: function(){ 34 // è®¾ç½®ä¸ºç©ºå½æ°ï¼ç»å®çæ¶åç±ä½¿ç¨è å®ä¹ 35 $.noop(); 36 }, 37 // é¼ æ ç§»åºæ§è¡çæ¹æ³ 38 outEvent: function(){ 39 $.noop(); 40 } 41 }; 42 var sets = $.extend(defaults,options || {}); 43 var hoverTimer, outTimer; 44 return $(this).each(function(){ 45 // ä¿åå½åä¸ä¸æçthis对象 46 var $this = $(this) 47 $this.hover(function(){ 48 clearTimeout(outTimer); 49 hoverTimer = setTimeout(function () { 50 // è°ç¨æ¿æ¢ 51 sets.hoverEvent.apply($this); 52 }, sets.hoverDuring); 53 }, function(){ 54 clearTimeout(hoverTimer); 55 outTimer = setTimeout(function () { 56 sets.outEvent.apply($this); 57 }, sets.outDuring); 58 }); 59 }); 60 } 61 })(jQuery); 62 // å ·ä½ä½¿ç¨ï¼ç»id为â#testâçå ç´ æ·»å hoverEventäºä»¶ 63 nav_li.hoverDelay({ 64 // èªå®ä¹ï¼outEventå 65 hoverEvent: function(){ 66 $(this).addClass('open'); 67 }, 68 outEvent: function(){ 69 $(this).removeClass('open'); 70 } 71 }); 72 73 // Elements Animation 74 if($('.wow').length){ 75 var wow = new WOW( 76 { 77 boxClass: 'wow', // animated element css class (default is wow) 78 animateClass: 'animated', // animation css class (default is animated) 79 offset: 0, // distance to the element when triggering the animation (default is 0) 80 mobile: true, // trigger animations on mobile devices (default is true) 81 live: true // act on asynchronously loaded content (default is true) 82 } 83 ); 84 wow.init(); 85 } 86});
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.