苏州小程序开发公司_jQuery完成右侧抽屉式在线客

日期:2021-01-11 类型:科技新闻 

关键词:ps网页版在线制作,静态网页制作方法,微云网页版,怎么制作一个网页,django网页模板

jQuery实现右侧抽屉式在线客服功能     投稿:laozhang   本篇文章给大家分先一下jQuery实现右侧抽屉式在线客服功能的实例代码,有需要的读者们参考下吧。

我们先来看下实际运行效果图:

先给大家看下整体代码:

 !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "TR/xhtml1/DTD/xhtml1-transitional.dtd" 
 html xmlns="1999/xhtml" 
 head 
 meta http-equiv="Content-Type" content="text/html; charset=gb2312" / 
 meta name="keywords" content="" / 
 meta name="description" content="" / 
 title jQuery橙色右侧抽屉式在线客服代码_凡科 /title 
 link href="css/lrtk.css" rel="external nofollow" rel="stylesheet" type="text/css" / 
 script type="text/javascript" src="js/jquery-1.7.min.js" /script 
 script 
$(function() {
 // 悬浮窗口
 $(".yb_conct").hover(function() {
 $(".yb_conct").css("right", "5px");
 $(".yb_bar .yb_ercode").css('height', '200px');
 }, function() {
 $(".yb_conct").css("right", "-127px");
 $(".yb_bar .yb_ercode").css('height', '53px');
 // 返回顶部
 $(".yb_top").click(function() {
 $("html,body").animate({
 'scrollTop': '0px'
 }, 300)
 /script 
 /head 
 body 
 !-- 代码 开始 -- 
 div 
 div 
 li 返回顶部 /li 
 li 400-123-456 /li 
 a target="_blank" href="msgrd v=3 amp;uin= amp;site=qq amp;menu=yes amp;from=message amp;isappinstalled=0" rel="external nofollow" title="即刻发送您的需求" 在线咨询 /a 
 /li 
 li 微信二维码 br 
 img src="images/weixin.jpg" width="125" alt="关注你附近" /li 
 /ul 
 /div 
 /div 
 !-- 代码 结束 -- 
 div 
 p 使用方法: /p 
 p 1、在head区域引入样式表文件lrtk.css /p p 2、在head区域引入jquery.js和js代码 /p p 3、在你的网页中加入 !-- 代码 开始 -- !-- 代码 结束 -- 注释区域代码 /p p 4、QQ号码和电话号码,二维码图片修改成你自己的就可以了。 /p /p 
 p /p 
 /div 
 /body 
 /html 

其中CSS样式表代码:

@charset "utf-8";
/*-----------------初始化---------------------*/
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
a{text-decoration:none;color:#333;}
body{color:#333;font-family:'Microsoft YaHei', Verdana, Arial, Helvetica, sans-serif;line-height:20px;overflow-x:hidden;width:100%;height:2000px;font-size:14px;}
.clear:after{content:'\20';display:block;height:0;clear:both;visibility:hidden;}
/*固定的悬浮窗*/
.yb_conct{position:fixed;z-index:9999999;top:200px;right:-127px;cursor:pointer;transition:all .3s ease;}
.yb_bar ul li{width:180px;height:53px;font:16px/53px 'Microsoft YaHei';color:#fff;text-indent:54px;margin-bottom:3px;border-radius:3px;transition:all .5s ease;overflow:hidden;}
.yb_bar .yb_top{background:#ff4a00 url(../images/rightbar.png) no-repeat 0 0;}
.yb_bar .yb_phone{background:#ff4a00 url(../images/rightbar.png) no-repeat 0 -57px;}
.yb_bar .yb_QQ{text-indent:0;background:#ff4a00 url(../images/rightbar.png) no-repeat 0 -113px;}
.yb_bar .yb_ercode{background:#ff4a00 url(../images/rightbar.png) no-repeat 0 -169px;}
.hd_qr{padding:0 29px 25px 29px;}
.yb_QQ a{display:block;text-indent:54px;width:100%;height:100%;color:#fff;}

jquery-1.7.min.js

/*! jQuery v1. | /license */
(function(a,b){function cA(a){return f.isWindow(a) a:a.nodeType===9 a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f(" "+a+" ").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"),cn...height=0),b.);if(!co||!cn.createElement)co=(cn.contentWindow||cn.contentDocument).document,co.write((c.compatMode==="CSS1Compat" " !doctype html ":"")+" html body "),co.close();d=co.createElement(a),co.body.appendChild(d),e=f.css(d,"display"),b.)}cm[a]=e}return cm[a]}function cw(a,b){var c={};f.each(cs.concat.apply([],cs.slice(0,b)),function(){c[this]=a});return c}function cv(){ct=b}function cu(){setTimeout(cv,0);return ct=f.now()}function cl(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ck(){try{return new a.XMLHttpRequest}catch(b){}}function ce(a,c){a.dataFilter (c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g g++){if(g===1)for(h in a.converters)typeof h=="string" (e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*" l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0 n=p:p===!0 (n=o);break}}}}!n !p f.error("No conversion from "+m.replace(" "," to ")),n!==!0 (c=n n(c):p(o(c)))}}return c}function cd(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d (c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b (h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i] e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0] f.unshift(j);return d[j]}}(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bG.test(a) d(a,e):cc(a+"["+(typeof e=="object"||f.isArray(e) b:"")+"]",e,c,d)});else if(!c b!=null typeof b=="object")for(var e (a+"["+e+"]",b[e],c,d);else d(a,b)}function cb(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b ((g[d] a:e||(e={}))[d]=c[d]);e f.extend(!0,a,e)}function ca(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h h.length:0,k=a===bV,l;for(;i j (k||!l);i++)l=h[i](c,d,e),typeof l=="string" (!k||g[l] l=b:(c.dataTypes.unshift(l),l=ca(a,c,d,e,l,g)));(k||!l) !g["*"] (l=ca(a,c,d,e,"*",g));return l}function b_(a){return function(b,c){typeof b!="string" (c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bR),e=0,g=d.length,h,i,j;for(;e e++)h=d[e],j=/^\+/.test(h),j (h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j "unshift":"push"](c)}}}function bE(a,b,c){var d=b==="width" a.offsetWidth:a.offsetHeight,e=b==="width" bz:bA;if(d 0){c!=="border" f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin" d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bB(a,b,b);if(d 0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding" (d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin" (d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function br(a,b){b.src f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bi,"/*$0*/")),b.parentNode b.parentNode.removeChild(b)}function bq(a){var b=(a.nodeName||"").toLowerCase();b==="input" bp(a):b!=="script" typeof a.getElementsByTagName!="undefined" f.grep(a.getElementsByTagName("input"),bp)}function bp(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bo(a){return typeof a.getElementsByTagName!="undefined" a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined" a.querySelectorAll("*"):[]}function bn(a,b){var c;if(b.nodeType===1){b.clearAttributes b.clearAttributes(),b.mergeAttributes b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox" a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked (b.defaultChecked=b.checked=a.checked),b.value!==a.value (b.value=a.value);b.removeAttribute(f.expando)}}function bm(a,b){if(b.nodeType===1 !!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d d++)f.event.add(b,c+(i[c][d].namespace ".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data (h.data=f.extend({},h.data))}}function bl(a,b){return f.nodeName(a,"table") a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function X(a){var b=Y.split(" "),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function W(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b) =0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(){return!0}function M(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h (c==="queue"||!f._data(a,e)) (c==="mark"||!f._data(a,g)) setTimeout(function(){!f._data(a,e) !f._data(a,g) (f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data" f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true" !0:d==="false" !1:d==="null" null:f.isNumeric(d) parseFloat(d):j.test(d) f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^( :[^# ]*( [\w\W]+ )[^ ]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^ (\w+)\s*\/ ( : \/\1 ) $/,o=/^[\],:{}\s]*$/,p=/\\( :["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|- \d+( :\.\d*) ( :[eE][+\-] \d+) /g,r=/( :^|:|,)( :\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)( :.*version) [ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)( :.* rv:([\w.]+)) /,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body" !d c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!==" "||a.charAt(a.length-1)!==" "||a.length 3 g=i.exec(a):g=[null,a,null];if(g (g[1]||!d)){if(g[1]){d=d instanceof e d[0]:d,k=d d.ownerDocument||d:c,j=n.exec(a),j e.isPlainObject(d) (a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery (d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b (this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null this.toArray():a 0 this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a) F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find" d.selector=this.selector+(this.selector " ":"")+c:b (d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),B.add(a);return this},eq:function(a){return a===-1 this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean" (l=i,i=arguments[1]||{},j=2),typeof i!="object" !e.isFunction(i) (i={}),k===j (i=this,--j);for(;j j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l f (e.isPlainObject(f)||(g=e.isArray(f))) (g (g=!1,h=d e.isArray(d) d:[]):h=d e.isPlainObject(d) d:{},i[c]=e.extend(l,h,f)):f!==b (i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e (a.$=g),b a.jQuery===e (a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0 !--e.readyWait||a!==!0 !e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0 --e.readyWait 0)return;B.fireWith(c,[e]),e.fn.trigger e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll b K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a typeof a=="object" "setInterval"in a},isNumeric:function(a){return a!=null m.test(a) !isNaN(a)},type:function(a){return a==null String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor !E.call(a,"constructor") !E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser (f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length) e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b j.test(b) (a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g )if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g )if(c.call(a[g],g,a[g++])===!1)break;return a},trim:H function(a){return a==null "":H.call(a)}:function(a){return a==null "":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a) F.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(I)return I.call(b,a,c);d=b.length,c=c c 0 Math.max(0,d+c):c:0;for(;c c++)if(c in b b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f f++)e=!!b(a[f],f),c!==e d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b typeof j=="number" (j 0 a[0] a[j-1]||j===0||e.isArray(a));if(k)for(;i i++)f=c(a[i],i,d),f!=null (h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null (h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g=function(){return a.apply(c,f.concat(G.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h f e.isFunction(d);for(var k=0;k k++)g(a[k],c,f d.call(a[k],k,g(a[k],c)):d,h);return a}return i g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible") 0 v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.super "Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser (e.browser[A.browser]=!0,e.browser.version=A.version),e.browser.webkit (e.browser.safari=!0),j.test(" ") (k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener C=function(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent (C=function(){c.readyState==="complete" (c.detachEvent("onreadystatechange",C),e.ready())}),typeof define=="function" define.amd define.amd.jQuery define("jquery",[],function(){return e});return e}(),g={};f.Callbacks=function(a){a=a g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d d++)g=b[d],h=f.type(g),h==="array" m(g):h==="function" (!a.unique||!o.has(g)) c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c l l++)if(c[l].apply(b,f)===!1 a.stopOnFalse){e=!0;break}i=!1,c (a.once e===!0 o.disable():c=[]:d d.length (e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i k=c.length:e e!==!0 (j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d d++)for(var f=0;f c.length;f++)if(b[d]===c[f]){i f =k (k--,f =l l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0) o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d (i a.once||d.push([b,c]):(!a.once||!e) n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){return i.done.apply(i,arguments).fail.apply(i,arguments)},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c) i[a](function(){g=c.apply(this,arguments),g f.isFunction(g.promise) g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length 1 i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length 1 i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d =1 a f.isFunction(a.promise) a:f.Deferred(),k=j.promise();if(d 1){for(;c c++)b[c] b[c].promise f.isFunction(b[c].promise) b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a j.resolveWith(j,d [a]:[]);return k}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML=" link/ table /table a href='/a' a /a input type='checkbox'/ nav /nav ",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,unknownElems:!!a.getElementsByTagName("nav").length,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",enctype:!!c.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener a.attachEvent a.fireEvent (a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.lastChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m "div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m f.extend(p,{position:"absolute",left:"-999px",top:"-999px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style (a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML=" div /div ",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML=" table tr td /td td t /td /tr /table ",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u q[0].offsetHeight===0,a.innerHTML="",c.defaultView c.defaultView.getComputedStyle (j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;f(function(){var a,b,d,e,g,h,i=1,j="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",n="style='"+j+"border:5px solid #000;padding:0;'",p=" div "+n+" div /div /div "+" table "+n+" cellpadding='0' cellspacing='0' "+" tr td /td /tr /table m=c.getElementsByTagName("body")[0];!m||(a=c.createElement("div"),a.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+i+"px",m.insertBefore(a,m.firstChild),o=c.createElement("div"),o.style.cssText=j+l,o.innerHTML=p,a.appendChild(o),b=o.firstChild,d=b.firstChild,g=b.nextSibling.firstChild.firstChild,h={doesNotAddBorder:d.offsetTop!==5,doesAddBorderForTableAndCells:g.offsetTop===5},d.style.position="fixed",d.style.top="20px",h.fixedPosition=d.offsetTop===20||d.offsetTop===15,d.style.position=d.style.top="",b.style.overflow="hidden",b.style.position="relative",h.subtractsBorderForOverflowNotVisible=d.offsetTop===-5,h.doesNotIncludeMarginInBodyOffset=m.offsetTop!==i,m.removeChild(a),o=a=null,f.extend(k,h))}),o.innerHTML="",n.removeChild(o),o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var j=/^( :\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-",applet:!0},hasData:function(a){a=a.nodeType f.cache[a[f.expando]]:a[f.expando];return!!a !m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l f.cache:a,n=l a[f.expando]:a[f.expando] f.expando,o=c==="events";if((!n||!m[n]||!o !e !m[n].data) k d===b)return;n||(l a[f.expando]=n=++f.uuid:n=f.expando),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b (h[f.camelCase(c)]=d);if(o !h[c])return g.events;k (i=h[c],i==null (i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i f.cache:a,k=i a[f.expando]:f.expando;if(!j[k])return;if(b){d=c j[k]:j[k].data;if(d){f.isArray(b) b=b:b in d b=[b]:(b=f.camelCase(b),b in d b=[b]:b=b.split(" "));for(e=0,g=b.length;e e++)delete d[b[e]];if(!(c m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval delete j[k]:j[k]=null,i (f.support.deleteExpando delete a[f.expando]:a.removeAttribute a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0 a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1 !f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i i++)g=e[i].name,g.indexOf("data-")===0 (g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1] "."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b this.length (h=f.data(this[0],a),h=l(this[0],a,h));return h===b d[1] this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a (b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0 (c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a 0:(f._data(b,d)||1)-1;e f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c (!d||f.isArray(c) d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress" (d=c.shift()),d (b==="fx" c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string" (c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx" b[0]!=="inprogress" f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string" (c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0)) f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^( :button|input)$/i,s=/^( :button|input|object|select|textarea)$/i,t=/^a( :rea) $/i,u=/^( :autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c c++){e=this[c];if(e.nodeType===1)if(!e.className b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d d++){g=this[d];if(g.nodeType===1 g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d i:!h.hasClass(e),h[i "addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className f._data(this,"__className__",this.className),this.className=this.className||a===!1 "":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c c++)if(this[c].nodeType===1 (" "+this[c].className+" ").replace(o," ").indexOf(b) -1)return!0;return!1},val:function(a){var c,d,e,g=this[0];if(!arguments.length){if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c "get"in c (d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string" d.replace(q,""):d==null "":d}return b}e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e h=a.call(this,d,g.val()):h=a,h==null h="":typeof h=="number" h+="":f.isArray(h) (h=f.map(h,function(a){return a==null "":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g 0)return null;c=j g:0,d=j g+1:i.length;for(;c c++){e=i[c];if(e.selected (f.support.optDisabled !e.disabled:e.getAttribute("disabled")===null) (!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j !h.length i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c) =0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!a||j===3||j===8||j===2)return b;if(e c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i (c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c) x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(h "set"in h i (g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h "get"in h i (g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null b:g},removeAttr:function(a,b){var c,d,e,g,h=0;if(a.nodeType===1){d=(b||"").split(p),g=d.length;for(;h h++)e=d[h].toLowerCase(),c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v e:c),u.test(e) c in a (a[c]=!1)}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName) a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue b==="radio" f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c (a.value=c);return b}}},value:{get:function(a,b){if(w f.nodeName(a,"button"))return w.get(a,b);return b in a a.value:null},set:function(a,b,c){if(w f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return b;h=i!==1||!f.isXMLDoc(a),h (c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b g "set"in g (e=g.set(a,d,c))!==b e:a[c]=d:g "get"in g (e=g.get(a,c))!==null e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c c.specified parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName) a.href 0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean" (d=a.getAttributeNode(c)) d.nodeValue!==!1 c.toLowerCase():b},set:function(a,b,c){var d;b===!1 f.removeAttr(a,c):(d=f.propFix[c]||c,d in a (a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d (y[c] d.nodeValue!=="":d.specified) d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b==="" (b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null b:d}})}),f.support.style||(f.attrHooks. ""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b (b.selectedIndex,b.parentNode b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null "on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b) =0}})});var z=/\.(.*)$/,A=/^( :textarea|input|select)$/i,B=/\./g,C=/ /g,D=/[^\w\s.|`]/g,E=/^([^\.]*) ( :\.(.+)) $/,F=/\bhover(\.\S+) /,G=/^key/,H=/^( :mouse|contextmenu)|click/,I=/^(\w*)( :#([\w\-]+)) ( :\.([\w\-]+)) $/,J=function(a){var b=I.exec(a);b 
(Serialize||(bj._default=[1,"div div "," /div "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object" a!==b)return this.empty().append((this[0] this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1 this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1 this.insertBefore(a,this.firstChild)})},before:function(){if(this[0] this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0] this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after"
,(g f(" div ").append(c.replace(bP,"")).find(g):c)),d i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements f.makeArray(this.elements):this}).filter(function(){return this.name !this.disabled (this.checked||bQ.test(this.nodeName)||bK.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null null:f.isArray(c) f.map(c,function(a,c){return{name:b.name,value:a.replace(bH,"\r\n")}}):{name:b.name,value:c.replace(bH,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d) (g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:ess:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b cb(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),cb(a,b);return a},ajaxSettings:{url:bX,isLocal:bL.test(bY[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bZ},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:b_(bV),ajaxTransport:b_(bW),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q clearTimeout(q),p=b,n=m||"",v.readyState=a 0 4:0;var o,r,u,w=c,x=l cd(d,v,l):b,y,z;if(a =200 a 300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=ce(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a 0 (a=0)}v.status=a,v.statusText=""+(c||w),o h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t g.trigger("ajax"+(o "Success":"Error"),[v,d,o r:u]),i.fireWith(e,[v,w]),t (g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object" (c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d (e.nodeType||e instanceof f) f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2 n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bJ.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p p.abort(a),w(0,a);return this}};h.promise(v),ess=v.done,v.error=v.plete=i.add,v.statusCode=function(a){if(a){var b;if(s 2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bI,"").replace(bN,bY[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bR),d.crossDomain==null (r=bT.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bY[1] r[2]==bY[2] (r[3]||(r[1]==="http:" 80:443))==(bY[3]||(bY[1]==="http:" 80:443)))),d.data d.processData typeof d.data!="string" (d.data=f.param(d.data,d.traditional)),ca(bV,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bM.test(d.type),t f.active++===0 f.event.trigger("ajaxStart");if(!d.hasContent){d.data (d.url+=(bO.test(d.url) " ":" ")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bS,"$1_="+x);d.url=y+(y===d.url (bO.test(d.url) " ":" ")+"_="+x:"")}}(d.data d.hasContent d.contentType!==!1||c.contentType) v.setRequestHeader("Content-Type",d.contentType),d.ifModified (k=k||d.url,f.lastModified[k] v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k] v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0] d.accepts[d.dataTypes[0]] d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*" ", "+bZ+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend (d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u ess:1,plete:1})v[u](d[u]);p=ca(bW,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t g.trigger("ajaxSend",[v,d]),d.async d.timeout 0 (q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s 2 w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b) b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b (c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery !f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g (g,a[g],c,e);return d.join(" ").replace(bF,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cf=f.now(),cg=/(\=)\ ( |$)|\ \ f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cf++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded" typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1 (cg.test(b.url)||e cg.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback) b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1 (j=j.replace(cg,l),b.url===j (e (k=k.replace(cg,l)),b.data===k (j+=(/\ /.test(j) " ":" ")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g f.isFunction(i) a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b (a.cache=!1),a.crossDomain (a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset (d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/plete/.test(d.readyState))d.onload=d.onreadystatechange=null,e d.parentNode e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d d.onload(0,1)}}}});var ch=a.ActiveXObject function(){for(var a in cj)cj[a](0,1)}:!1,ci=0,cj;f.ajaxSettings.xhr=a.ActiveXObject function(){return!this.isLocal ck()||cl()}:ck,function(a){f.extend(f.support,{ajax:!!a,cors:!!a "withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType h.overrideMimeType h.overrideMimeType(c.mimeType),!c.crossDomain !e["X-Requested-With"] (e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d (e||h.readyState===4)){d=b,i (h.onreadystatechange=f.noop,ch delete cj[i]);if(e)h.readyState!==4 h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n n.documentElement (m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j c.isLocal !c.crossDomain j=m.text 200:404:j===1223 (j=204)}}}catch(p){e||g(-1,p)}m g(j,k,m,l)},!c.async||h.readyState===4 d():(i=++ci,ch (cj||(cj={},f(a).unload(ch)),cj[i]=d),h.onreadystatechange=d)},abort:function(){d d(0,1)}}}});var cm={},cn,co,cp=/^( :toggle|show|hide)$/,cq=/^([+\-]=) ([\d+.\-]+)([a-z%]*)$/i,cr,cs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ct;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cw("show",3),a,b,c);for(var g=0,h=this.length;g g++)d=this[g],d.style (e=d.style.display,!f._data(d,"olddisplay") e==="none" (e=d.style.display=""),e==="" f.css(d,"display")==="none" f._data(d,"olddisplay",cx(d.nodeName)));for(g=0;g g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cw("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g g++)d=this[g],d.style (e=f.css(d,"display"),e!=="none" !f._data(d,"olddisplay") f._data(d,"olddisplay",e));for(g=0;g g++)this[g].style (this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a) f.isFunction(b) this._toggle.apply(this,arguments):a==null||d this.each(function(){var b=d a:f(this).is(":hidden");f(this)[b "show":"hide"]()}):this.animate(cw("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1 f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g (a[g]=a[i],delete a[i]),h=a[g],f.isArray(h) (b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing b.specialEasing[g]||b.easing||"swing";if(h==="hide" d||h==="show" !d)plete.call(this);c (g==="height"||g==="width") (b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline" f.css(this,"float")==="none" (!f.support.inlineBlockNeedsLayout||cx(this.nodeName)==="inline" this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null (this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cp.test(h) (o=f._data(this,"toggle"+i)||(h==="toggle" d "show":"hide":0),o (f._data(this,"toggle"+i,o==="show" "hide":"show"),j[o]()):j[h]()):(k=cq.exec(h),l=j.cur(),k (m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i] "":"px"),n!=="px" (f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1] (m=(k[1]==="-=" -1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.plete,[!1]);a=f.extend({},a);return e.queue===!1 this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string" (d=c,c=a,a=b),c a!==!1 this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b].stop b.indexOf(".run")===b.length-4 h(this,g,b);else g[b=a+".run"] g[b].stop h(this,g,b);for(b=e.length;b--;)e[b].elem===this (a==null||e[b].queue===a) (d e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c) f.dequeue(this,a)})}}),f.each({slideDown:cw("show",1),slideUp:cw("hide",1),slideToggle:cw("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a typeof a=="object" f.extend({},a):{complete:c||!c b||f.isFunction(a) a,duration:a,easing:c b||b !f.isFunction(b) d.duration=f.fx.off 0:typeof d.duration=="number" d.duration:d.duration in f.fx.speeds f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.plete=function(a){f.isFunction(d.old) d.old.call(this),d.queue f.dequeue(this,d.queue):a!==!1 f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null (!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b)) !b||b==="auto" 0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=ct||cu(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop] "":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide f._data(e.elem,"fxshow"+e.prop)===b f._data(e.elem,"fxshow"+e.prop,e.start)},h() f.timers.push(h) !cr (cr=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height" 1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=ct||cu(),g=!0,h=this.elem,i=this.options;if(a||e =i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0 (g=!1);if(g){i.overflow!=null !f.support.shrinkWrapBlocks f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);plete,d (i.complete=!1,d.call(h))}return!1}i.duration==Infinity this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c b.length;c++)a=b[c],!a() b[c]===a b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cr),cr=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style a.elem.style[a.prop]!=null a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now))}}),f.expr f.expr.filters (f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cy=/^t( :able|d|h)$/i,cz=/^( :body|html)$/i;"getBoundingClientRect"in c.documentElement f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c {top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cA(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode) b!==i b!==h){if(f.support.fixedPosition k.position==="fixed")break;c=j j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d (l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder (!f.support.doesAddBorderForTableAndCells||!cy.test(b.nodeName)) (l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible c.overflow!=="visible" (l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.support.fixedPosition k.position==="fixed" (l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset (b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static" (a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed") f.inArray("auto",[h,i]) -1,k={},l={},m,n;j (l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b) (b=b.call(a,c,g)),b.top!=null (k.top=b.top-g.top+m),b.left!=null (k.left=b.left-g.left+n),"using"in b b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cz.test(b[0].nodeName) {top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a !cz.test(a.nodeName) f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cA(e);return g "pageXOffset"in g g[a "pageYOffset":"pageXOffset"]:f.support.boxModel g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cA(this),g g.scrollTo(a f(g).scrollLeft():c,a c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a a.style parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b b.style parseFloat(f.css(b,d,a "margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return patMode==="CSS1Compat" g||h h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j) j:i}return this.css(d,typeof a=="string" a:a+"px")}}),a.jQuery=a.$=f})(window);

插件中用到的背景图和二维码为:

本次的脚本效果我们已经做了测试,大家在使用的时候还有任何不明白的可以在下方留言。