first commit
This commit is contained in:
commit
09a14bf0a3
1088 files changed
+145132
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Swiper 2.7.6
|
||||
* Mobile touch slider and framework with hardware accelerated transitions
|
||||
*
|
||||
* http://www.idangero.us/sliders/swiper/
|
||||
*
|
||||
* Copyright 2010-2015, Vladimir Kharlampidi
|
||||
* The iDangero.us
|
||||
* http://www.idangero.us/
|
||||
*
|
||||
* Licensed under GPL & MIT
|
||||
*
|
||||
* Released on: February 11, 2015
|
||||
*/
|
||||
var Swiper=function(a,b){"use strict";function c(a,b){return document.querySelectorAll?(b||document).querySelectorAll(a):jQuery(a,b)}function d(a){return"[object Array]"===Object.prototype.toString.apply(a)?!0:!1}function e(){var a=G-J;return b.freeMode&&(a=G-J),b.slidesPerView>D.slides.length&&!b.centeredSlides&&(a=0),0>a&&(a=0),a}function f(){function a(a){var c,d,e=function(){"undefined"!=typeof D&&null!==D&&(void 0!==D.imagesLoaded&&D.imagesLoaded++,D.imagesLoaded===D.imagesToLoad.length&&(D.reInit(),b.onImagesReady&&D.fireCallback(b.onImagesReady,D)))};a.complete?e():(d=a.currentSrc||a.getAttribute("src"),d?(c=new Image,c.onload=e,c.onerror=e,c.src=d):e())}var d=D.h.addEventListener,e="wrapper"===b.eventTarget?D.wrapper:D.container;if(D.browser.ie10||D.browser.ie11?(d(e,D.touchEvents.touchStart,p),d(document,D.touchEvents.touchMove,q),d(document,D.touchEvents.touchEnd,r)):(D.support.touch&&(d(e,"touchstart",p),d(e,"touchmove",q),d(e,"touchend",r)),b.simulateTouch&&(d(e,"mousedown",p),d(document,"mousemove",q),d(document,"mouseup",r))),b.autoResize&&d(window,"resize",D.resizeFix),g(),D._wheelEvent=!1,b.mousewheelControl){if(void 0!==document.onmousewheel&&(D._wheelEvent="mousewheel"),!D._wheelEvent)try{new WheelEvent("wheel"),D._wheelEvent="wheel"}catch(f){}D._wheelEvent||(D._wheelEvent="DOMMouseScroll"),D._wheelEvent&&d(D.container,D._wheelEvent,j)}if(b.keyboardControl&&d(document,"keydown",i),b.updateOnImagesReady){D.imagesToLoad=c("img",D.container);for(var h=0;h<D.imagesToLoad.length;h++)a(D.imagesToLoad[h])}}function g(){var a,d=D.h.addEventListener;if(b.preventLinks){var e=c("a",D.container);for(a=0;a<e.length;a++)d(e[a],"click",n)}if(b.releaseFormElements){var f=c("input, textarea, select",D.container);for(a=0;a<f.length;a++)d(f[a],D.touchEvents.touchStart,o,!0),D.support.touch&&b.simulateTouch&&d(f[a],"mousedown",o,!0)}if(b.onSlideClick)for(a=0;a<D.slides.length;a++)d(D.slides[a],"click",k);if(b.onSlideTouch)for(a=0;a<D.slides.length;a++)d(D.slides[a],D.touchEvents.touchStart,l)}function h(){var a,d=D.h.removeEventListener;if(b.onSlideClick)for(a=0;a<D.slides.length;a++)d(D.slides[a],"click",k);if(b.onSlideTouch)for(a=0;a<D.slides.length;a++)d(D.slides[a],D.touchEvents.touchStart,l);if(b.releaseFormElements){var e=c("input, textarea, select",D.container);for(a=0;a<e.length;a++)d(e[a],D.touchEvents.touchStart,o,!0),D.support.touch&&b.simulateTouch&&d(e[a],"mousedown",o,!0)}if(b.preventLinks){var f=c("a",D.container);for(a=0;a<f.length;a++)d(f[a],"click",n)}}function i(a){var b=a.keyCode||a.charCode;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)){if(37===b||39===b||38===b||40===b){for(var c=!1,d=D.h.getOffset(D.container),e=D.h.windowScroll().left,f=D.h.windowScroll().top,g=D.h.windowWidth(),h=D.h.windowHeight(),i=[[d.left,d.top],[d.left+D.width,d.top],[d.left,d.top+D.height],[d.left+D.width,d.top+D.height]],j=0;j<i.length;j++){var k=i[j];k[0]>=e&&k[0]<=e+g&&k[1]>=f&&k[1]<=f+h&&(c=!0)}if(!c)return}N?((37===b||39===b)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),39===b&&D.swipeNext(),37===b&&D.swipePrev()):((38===b||40===b)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),40===b&&D.swipeNext(),38===b&&D.swipePrev())}}function j(a){var c=D._wheelEvent,d=0;if(a.detail)d=-a.detail;else if("mousewheel"===c)if(b.mousewheelControlForceToAxis)if(N){if(!(Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)))return;d=a.wheelDeltaX}else{if(!(Math.abs(a.wheelDeltaY)>Math.abs(a.wheelDeltaX)))return;d=a.wheelDeltaY}else d=a.wheelDelta;else if("DOMMouseScroll"===c)d=-a.detail;else if("wheel"===c)if(b.mousewheelControlForceToAxis)if(N){if(!(Math.abs(a.deltaX)>Math.abs(a.deltaY)))return;d=-a.deltaX}else{if(!(Math.abs(a.deltaY)>Math.abs(a.deltaX)))return;d=-a.deltaY}else d=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-a.deltaX:-a.deltaY;if(b.freeMode){var f=D.getWrapperTranslate()+d;if(f>0&&(f=0),f<-e()&&(f=-e()),D.setWrapperTransition(0),D.setWrapperTranslate(f),D.updateActiveSlide(f),0===f||f===-e())return}else(new Date).getTime()-V>60&&(0>d?D.swipeNext():D.swipePrev()),V=(new Date).getTime();return b.autoplay&&D.stopAutoplay(!0),a.preventDefault?a.preventDefault():a.returnValue=!1,!1}function k(a){D.allowSlideClick&&(m(a),D.fireCallback(b.onSlideClick,D,a))}function l(a){m(a),D.fireCallback(b.onSlideTouch,D,a)}function m(a){if(a.currentTarget)D.clickedSlide=a.currentTarget;else{var c=a.srcElement;do{if(c.className.indexOf(b.slideClass)>-1)break;c=c.parentNode}while(c);D.clickedSlide=c}D.clickedSlideIndex=D.slides.indexOf(D.clickedSlide),D.clickedSlideLoopIndex=D.clickedSlideIndex-(D.loopedSlides||0)}function n(a){return D.allowLinks?void 0:(a.preventDefault?a.preventDefault():a.returnValue=!1,b.preventLinksPropagation&&"stopPropagation"in a&&a.stopPropagation(),!1)}function o(a){return a.stopPropagation?a.stopPropagation():a.returnValue=!1,!1}function p(a){if(b.preventLinks&&(D.allowLinks=!0),D.isTouched||b.onlyExternal)return!1;var c=a.target||a.srcElement;document.activeElement&&document.activeElementLine truncated
|
||||
D.activeIndex=e>=d?c:c+1}}else D.activeIndex=Math[b.visibilityFullFit?"ceil":"round"](-a/F);if(D.activeIndex===D.slides.length&&(D.activeIndex=D.slides.length-1),D.activeIndex<0&&(D.activeIndex=0),D.slides[D.activeIndex]){if(D.calcVisibleSlides(a),D.support.classList){var f;for(c=0;c<D.slides.length;c++)f=D.slides[c],f.classList.remove(b.slideActiveClass),D.visibleSlides.indexOf(f)>=0?f.classList.add(b.slideVisibleClass):f.classList.remove(b.slideVisibleClass);D.slides[D.activeIndex].classList.add(b.slideActiveClass)}else{var g=new RegExp("\\s*"+b.slideActiveClass),h=new RegExp("\\s*"+b.slideVisibleClass);for(c=0;c<D.slides.length;c++)D.slides[c].className=D.slides[c].className.replace(g,"").replace(h,""),D.visibleSlides.indexOf(D.slides[c])>=0&&(D.slides[c].className+=" "+b.slideVisibleClass);D.slides[D.activeIndex].className+=" "+b.slideActiveClass}if(b.loop){var i=D.loopedSlides;D.activeLoopIndex=D.activeIndex-i,D.activeLoopIndex>=D.slides.length-2*i&&(D.activeLoopIndex=D.slides.length-2*i-D.activeLoopIndex),D.activeLoopIndex<0&&(D.activeLoopIndex=D.slides.length-2*i+D.activeLoopIndex),D.activeLoopIndex<0&&(D.activeLoopIndex=0)}else D.activeLoopIndex=D.activeIndex;b.pagination&&D.updatePagination(a)}}},D.createPagination=function(a){if(b.paginationClickable&&D.paginationButtons&&x(),D.paginationContainer=b.pagination.nodeType?b.pagination:c(b.pagination)[0],b.createPagination){var d="",e=D.slides.length,f=e;b.loop&&(f-=2*D.loopedSlides);for(var g=0;f>g;g++)d+="<"+b.paginationElement+' class="'+b.paginationElementClass+'"></'+b.paginationElement+">";D.paginationContainer.innerHTML=d}D.paginationButtons=c("."+b.paginationElementClass,D.paginationContainer),a||D.updatePagination(),D.callPlugins("onCreatePagination"),b.paginationClickable&&y()},D.updatePagination=function(a){if(b.pagination&&!(D.slides.length<1)){var d=c("."+b.paginationActiveClass,D.paginationContainer);if(d){var e=D.paginationButtons;if(0!==e.length){for(var f=0;f<e.length;f++)e[f].className=b.paginationElementClass;var g=b.loop?D.loopedSlides:0;if(b.paginationAsRange){D.visibleSlides||D.calcVisibleSlides(a);var h,i=[];for(h=0;h<D.visibleSlides.length;h++){var j=D.slides.indexOf(D.visibleSlides[h])-g;b.loop&&0>j&&(j=D.slides.length-2*D.loopedSlides+j),b.loop&&j>=D.slides.length-2*D.loopedSlides&&(j=D.slides.length-2*D.loopedSlides-j,j=Math.abs(j)),i.push(j)}for(h=0;h<i.length;h++)e[i[h]]&&(e[i[h]].className+=" "+b.paginationVisibleClass);b.loop?void 0!==e[D.activeLoopIndex]&&(e[D.activeLoopIndex].className+=" "+b.paginationActiveClass):e[D.activeIndex]&&(e[D.activeIndex].className+=" "+b.paginationActiveClass)}else b.loop?e[D.activeLoopIndex]&&(e[D.activeLoopIndex].className+=" "+b.paginationActiveClass+" "+b.paginationVisibleClass):e[D.activeIndex]&&(e[D.activeIndex].className+=" "+b.paginationActiveClass+" "+b.paginationVisibleClass)}}}},D.calcVisibleSlides=function(a){var c=[],d=0,e=0,f=0;N&&D.wrapperLeft>0&&(a+=D.wrapperLeft),!N&&D.wrapperTop>0&&(a+=D.wrapperTop);for(var g=0;g<D.slides.length;g++){d+=e,e="auto"===b.slidesPerView?N?D.h.getWidth(D.slides[g],!0,b.roundLengths):D.h.getHeight(D.slides[g],!0,b.roundLengths):F,f=d+e;var h=!1;b.visibilityFullFit?(d>=-a&&-a+J>=f&&(h=!0),-a>=d&&f>=-a+J&&(h=!0)):(f>-a&&-a+J>=f&&(h=!0),d>=-a&&-a+J>d&&(h=!0),-a>d&&f>-a+J&&(h=!0)),h&&c.push(D.slides[g])}0===c.length&&(c=[D.slides[D.activeIndex]]),D.visibleSlides=c};var ab,bb;D.startAutoplay=function(){if(D.support.transitions){if("undefined"!=typeof ab)return!1;if(!b.autoplay)return;D.callPlugins("onAutoplayStart"),b.onAutoplayStart&&D.fireCallback(b.onAutoplayStart,D),A()}else{if("undefined"!=typeof bb)return!1;if(!b.autoplay)return;D.callPlugins("onAutoplayStart"),b.onAutoplayStart&&D.fireCallback(b.onAutoplayStart,D),bb=setInterval(function(){b.loop?(D.fixLoop(),D.swipeNext(!0,!0)):D.swipeNext(!0,!0)||(b.autoplayStopOnLast?(clearInterval(bb),bb=void 0):D.swipeTo(0))},b.autoplay)}},D.stopAutoplay=function(a){if(D.support.transitions){if(!ab)return;ab&&clearTimeout(ab),ab=void 0,a&&!b.autoplayDisableOnInteraction&&D.wrapperTransitionEnd(function(){A()}),D.callPlugins("onAutoplayStop"),b.onAutoplayStop&&D.fireCallback(b.onAutoplayStop,D)}else bb&&clearInterval(bb),bb=void 0,D.callPlugins("onAutoplayStop"),b.onAutoplayStop&&D.fireCallback(b.onAutoplayStop,D)},D.loopCreated=!1,D.removeLoopedSlides=function(){if(D.loopCreated)for(var a=0;a<D.slides.length;a++)D.slides[a].getData("looped")===!0&&D.wrapper.removeChild(D.slides[a])},D.createLoop=function(){if(0!==D.slides.length){D.loopedSlides="auto"===b.slidesPerView?b.loopedSlides||1:Math.floor(b.slidesPerView)+b.loopAdditionalSlides,D.loopedSlides>D.slides.length&&(D.loopedSlides=D.slides.length);var a,c="",d="",e="",f=D.slides.length,g=Math.floor(D.loopedSlides/f),h=D.loopedSlides%f;for(a=0;g*f>a;a++){var i=a;if(a>=f){var j=Math.floor(a/f);i=a-f*j}e+=D.slides[i].outerHTML}for(a=0;h>a;a++)d+=u(b.slideDuplicateClass,D.slides[a].outerHTML);for(a=f-h;f>a;a++)c+=u(b.slideDuplicateClass,D.slides[a].outerHLine truncated
|
||||
@@ -0,0 +1,447 @@
|
||||
function JPlaceHolder(o) {
|
||||
this.container = o || $("body"),
|
||||
this.init()
|
||||
} !
|
||||
function(o, t, a, i) {
|
||||
var e = o(t);
|
||||
o.fn.flap = function(n) {
|
||||
function p() {
|
||||
r.each(function() {
|
||||
var t = o(this);
|
||||
o.abovethetop(this, c) || o.belowthefold(this, c) || t.trigger("appear")
|
||||
})
|
||||
}
|
||||
var s, r = this,
|
||||
c = {
|
||||
threshold: 0,
|
||||
container: t,
|
||||
event: "scroll"
|
||||
};
|
||||
return n && o.extend(c, n),
|
||||
s = c.container === i || c.container === t ? e: o(c.container),
|
||||
0 === c.event.indexOf("scroll") && s.bind(c.event,
|
||||
function() {
|
||||
return p()
|
||||
}),
|
||||
r.each(function() {
|
||||
var t = this,
|
||||
a = o(t);
|
||||
t.loaded = !1,
|
||||
a.on("appear",
|
||||
function() {
|
||||
if (!t.loaded) {
|
||||
var o = a.attr("data-delay"),
|
||||
i = a.attr("data-ani");
|
||||
t.loaded = !0,
|
||||
a.css({
|
||||
visibility: "visible",
|
||||
"animation-delay": o,
|
||||
"-moz-animation-delay": o,
|
||||
"-webkit-animation-delay": o,
|
||||
"animation-name": i,
|
||||
"-moz-animation-name": i,
|
||||
"-webkit-animation-name": i
|
||||
})
|
||||
}
|
||||
})
|
||||
}),
|
||||
e.bind("resize",
|
||||
function() {
|
||||
p()
|
||||
}),
|
||||
o(a).ready(function() {
|
||||
p()
|
||||
}),
|
||||
this
|
||||
},
|
||||
o.abovethetop = function(a, n) {
|
||||
var p;
|
||||
return p = n.container === i || n.container === t ? e.scrollTop() : o(n.container).offset().top,
|
||||
p >= o(a).offset().top + n.threshold + o(a).height()
|
||||
},
|
||||
o.belowthefold = function(a, n) {
|
||||
var p;
|
||||
return p = n.container === i || n.container === t ? (t.innerHeight ? t.innerHeight: e.height()) + e.scrollTop() : o(n.container).offset().top + o(n.container).height(),
|
||||
p <= o(a).offset().top - n.threshold
|
||||
}
|
||||
} (jQuery, window, document),
|
||||
JPlaceHolder.prototype = {
|
||||
_check: function() {
|
||||
return "placeholder" in document.createElement("input")
|
||||
},
|
||||
init: function() {
|
||||
this._check() || this.fix()
|
||||
},
|
||||
fix: function() {
|
||||
this.container.find("input[placeholder],textarea[placeholder]").each(function() {
|
||||
var o = $(this),
|
||||
t = o.attr("placeholder");
|
||||
o.val(t),
|
||||
o.focusin(function() {
|
||||
var o = $(this);
|
||||
o.val() == t && o.val("")
|
||||
}).focusout(function() {
|
||||
var o = $(this);
|
||||
"" == o.val() && o.val(t)
|
||||
})
|
||||
})
|
||||
}
|
||||
};
|
||||
var Reg = {
|
||||
email: /^(\w-*\.*)+@(\w-?)+(\.\w{1,})+$/,
|
||||
password: /^.{6,20}/,
|
||||
code: /^.{4}$/,
|
||||
checkCode: /^.{4}$/,
|
||||
tel: /(^1[0-9]{10}$)|(^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,8}$)/,
|
||||
companyName: /^.{1,50}$/,
|
||||
name: /^.{1,50}$/,
|
||||
message: /^.{1,500}$/,
|
||||
position: /.{0,50}$/
|
||||
},
|
||||
GetAttr = function(obj, attrStr) {
|
||||
if (void 0 == obj || void 0 == attrStr) return "";
|
||||
try {
|
||||
var result = eval("obj." + attrStr);
|
||||
return void 0 == result ? "": result
|
||||
} catch(ex) {
|
||||
return ""
|
||||
}
|
||||
},
|
||||
valiContent = function(o, t) {
|
||||
var t = t.find(".popbox-con"),
|
||||
a = t.find("input[name=" + o + "]");
|
||||
0 == a.length && (a = t.find("textarea[name=" + o + "]"));
|
||||
var i = a.closest(".popbox-inputbox").find(".popbox-input-tip"),
|
||||
e = a.attr("data-reg"),
|
||||
n = a.attr("data-tip");
|
||||
if (i.hide(), "checkbox" == a.attr("type")) var p = a.prop("checked") ? 1 : 0;
|
||||
else var p = $.trim(a.val());
|
||||
if ("cfmPassword" == e) {
|
||||
if (p !== t.find('input[name="password"]').val()) return i.html(n).show(),
|
||||
!1
|
||||
} else if ("checkbox" == a.attr("type")) {
|
||||
if (!p) return i.html(n).show(),
|
||||
!1
|
||||
} else {
|
||||
var s = Reg[e];
|
||||
if (!s.test(p)) return i.html(n).show(),
|
||||
!1
|
||||
}
|
||||
return p
|
||||
},
|
||||
valiDation = function(o, t) {
|
||||
if ($.isArray(o)) {
|
||||
for (var a = {},
|
||||
i = !0,
|
||||
e = o.length - 1; e >= 0; e--) {
|
||||
var n = o[e];
|
||||
a[n] = valiContent(n, t),
|
||||
a[n] === !1 && (i = !1)
|
||||
}
|
||||
return i ? a: !1
|
||||
}
|
||||
valiContent(o, t)
|
||||
},
|
||||
countDown = function(o) {
|
||||
o.addClass("cur"),
|
||||
o.html("60秒后获取");
|
||||
var t = 60,
|
||||
a = setInterval(function() {
|
||||
return t -= 1,
|
||||
0 == t ? (clearInterval(a), a = null, void o.html("点击获取验证码").removeClass("cur")) : void o.html(t + "秒后获取")
|
||||
},
|
||||
1e3)
|
||||
},
|
||||
setTipPop = function(o, t, a) {
|
||||
var t = t || 2600,
|
||||
i = "tip-pop err-pop";
|
||||
a && (i = "tip-pop");
|
||||
var e = $('<div class="' + i + '">' + o + "</div>");
|
||||
e.appendTo("body");
|
||||
var n = e.innerWidth(),
|
||||
p = e.innerHeight();
|
||||
e.css({
|
||||
marginTop: -p / 2,
|
||||
marginLeft: -n / 2
|
||||
}),
|
||||
e.animate({
|
||||
opacity: 1
|
||||
},
|
||||
600),
|
||||
setTimeout(function() {
|
||||
e.animate({
|
||||
opacity: 0
|
||||
},
|
||||
600,
|
||||
function() {
|
||||
e.remove()
|
||||
})
|
||||
},
|
||||
t)
|
||||
},
|
||||
setMinHeight = function() {
|
||||
var o = $(window).outerHeight(),
|
||||
t = $(".header").outerHeight(),
|
||||
a = $(".footer").outerHeight(),
|
||||
i = o - t - a;
|
||||
$(".main").css("min-height", i + "px")
|
||||
},
|
||||
formBounced = function(o) {
|
||||
$(".popbox").length > 0 && ($(".popbox").remove(), $(".popbox-wrap").remove()),
|
||||
window.scrollTo(0, 0),
|
||||
$("body").append(o)
|
||||
},
|
||||
throttle = function(o, t) {
|
||||
var a, i = o,
|
||||
e = !0;
|
||||
return function() {
|
||||
var o = arguments,
|
||||
n = this;
|
||||
return e ? (i.apply(n, o), e = !1) : a ? !1 : void(a = setTimeout(function() {
|
||||
clearTimeout(a),
|
||||
a = null,
|
||||
i.apply(n, o)
|
||||
},
|
||||
t || 30))
|
||||
}
|
||||
},
|
||||
browser = {
|
||||
versions: function() {
|
||||
{
|
||||
var o = navigator.userAgent;
|
||||
navigator.appVersion
|
||||
}
|
||||
return {
|
||||
trident: o.indexOf("Trident") > -1,
|
||||
presto: o.indexOf("Presto") > -1,
|
||||
webKit: o.indexOf("AppleWebKit") > -1,
|
||||
gecko: o.indexOf("Gecko") > -1 && -1 == o.indexOf("KHTML"),
|
||||
mobile: !!o.match(/AppleWebKit.*Mobile.*/),
|
||||
ios: !!o.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
|
||||
android: o.indexOf("Android") > -1 || o.indexOf("Linux") > -1,
|
||||
iPhone: o.indexOf("iPhone") > -1,
|
||||
iPad: o.indexOf("iPad") > -1,
|
||||
webApp: -1 == o.indexOf("Safari")
|
||||
}
|
||||
} (),
|
||||
language: (navigator.browserLanguage || navigator.language).toLowerCase()
|
||||
},
|
||||
scrollFn = function() {
|
||||
var o = $(window).scrollTop(),
|
||||
t = $(".back-top");
|
||||
o > 300 ? t.show() : t.hide()
|
||||
};
|
||||
/*$(".banner-owl").owlCarousel({
|
||||
items: 1,
|
||||
loop: !0,
|
||||
dots: !0,
|
||||
lazyLoad: !1,
|
||||
autoplay: !0,
|
||||
autoplayTimeout: 5e3,
|
||||
autoplayHoverPause: !0
|
||||
}),
|
||||
function(o) {
|
||||
var t = [".news-dynamic-owl", ".news-industry-owl", ".news-media-owl"],
|
||||
a = o(".news-box-tit"),
|
||||
i = (o(".news-container").find(".owl-carousel"), o(".case-item"));
|
||||
i.height(1.4375 * i.width()),
|
||||
o(".news-dynamic-owl").addClass("pass").owlCarousel({
|
||||
margin: 10,
|
||||
lazyLoad: !1,
|
||||
dots: !0,
|
||||
mouseDrag: !1,
|
||||
navText: ["", ""],
|
||||
loop: !0,
|
||||
nav: !0,
|
||||
autoplay: !0,
|
||||
autoplayTimeout: 4e3,
|
||||
autoplayHoverPause: !0,
|
||||
responsive: {
|
||||
0 : {
|
||||
items: 1
|
||||
},
|
||||
800 : {
|
||||
items: 2
|
||||
},
|
||||
1024 : {
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
}),
|
||||
a.on("click",
|
||||
function() {
|
||||
var i = o(this);
|
||||
if (!i.hasClass("cur")) {
|
||||
var e = o(".news-box-nav").find(".cur"),
|
||||
n = e.index(),
|
||||
p = o(t[n]),
|
||||
s = i.index(),
|
||||
r = o(t[s]);
|
||||
a.removeClass("cur"),
|
||||
i.addClass("cur"),
|
||||
p.hide(),
|
||||
r.fadeIn(),
|
||||
r.hasClass("pass") || r.addClass("pass").owlCarousel({
|
||||
margin: 10,
|
||||
lazyLoad: !1,
|
||||
mouseDrag: !1,
|
||||
dots: !0,
|
||||
navText: ["", ""],
|
||||
loop: !0,
|
||||
nav: !0,
|
||||
autoplay: !0,
|
||||
autoplayTimeout: 4e3,
|
||||
autoplayHoverPause: !0,
|
||||
responsive: {
|
||||
0 : {
|
||||
items: 1
|
||||
},
|
||||
800 : {
|
||||
items: 2
|
||||
},
|
||||
1024 : {
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
} ($),
|
||||
$(".leader-owl").owlCarousel({
|
||||
items: 1,
|
||||
loop: !0,
|
||||
dots: !0,
|
||||
smartSpeed: 1e3,
|
||||
margin: 10,
|
||||
lazyLoad: !1,
|
||||
mouseDrag: !1,
|
||||
autoplay: !0,
|
||||
autoplayTimeout: 5500,
|
||||
autoplayHoverPause: !0
|
||||
}),
|
||||
$(".cooperation-owl").owlCarousel({
|
||||
loop: !0,
|
||||
dots: !1,
|
||||
nav: !0,
|
||||
lazyLoad: !1,
|
||||
navText: ["", ""],
|
||||
autoWidth: !0,
|
||||
autoplay: !0,
|
||||
autoplayTimeout: 3e3,
|
||||
autoplayHoverPause: !0
|
||||
}),*/
|
||||
$(".header-more").on("click",
|
||||
function() {
|
||||
$(".nav").stop().fadeToggle("slow")
|
||||
}),
|
||||
$(".back-top").on("click",
|
||||
function() {
|
||||
$("html,body").animate({
|
||||
scrollTop: 0
|
||||
},
|
||||
300)
|
||||
}),
|
||||
$(".submit-btn").on("click",
|
||||
function() {
|
||||
var o = {
|
||||
user: $.trim($(".input-name").val()),
|
||||
telphone: $.trim($(".input-tel").val()),
|
||||
email: $.trim($(".input-email").val()),
|
||||
message: $.trim($(".input-message").val())
|
||||
},
|
||||
o = valiDation(["user", "telphone", "email", "message"], $(".contactus-box"));
|
||||
o !== !1 && $.ajax({
|
||||
url: "/user/message",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: o
|
||||
}).done(function(o) {
|
||||
200 == GetAttr(o, "meta.code") || 201 == GetAttr(o, "meta.code") ? (setTipPop("留言成功", 1600, !0), $(".contactus-input").val(""), new JPlaceHolder) : setTipPop(GetAttr(o, "meta.msg") || "系统处理异常!")
|
||||
}).fail(function() {
|
||||
setTipPop("系统处理异常!")
|
||||
})
|
||||
}),
|
||||
$(window).on("resize",
|
||||
function() {
|
||||
setMinHeight()
|
||||
}),
|
||||
$(".aside ul li.consulting").on("click",function() {
|
||||
$(".aside ul li.consulting").addClass("active");
|
||||
$(".consulting_box").css("right", "40px");
|
||||
}),
|
||||
$(".consulting_box .close").on("click",function() {
|
||||
$(".aside ul li.consulting").removeClass("active");
|
||||
$(".consulting_box").css("right", "-250px");
|
||||
}),
|
||||
$("#close").on("click",function () {
|
||||
$("#show").animate({
|
||||
width: '40px'
|
||||
}, 100);
|
||||
$('.aside,#close').animate({
|
||||
width: 0
|
||||
}, 100);
|
||||
}),
|
||||
$("#show").on("click", function () {
|
||||
$("#show").animate({
|
||||
width: '0px'
|
||||
}, 100);
|
||||
$('.aside,#close').animate({
|
||||
width: "40px"
|
||||
}, 100);
|
||||
}),
|
||||
window.onscroll = throttle(scrollFn, 30),
|
||||
$(document).ready(function() {
|
||||
setMinHeight(),
|
||||
new JPlaceHolder,
|
||||
$("img[data-src]").lazyload({
|
||||
data_attribute: "src",
|
||||
threshold: 350,
|
||||
skip_invisible: !1,
|
||||
effect: "fadeIn",
|
||||
placeholder: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
||||
}),
|
||||
browser.versions.mobile ? ($(".nav-item-tail > .nav-item-a").attr("href", "javascript:void(0);"), $(".flap").addClass("flaped"), $(".icon-wx").on("click",
|
||||
function() {
|
||||
$(".footer-code").stop().fadeToggle()
|
||||
}), window.screen.availWidth >= 993 || $(document).width() >= 993 ? $("body").on("click.navClick", ".nav-item-tail",
|
||||
function() {
|
||||
var o = $(this).closest(".nav-item-tail").siblings(".nav-item-tail"),
|
||||
t = $(this).find(".nav-item-child");
|
||||
o.find(".nav-item-child").fadeOut(),
|
||||
t.stop().fadeToggle()
|
||||
}) : $("body").on("click.navClick", ".nav-item-tail",
|
||||
function() {
|
||||
var o = $(this).find(".nav-item-child");
|
||||
o.stop().fadeToggle()
|
||||
}), $(window).on("resize",
|
||||
function() {
|
||||
window.screen.availWidth >= 993 || $(document).width() >= 993 ? $("body").off("click.navClick").on("click.navClick", ".nav-item-tail",
|
||||
function() {
|
||||
var o = $(this).closest(".nav-item-tail").siblings(".nav-item-tail"),
|
||||
t = $(this).find(".nav-item-child");
|
||||
o.find(".nav-item-child").fadeOut(),
|
||||
t.stop().fadeToggle()
|
||||
}) : $("body").off("click.navClick").on("click.navClick", ".nav-item-tail",
|
||||
function() {
|
||||
var o = $(this).find(".nav-item-child");
|
||||
o.stop().fadeToggle()
|
||||
})
|
||||
}), $.getScript("",
|
||||
function() {
|
||||
FastClick.attach(document.body)
|
||||
})) : ($(".nav-item-tail").on("mouseenter",
|
||||
function() {
|
||||
var o = $(this).find(".nav-item-child");
|
||||
o.stop().fadeIn()
|
||||
}).on("mouseleave",
|
||||
function() {
|
||||
var o = $(this).find(".nav-item-child");
|
||||
o.stop().fadeOut()
|
||||
}), $(".icon-wx").on("mouseenter",
|
||||
function() {
|
||||
$(".footer-code").stop().fadeIn()
|
||||
}).on("mouseleave",
|
||||
function() {
|
||||
$(".footer-code").stop().fadeOut()
|
||||
}), $(".flap").flap())
|
||||
});
|
||||
@@ -0,0 +1,2 @@
|
||||
//本插件由www.swiper.com.cn提供
|
||||
function swiperAnimateCache(){for(allBoxes=window.document.documentElement.querySelectorAll(".ani"),i=0;i<allBoxes.length;i++)allBoxes[i].attributes["style"]?allBoxes[i].setAttribute("swiper-animate-style-cache",allBoxes[i].attributes["style"].value):allBoxes[i].setAttribute("swiper-animate-style-cache"," "),allBoxes[i].style.visibility="hidden"}function swiperAnimate(a){clearSwiperAnimate();var b=a.slides[a.activeIndex].querySelectorAll(".ani");for(i=0;i<b.length;i++)b[i].style.visibility="visible",effect=b[i].attributes["swiper-animate-effect"]?b[i].attributes["swiper-animate-effect"].value:"",b[i].className=b[i].className+" "+effect+" "+"animated",style=b[i].attributes["style"].value,duration=b[i].attributes["swiper-animate-duration"]?b[i].attributes["swiper-animate-duration"].value:"",duration&&(style=style+"animation-duration:"+duration+";-webkit-animation-duration:"+duration+";"),delay=b[i].attributes["swiper-animate-delay"]?b[i].attributes["swiper-animate-delay"].value:"",delay&&(style=style+"animation-delay:"+delay+";-webkit-animation-delay:"+delay+";"),b[i].setAttribute("style",style)}function clearSwiperAnimate(){for(allBoxes=window.document.documentElement.querySelectorAll(".ani"),i=0;i<allBoxes.length;i++)allBoxes[i].attributes["swiper-animate-style-cache"]&&allBoxes[i].setAttribute("style",allBoxes[i].attributes["swiper-animate-style-cache"].value),allBoxes[i].style.visibility="hidden",allBoxes[i].className=allBoxes[i].className.replace("animated"," "),allBoxes[i].attributes["swiper-animate-effect"]&&(effect=allBoxes[i].attributes["swiper-animate-effect"].value,allBoxes[i].className=allBoxes[i].className.replace(effect," "))}
|
||||
Reference in new issue
Block a user