//动画效果 var wow = new WOW({ boxClass: 'wow', offset: 0, mobile: true, live: true }); wow.init(); //关于友道-集团简介 资质荣誉 //$('.column-partner').carousel({ // interval: 9999000 //}) //关于友道-集团简介 公司发展历程 $(function(){ // 时间轴 var timerNum = 0; var space = 210; // 移动间距 var length = $('.timer-scale-cont').length, numL; // 分辨率 if(window.screen.width > 1500) { numL = length - 4 } else if(window.screen.width < 1500) { numL = length - 3 } // 点击左侧 $('.timer-left').on('click', function () { if(timerNum > 0) { timerNum -= 1; moveL(timerNum, numL) } tags(timerNum); }) // 点击右侧 $('.timer-right').on('click', function () { if(timerNum < length - 1) { timerNum += 1; tags(timerNum); } moveL(timerNum, numL) }) // 点击年 $('.time-circle').each(function (index) { $(this).on('click', function () { timerNum = index; moveL(timerNum, numL) tags(timerNum); }) }) function tags(num){ $('.timer-scale-cont').eq(num).addClass('hov').siblings().removeClass('hov'); $('.shaft-detail-cont').eq(num).show().siblings().hide(); } function moveL(num, len) { if (num < len) { moveLeft = -num * space; $('.timer-scale').animate({left:moveLeft}, 700); } } }) //加入我们 点击展开 $(function() { $(".Social .container li i").click(function() { $(this).parent().find('.content').toggle("slow"); }); }); // 两化融合-切换选项卡 $(function(){ $(".ziyuan-neirong li").click(function() { $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式 $(this).addClass('active'); // 添加当前元素的样式 }); }); // 场景 $(function(){ $(".ziyuan-changjing li").click(function() { $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式 $(this).addClass('active'); // 添加当前元素的样式 }); }); // 教育服务 $(function(){ $(".jiaoyu-fuwu .nav-tabs li").click(function() { $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式 $(this).addClass('active'); // 添加当前元素的样式 }); }); // 轨道交通类产品体系 $(function(){ $(".jiaotong-tab .nav-tabs li").click(function() { $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式 $(this).addClass('active'); // 添加当前元素的样式 }); }); // 加入我们招聘 $(function(){ if($(".zhaopinnav li:first").hasClass("active")){ $(".zhaopintext li:first").addClass("active") } if($(".zhaopinnav li:last").hasClass("active")){ $(".zhaopintext li:last").addClass("active") } }); // 合作案例-实践条件建设类,分页显示修改 $(function(){ $(".yd-case .search-pagination li:nth-of-type(1)").css("display","none"); $(".yd-case .search-pagination li:nth-last-of-type(1)").html("..."); }); //首页业务资询点击效果 $(function(){ $("#index-zixunbtn").click(function() { $(".index-zixun").css("bottom","100px"); }); $(".index-close").click(function() { $(".index-zixun").css("bottom","-720px"); }); }); //首页合作案例模块JS效果 $(function(){ var divCol = $('#rowbox .col-md-4'); var wrapBox = $('#rowbox .wrap-box'); divCol.hover(function () { var index = divCol.index(this); if (index == 0) { wrapBox.css('left', '10px'); $(this).find('h3').css({ 'margin-top': '200px', 'font-size': '30px' }) } else if (index == 1) { wrapBox.css('left', '410px') $(this).find('h3').css({ 'margin-top': '200px', 'font-size': '30px' }) } else if (index == 2) { wrapBox.css('left', '810px') $(this).find('h3').css({ 'margin-top': '200px', 'font-size': '30px' }) } }, function () { wrapBox.css('left', '-100%') $(this).find('h3').css({ 'margin-top': '170px', 'font-size': '26px' }) } ) }); $(function(){ $(window).scroll(function(){ if($(window).scrollTop() >= 500){ $('.ksmaz .left').css({'position':'fixed','top':'0'}); $('.ksmaz .right').css({'width:':'850px','margin-left':'350px'}); }else{ $('.ksmaz .left').css({'position':'static'}); $('.ksmaz .right').css({'width:':'auto','margin-left':'0'}); } }) }) // 顶部导航菜单技能竞赛下拉 $(function(){ $('#index-nav .nav-item:nth-of-type(4)').addClass('hover'); var str = `
` $('#index-nav .nav-item:nth-of-type(4)').append(str); });