// search $(document).ready(function() { $(function() { $("#search").click(function(e) { e.stopPropagation(); }) $("#search-closed").click(function() { $("#search-main").stop().slideUp({ duration: 300, easing: "swing" }) $("#search-btn").removeClass("active"); }) $("#search-btn").click(function(e) { e.stopPropagation(); $(this).toggleClass("active"); $("#search-main").stop().slideToggle({ duration: 500, //easing: "easeOutElastic" }) }) }) }); //pc导航定位 $(document).ready(function() { $(document).ready(function () { $('.menupc li a').each(function () { if ($($(this))[0].href == String(window.location)) $(this).addClass('current').attr('href', 'javascript:void(0);'); }); }); }); //pc导航下拉 $(document).ready(function() { $(function(){ $(".menupc > li").hover(function(){ $(this).find("a:first").addClass("hover") $(this).find(" ul ").addClass("subnav") },function(){ $(this).find("a:first").removeClass("hover") $(this).find(" ul ").removeClass("subnav") }) }) }); //手机导航 jQuery(document).ready(function( $ ) { $("#mmenu").mmenu({ "extensions": [ "effect-menu-slide", "effect-listitems-slide", "fx-menu-zoom", "fx-panels-zoom", "theme-dark" ], "iconPanels": true, "offCanvas": { position: "right" }, }); }); //资质荣誉 $(document).ready(function() { window.onload = function() { if(typeof oldIE === 'undefined' && Object.keys) hljs.initHighlighting(); baguetteBox.run('.baguetteBoxOne'); baguetteBox.run('.baguetteBoxTwo'); baguetteBox.run('.baguetteBoxThree', { animation: 'fadeIn' }); baguetteBox.run('.baguetteBoxFour', { buttons: false }); baguetteBox.run('.baguetteBoxFive', { captions: function(element) { // `this` == Array of current gallery items return element.getElementsByTagName('img')[0].alt; } }); }; });