// 鑾峰彇url鍙傛暟淇℃伅 function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); } } } // 鏁板瓧婊氬姩 (function ($) { $.fn.numberRock = function (options) { var defaults = { lastNumber: 100, duration: 2000, easing: 'swing' //swing(榛樿 : 缂撳啿 : 鎱㈠揩鎱? linear(鍖€閫熺殑) }; var opts = $.extend({}, defaults, options); $(this).animate({ num: "numberRock", }, { duration: opts.duration, easing: opts.easing, complete: function () { console.log("success"); }, step: function (a, b) { //鍙互妫€娴嬫垜浠畾鏃跺櫒鐨勬瘡涓€娆″彉鍖 $(this).html(parseInt(b.pos * opts.lastNumber)); } }); } })(jQuery); // 鏁板瓧婊氬姩2 ! function (t) { "use strict"; t.fn.countUp = function (e) { var a = t.extend({ time: 500, delay: 5 }, e); return this.each(function () { var e = t(this), n = a, u = function () { e.data("counterupTo") || e.data("counterupTo", e.text()); var t = parseInt(e.data("counter-time")) > 0 ? parseInt(e.data("counter-time")) : n.time, a = parseInt(e.data("counter-delay")) > 0 ? parseInt(e.data("counter-delay")) : n.delay, u = t / a, r = e.data("counterupTo"), o = [r], c = /[0-9]+,[0-9]+/.test(r); r = r.replace(/,/g, ""); for (var d = (/^[0-9]+$/.test(r), /^[0-9]+\.[0-9]+$/.test(r)), s = d ? (r.split(".")[1] || []).length : 0, i = u; i >= 1; i--) { var p = parseInt(Math.round(r / u * i)); if (d && (p = parseFloat(r / u * i).toFixed(s)), c) for (; /(\d+)(\d{3})/.test(p.toString());) p = p.toString().replace(/(\d+)(\d{3})/, "$1,$2"); o.unshift(p) } e.data("counterup-nums", o), e.text("0"); var f = function () { e.text(e.data("counterup-nums").shift() ? e.data("counterup-nums").shift() : e.data("counterup-nums")), e.data("counterup-nums").length ? setTimeout(e.data("counterup-func"), a) : (delete e.data("counterup-nums"), e.data("counterup-nums", null), e.data("counterup-func", null)) }; e.data("counterup-func", f), setTimeout(e.data("counterup-func"), a) }; e.waypoint(u, { offset: "100%", triggerOnce: !0 }) }) } }(jQuery); // 瑙e喅鏂规鍓鑸 $(".top .nav1 li:nth-child(3)").hover(function () { var _this = $(this); $(this).find(".fnav").stop().slideDown(); $(this).siblings('.fnavBg').stop().slideDown(); }, function () { var _this = $(this); $(this).find(".fnav").stop().slideUp(); $(this).siblings('.fnavBg').stop().slideUp(); }) // 鍏充簬鎴戜滑鍓鑸 $(".top .nav1 li:nth-child(5)").hover(function () { var _this = $(this); $(this).find(".fnav").stop().slideDown(); $(this).siblings('.fnavBg').stop().slideDown(); }, function () { var _this = $(this); $(this).find(".fnav").stop().slideUp(); $(this).siblings('.fnavBg').stop().slideUp(); }) // 鎶€鏈笌浜у搧鍓鑸 $(".top .nav1 li:nth-child(2)").hover(function () { var _this = $(this); $(this).find(".fnav").stop().slideDown(); $(this).siblings('.fnavBg').stop().slideDown(); }, function () { var _this = $(this); $(this).find(".fnav").stop().slideUp(); $(this).siblings('.fnavBg').stop().slideUp(); }) // 杩愮淮涓庢湇鍔″壇瀵艰埅 $(".top .nav1 li:nth-child(4)").hover(function () { var _this = $(this); $(this).find(".fnav").stop().slideDown(); $(this).siblings('.fnavBg').stop().slideDown(); }, function () { var _this = $(this); $(this).find(".fnav").stop().slideUp(); $(this).siblings('.fnavBg').stop().slideUp(); })