bootstrap.native
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "bootstrap.native", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"homepage": "http://thednp.github.io/bootstrap.native/", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -131,4 +131,4 @@ // Native Javascript for Bootstrap 4 v2.0.6 | © dnp_theme | MIT-License | ||
// tooltip / popover | ||
fixedTop = '.fixed-top', | ||
fixedBottom = '.fixed-bottom', | ||
fixedTop = 'fixed-top', | ||
fixedBottom = 'fixed-bottom', | ||
mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ], | ||
@@ -877,3 +877,3 @@ tipPositions = /\b(top|bottom|left|top)+/, | ||
// also find fixed-top / fixed-bottom items | ||
fixedItems = getElementsByClassName(doc,'fixed-top').concat(getElementsByClassName(doc,'fixed-bottom')), | ||
fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)), | ||
@@ -1125,4 +1125,4 @@ | ||
// maybe the element is inside a fixed navbar | ||
navbarFixedTop = getClosest(element,fixedTop), | ||
navbarFixedBottom = getClosest(element,fixedBottom); | ||
navbarFixedTop = getClosest(element,'.'+fixedTop), | ||
navbarFixedBottom = getClosest(element,'.'+fixedBottom); | ||
@@ -1522,4 +1522,4 @@ // set options | ||
// maybe the element is inside a fixed navbar | ||
navbarFixedTop = getClosest(element,fixedTop), | ||
navbarFixedBottom = getClosest(element,fixedBottom); | ||
navbarFixedTop = getClosest(element,'.'+fixedTop), | ||
navbarFixedBottom = getClosest(element,'.'+fixedBottom); | ||
@@ -1526,0 +1526,0 @@ // set options |
// Native Javascript for Bootstrap 4 v2.0.6 | © dnp_theme | MIT-License | ||
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Alert",c="Button",u="Carousel",s="Collapse",d="Dropdown",f="Modal",h="Popover",p="ScrollSpy",m="Tab",v="Tooltip",g="data-backdrop",b="data-keyboard",T="data-target",x="data-interval",y="data-height",w="data-pause",C="data-original-title",I="data-dismissible",A="data-trigger",D="data-animation",L="data-container",E="data-placement",S="data-delay",k="backdrop",M="keyboard",B="delay",H="content",N="target",W="interval",F="pause",P="animation",$="placement",j="container",O="offsetTop",R="offsetLeft",q="scrollTop",z="scrollLeft",U="clientWidth",X="clientHeight",Y="offsetWidth",G="offsetHeight",J="innerWidth",K="innerHeight",Q="scrollHeight",V="height",Z="aria-expanded",_="aria-hidden",tt="click",et="hover",nt="keydown",it="resize",ot="scroll",at="show",lt="shown",rt="hide",ct="hidden",ut="close",st="closed",dt="slid",ft="slide",ht="change",pt="getAttribute",mt="setAttribute",vt="hasAttribute",gt="getElementsByTagName",bt="getBoundingClientRect",Tt="getElementsByClassName",xt="indexOf",yt="parentNode",wt="length",Ct="toLowerCase",It="Transition",At="Webkit",Dt="style",Lt="active",Et="show",St="collapsing",kt="left",Mt="right",Bt="top",Ht="bottom",Nt=".fixed-top",Wt=".fixed-bottom",Ft="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Pt=/\b(top|bottom|left|top)+/,$t=At+It in e[Dt]||It[Ct]()in e[Dt],jt=At+It in e[Dt]?At[Ct]()+It+"End":It[Ct]()+"end",Ot=function(t){t.focus?t.focus():t.setActive()},Rt=function(t,e){t.classList.add(e)},qt=function(t,e){t.classList.remove(e)},zt=function(t,e){return t.classList.contains(e)},Ut=function(t,e){return[].slice.call(t[Tt](e))},Xt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Yt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[yt])if("."===n){if(null!==Xt(e,t[yt])&&zt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Gt=function(t,e,n){t.addEventListener(e,n,!1)},Jt=function(t,e,n){t.removeEventListener(e,n,!1)},Kt=function(t,e,n){Gt(t,e,function i(o){n(o),Jt(t,e,i)})},Qt=function(t,e){$t?Kt(t,jt,function(t){e(t)}):e()},Vt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Zt=document[gt]("*"),_t=function(t,e,n,i){for(var o=i&&i[wt]?i:Zt,a=0;a<o[wt];a++){var l=o[a][pt](n),r=t.replace(/spy/i,"")[Ct]();(l&&t===c&&l[xt](r)>-1||l===r)&&new e(o[a])}},te=/^\#(.)+$/,ee=function(e){var n=e&&t.getComputedStyle(e),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[X]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ne=function(t){for(var e=0,n=0,i=t.children[wt];n<i;n++)e+=ee(t.children[n]);return e},ie=function(n){var i=n[bt]();return i[Bt]>=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[X])&&i[Mt]<=(t[J]||e[U])},oe=function(){return{y:t.pageYOffset||e[q],x:t.pageXOffset||e[z]}},ae=function(t,e,i,o){var a=t[bt](),l=o===n?oe():{x:o[R]+o[z],y:o[O]+o[q]},r={w:a[Mt]-a[kt],h:a[Ht]-a[Bt]},c={w:e[Y],h:e[G]};i===Bt?(e[Dt][Bt]=a[Bt]+l.y-c.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===Ht?(e[Dt][Bt]=a[Bt]+l.y+r.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===kt?(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x-c.w+"px"):i===Mt&&(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x+r.w+"px"),e.className[xt](i)===-1&&(e.className=e.className.replace(Pt,i))},le=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},re=function(t){t=Xt(t);var e=this,n="alert",i=Yt(t,"."+n),a=function(a){var l=a[N];l=l[vt](o)?l:l[yt],l&&l[vt](o)&&(i=Yt(l,"."+n),t=Xt("["+o+'="'+n+'"]',i),(t===l||t===l[yt])&&i&&e.close())},l=function(){Vt.call(i,st,n),Jt(t,tt,a),i[yt].removeChild(i)};this.close=function(){i&&t&&zt(i,Et)&&(Vt.call(i,ut,n),qt(i,Et),function(){i&&Qt(i,l)}())},r in t||Gt(t,tt,a),t[r]=this};_t(r,re,o);var ce=function(t){t=Xt(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[N][yt],c=l[N].tagName===o?l[N]:r.tagName===o?r:null;if(c){var u=this,s=Ut(u,"btn"),d=c[gt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?(qt(c,Lt),d[pt](i),d.removeAttribute(i),d[i]=!1):(Rt(c,Lt),d[pt](i),d[mt](i,i),d[i]=!0),e||(e=!0,Vt.call(d,ht,n),Vt.call(t,ht,n))),"radio"===d.type&&!e&&!d[i]){Rt(c,Lt),d[mt](i,i),d[i]=!0,Vt.call(d,ht,n),Vt.call(t,ht,n),e=!0;for(var f=0,h=s[wt];f<h;f++){var p=s[f],m=p[gt](a)[0];p!==c&&zt(p,Lt)&&(qt(p,Lt),m.removeAttribute(i),m[i]=!1,Vt.call(m,ht,n))}}setTimeout(function(){e=!1},50)}}};zt(t,"btn-group")&&(c in t||Gt(t,tt,l),t[c]=this)};_t(c,ce,i);var ue=function(e,n){e=Xt(e),n=n||{};var i="false"!==e[pt](x)&&(parseInt(e[pt](x))||5e3),o=e[pt](w)===et||!1,a="true"===e[pt](b)||!1,l="carousel",r="paused",c="direction",s="carousel-item",d="data-slide-to";this[M]=n[M]===!0||a,this[F]=!(n[F]!==et&&!o)&&et,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var f=this,h=e.index=0,p=e.timer=0,m=!1,v=Ut(e,s),g=v[wt],T=this[c]=kt,y=Ut(e,l+"-control-prev")[0],C=Ut(e,l+"-control-next")[0],I=Xt("."+l+"-indicators",e),A=I[gt]("LI"),D=function(){f[W]===!1||zt(e,r)||(Rt(e,r),!m&&clearInterval(p))},L=function(){f[W]!==!1&&zt(e,r)&&(qt(e,r),!m&&clearInterval(p),!m&&f.cycle())},E=function(t){if(t.preventDefault(),!m){var e=t[N],n=f.getActiveIndex();if(!e||zt(e,Lt)||!e[pt](d))return!1;h=parseInt(e[pt](d),10),n<h||0===n&&h===g-1?T=f[c]=kt:(n>h||n===g-1&&0===h)&&(T=f[c]=Mt),f.slideTo(h)}},S=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===C?(h++,T=f[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===y&&(h--,T=f[c]=Mt,0===h?h=0:h<0&&(h=g-1)),f.slideTo(h)}},k=function(t){if(!m){switch(t.which){case 39:h++,T=f[c]=kt,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,T=f[c]=Mt,0==h?h=0:h<0&&(h=g-1);break;default:return}f.slideTo(h)}},B=function(t){for(var e=0,n=A[wt];e<n;e++)qt(A[e],Lt);A[t]&&Rt(A[t],Lt)};this.cycle=function(){T=this[c]=kt,p=setInterval(function(){h++,h=h===g?0:h,f.slideTo(h)},this[W])},this.slideTo=function(n){var i=this.getActiveIndex(),o=T===kt?"next":"prev";Vt.call(e,ft,l,v[n]),m=!0,clearInterval(p),B(n),$t&&zt(e,"slide")&&(t.getComputedStyle(v[n])[It[Ct]()]||t.getComputedStyle(v[n])[At[Ct]()+It]||t.getComputedStyle(v[n])[At+It+"Duration"])?(Rt(v[n],s+"-"+o),v[n][Y],Rt(v[n],s+"-"+T),Rt(v[i],s+"-"+T),Kt(v[i],jt,function(t){var a=t[N]!==v[i]?1e3*t.elapsedTime:0;setTimeout(function(){m=!1,Rt(v[n],Lt),qt(v[i],Lt),qt(v[n],s+"-"+o),qt(v[n],s+"-"+T),qt(v[i],s+"-"+T),Vt.call(e,dt,l,v[n]),document.hidden||!f[W]||zt(e,r)||f.cycle()},a)})):(Rt(v[n],Lt),v[n][Y],qt(v[i],Lt),setTimeout(function(){m=!1,f[W]&&!zt(e,r)&&f.cycle(),Vt.call(e,dt,l,v[n])},100))},this.getActiveIndex=function(){return v[xt](Ut(e,s+" active")[0])||0},u in e||(this[F]&&this[W]&&(Gt(e,Ft[0],D),Gt(e,Ft[1],L),Gt(e,"touchstart",D),Gt(e,"touchend",L)),C&&Gt(C,tt,S),y&&Gt(y,tt,S),I&&Gt(I,tt,E,!1),this[M]===!0&&Gt(t,nt,k,!1)),this.getActiveIndex()<0&&(v[wt]&&Rt(v[0],Lt),A[wt]&&B(0)),this[W]&&this.cycle(),e[u]=this};_t(u,ue,l);var se=function(t,e){t=Xt(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[pt]("data-parent"),r="collapse",c="collapsed",u=function(t){Vt.call(t,at,r),a=!0,Rt(t,St),Rt(t,Et),setTimeout(function(){t[Dt][V]=ne(t)+"px",function(){Qt(t,function(){a=!1,t[mt](Z,"true"),qt(t,St),t[Dt][V]="",Vt.call(t,lt,r)})}()},20)},d=function(t){Vt.call(t,rt,r),a=!0,t[Dt][V]=ne(t)+"px",setTimeout(function(){Rt(t,St),t[Dt][V]="0px",function(){Qt(t,function(){a=!1,t[mt](Z,"false"),qt(t,St),qt(t,Et),t[Dt][V]="",Vt.call(t,ct,r)})}()},20)},f=function(){var e=t.href&&t[pt]("href"),n=t[pt](T),i=e||n&&te.test(n)&&n;return i&&Xt(i)};this.toggle=function(t){t.preventDefault(),a||(zt(i,Et)?o.hide():o.show())},this.hide=function(){d(i),Rt(t,c)},this.show=function(){if(u(i),qt(t,c),null!==n)for(var e=Ut(n,r+" "+Et),o=0,a=e[wt];o<a;o++)e[o]!==i&&d(e[o])},s in t||Gt(t,tt,this.toggle),i=f(),n=Xt(e.parent)||l&&Yt(t,l),t[s]=this};_t(s,se,i);var de=function(t,e){t=Xt(t),this.persist=e===!0||"true"===t[pt]("data-persist")||!1;var n=this,o=!1,a=t[yt],l="dropdown",r=null,c=Xt(".dropdown-menu",a),u=[].slice.call(c[gt]("*")),s=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,p())},f=function(e){var l,s=e[N];if(l=1!==s.nodeType&&(s[pt](i)||s[yt][pt](i)),s===t||s===a||s[yt]===t)e.preventDefault(),r=t,n.toggle();else if(o){if((s===c||u&&u[xt](s)>-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(s.href)||s[yt]&&/\#$/.test(s[yt].href))&&e.preventDefault()},h=function(){Vt.call(a,at,l,r),Rt(a,Et),c[mt](Z,!0),Vt.call(a,lt,l,r),Gt(document,nt,s),o=!0},p=function(){Vt.call(a,rt,l,r),qt(a,Et),c[mt](Z,!1),Vt.call(a,ct,l,r),Jt(document,nt,s),o=!1};this.toggle=function(){zt(a,Et)&&o?p():h()},d in t||(c[mt]("tabindex","0"),Gt(document,tt,f)),t[d]=this};_t(d,de,i);var fe=function(i,a){i=Xt(i);var l=i[pt](T)||i[pt]("href"),r=Xt(l),c=zt(i,"modal")?i:r,u="modal",s="static",d="paddingLeft",h="paddingRight",p="modal-backdrop";if(zt(i,"modal")&&(i=null),c){a=a||{},this[M]=a[M]!==!1&&"false"!==c[pt](b),this[k]=a[k]!==s&&c[pt](g)!==s||s,this[k]=a[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=a[H];var m,v,x,y,w=this,C=this.open=!1,I=null,A=Ut(e,"fixed-top").concat(Ut(e,"fixed-bottom")),D=function(){var n=e[bt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(m&&(n[Dt][h]=o+x+"px",A[wt]))for(var a=0;a<A[wt];a++)e=t.getComputedStyle(A[a])[h],A[a][Dt][h]=parseInt(e)+x+"px"},E=function(){if(n[Dt][h]="",A[wt])for(var t=0;t<A[wt];t++)A[t][Dt][h]=""},S=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[Y]-e[U],n.removeChild(e),t},B=function(){m=n[U]<D(),v=c[Q]>e[X],x=S()},W=function(){c[Dt][d]=!m&&v?x+"px":"",c[Dt][h]=m&&!v?x+"px":""},F=function(){c[Dt][d]="",c[Dt][h]=""},P=function(){var t=document.createElement("div");y=Xt("."+p),null===y&&(t[mt]("class",p+" fade"),y=t,n.appendChild(y))},$=function(){y=Xt("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){zt(c,Et)?Jt(document,nt,z):Gt(document,nt,z)},O=function(){zt(c,Et)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){zt(c,Et)?Jt(c,tt,G):Gt(c,tt,G)},q=function(t){var e=t[N];e=e[vt](T)||e[vt]("href")?e:e[yt],C||e!==i||zt(c,Et)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;w[M]&&27==e&&C&&w.hide()},G=function(t){var e=t[N];C&&(e[yt][pt](o)===u||e[pt](o)===u||e===c&&w[k]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&zt(c,Et)?this.hide():this.show()},this.show=function(){Vt.call(c,at,u,I);var t=Ut(document,u+" "+Et)[0];t&&t!==c&&t.modalTrigger[f].hide(),this[k]&&P(),y&&!zt(y,Et)&&setTimeout(function(){Rt(y,Et)},0),setTimeout(function(){c[Dt].display="block",B(),L(),W(),O(),R(),j(),Rt(n,u+"-open"),Rt(c,Et),c[mt](_,!1),Qt(c,function(){C=w.open=!0,Ot(c),Vt.call(c,lt,u,I)})},$t?150:0)},this.hide=function(){Vt.call(c,rt,u),y=Xt("."+p),qt(c,Et),c[mt](_,!0),!!y&&qt(y,Et),setTimeout(function(){Qt(c,function(){O(),R(),j(),c[Dt].display="",C=w.open=!1,i&&Ot(i),Vt.call(c,ct,u),setTimeout(function(){Ut(document,u+" "+Et)[0]||(F(),E(),qt(n,u+"-open"),$())},100)})},$t?150:0)},this.setContent=function(t){Xt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(B(),L(),W())},!i||f in i||Gt(i,tt,q),this[H]&&this.setContent(this[H]),!!i&&(i[f]=this)}};_t(f,fe,i);var he=function(e,i){e=Xt(e);var o=e[pt](A),a=e[pt](D),l=e[pt](E),r=e[pt](I),c=e[pt](S),u=e[pt](L),s="popover",d="template",f="trigger",p="class",m="div",v="fade",g="data-title",b="data-content",T="dismissible",x='<button type="button" class="close">×</button>',y=Yt(e,".modal"),w=Yt(e,Nt),C=Yt(e,Wt);i=i||{},this[d]=i[d]?i[d]:null,this[f]=i[f]?i[f]:o||et,this[P]=i[P]&&i[P]!==v?i[P]:a||v,this[$]=i[$]?i[$]:l||Bt,this[B]=parseInt(i[B]||c)||200,this[T]=!(!i[T]&&"true"!==r),this[j]=Xt(i[j])?Xt(i[j]):Xt(u)?Xt(u):w?w:C?C:y?y:n;var k=this,M=e[pt](g)||null,H=e[pt](b)||null;if(H||this[d]){var W=null,F=0,O=this[$],R=function(t){null!==W&&t[N]===Xt(".close",W)&&k.hide()},q=function(){k[j].removeChild(W),F=null,W=null},z=function(){if(M=e[pt](g),H=e[pt](b),W=document.createElement(m),null!==H&&null===k[d]){if(W[mt]("role","tooltip"),null!==M){var t=document.createElement("h3");t[mt](p,s+"-title"),t.innerHTML=k[T]?M+x:M,W.appendChild(t)}var n=document.createElement(m);n[mt](p,s+"-content"),n.innerHTML=k[T]&&null===M?H+x:H,W.appendChild(n)}else{var i=document.createElement(m);i.innerHTML=k[d],W.innerHTML=i.firstChild.innerHTML}k[j].appendChild(W),W[Dt].display="block",W[mt](p,s+" "+s+"-"+O+" "+k[P])},U=function(){!zt(W,Et)&&Rt(W,Et)},X=function(){ae(e,W,O,k[j]),ie(W)||(O=le(O),ae(e,W,O,k[j]))};this.toggle=function(){null===W?k.show():k.hide()},this.show=function(){clearTimeout(F),F=setTimeout(function(){null===W&&(O=k[$],z(),X(),U(),Vt.call(e,at,s),Qt(W,function(){Vt.call(e,lt,s)}))},20)},this.hide=function(){clearTimeout(F),F=setTimeout(function(){W&&null!==W&&zt(W,Et)&&(Vt.call(e,rt,s),qt(W,Et),Qt(W,function(){q(),Vt.call(e,ct,s)}))},k[B])},h in e||(k[f]===et?(Gt(e,Ft[0],k.show),k[T]||Gt(e,Ft[1],k.hide)):/^(click|focus)$/.test(k[f])&&(Gt(e,k[f],k.toggle),k[T]||Gt(e,"blur",k.hide)),k[T]&&Gt(document,tt,R),Gt(t,it,k.hide)),e[h]=k}};_t(h,he,i);var pe=function(e,n){e=Xt(e);var i=Xt(e[pt](T));if(n=n||{},n[N]||i){for(var o,a=n[N]&&Xt(n[N])||i,l=a&&a[gt]("A"),r=[],c=[],u=e[G]<e[Q]?e:t,s=u===t,d=0,f=l[wt];d<f;d++){var h=l[d][pt]("href"),m=h&&te.test(h)&&Xt(h);m&&(r.push(l[d]),c.push(m))}var v=function(t){var n=r[t],i=c[t],a=n[yt][yt],l=zt(a,"dropdown")&&a[gt]("A")[0],u=s&&i[bt](),d=zt(n,Lt)||!1,f=s?u[Bt]+o:i[O]-(c[t-1]?0:10),h=s?u[Ht]+o:c[t+1]?c[t+1][O]:e[Q],p=o>=f&&h>o;if(!d&&p)zt(n,Lt)||(Rt(n,Lt),d=!0,l&&!zt(l,Lt)&&Rt(l,Lt),Vt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!d||d&&p)return}else zt(n,Lt)&&(qt(n,Lt),d=!1,l&&zt(l,Lt)&&!Ut(n[yt],Lt).length&&qt(l,Lt))},g=function(){o=s?oe().y:e[q];for(var t=0,n=r[wt];t<n;t++)v(t)};this.refresh=function(){g()},p in e||(Gt(u,ot,this.refresh),Gt(t,it,this.refresh)),this.refresh(),e[p]=this}};_t(p,pe,a);var me=function(t,e){t=Xt(t);var n=t[pt](y),o="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!$t&&(e[a]||"true"===n);var r,c,u=this,s=Yt(t,".nav"),d=s&&Xt(".dropdown-toggle",s);if(s){var f=function(){var t,e=Ut(s,Lt);return 1!==e[wt]||zt(e[0][yt],"dropdown")?e[wt]>1&&(t=e[e[wt]-1]):t=e[0],t},h=function(){return Xt(f()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][yt],u.show()};this.show=function(){var e=Xt(r[pt]("href")),n=f(),i=h();n[l]&&r[l]||zt(r,Lt)||(n[l]=r[l]=!0,qt(n,Lt),Rt(r,Lt),d&&(zt(t[yt],"dropdown-menu")?zt(d,Lt)||Rt(d,Lt):zt(d,Lt)&&qt(d,Lt)),c&&(c[Dt][a]=ne(i)+"px"),function(){qt(i,Et),Vt.call(n,rt,o,r),function(){Qt(i,function(){qt(i,Lt),Rt(e,Lt),setTimeout(function(){Rt(e,Et),e[G],c&&Rt(c,St),function(){Vt.call(r,at,o,n),function(){c&&(c[Dt][a]=ne(e)+"px"),Vt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Qt(e,function(){Vt.call(r,lt,o,n),c?!function(){Qt(c,function(){setTimeout(function(){c[Dt][a]="",qt(c,St),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},m in t||Gt(t,tt,p),this[a]&&(c=h()[yt]),t[m]=this}};_t(m,me,i);var ve=function(t,e){t=Xt(t);var i=t[pt](D);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](L),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=Yt(t,".modal"),navbarFixedTop=Yt(t,Nt),navbarFixedBottom=Yt(t,Wt),e=e||{},this[P]=e[P]&&e[P]!==fade?e[P]:i||fade,this[$]=e[$]?e[$]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[j]=Xt(e[j])?Xt(e[j]):Xt(containerData)?Xt(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[$],r=null,c=t[pt](title)||t[pt](C);if(c){var u=function(){o[j].removeChild(r),r=null,a=null},s=function(){c=t[pt](title)||t[pt](C),r=document.createElement(div),r[mt]("role",component);var e=document.createElement(div);e[mt](classString,component+"-inner"),r.appendChild(e),e.innerHTML=c,o[j].appendChild(r),r[mt](classString,component+" "+component+"-"+l+" "+o[P])},d=function(){ae(t,r,l,o[j]),ie(r)||(l=le(l),ae(t,r,l,o[j]))},f=function(){!zt(r,Et)&&Rt(r,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[$],s(),d(),f(),Vt.call(t,at,component),Qt(r,function(){Vt.call(t,lt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&zt(r,Et)&&(Vt.call(t,rt,component),qt(r,Et),Qt(r,function(){u(),Vt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},v in t||(t[mt](C,c),t.removeAttribute(title),Gt(t,Ft[0],this.show),Gt(t,Ft[1],this.hide)),t[v]=this}};return _t(v,ve,i),{Alert:re,Button:ce,Carousel:ue,Collapse:se,Dropdown:de,Modal:fe,Popover:he,ScrollSpy:pe,Tab:me,Tooltip:ve}}); | ||
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Alert",c="Button",u="Carousel",s="Collapse",d="Dropdown",f="Modal",h="Popover",p="ScrollSpy",m="Tab",v="Tooltip",g="data-backdrop",T="data-keyboard",b="data-target",x="data-interval",y="data-height",w="data-pause",C="data-original-title",I="data-dismissible",A="data-trigger",D="data-animation",L="data-container",E="data-placement",S="data-delay",k="backdrop",M="keyboard",B="delay",H="content",N="target",W="interval",F="pause",P="animation",$="placement",j="container",O="offsetTop",R="offsetLeft",q="scrollTop",z="scrollLeft",U="clientWidth",X="clientHeight",Y="offsetWidth",G="offsetHeight",J="innerWidth",K="innerHeight",Q="scrollHeight",V="height",Z="aria-expanded",_="aria-hidden",tt="click",et="hover",nt="keydown",it="resize",ot="scroll",at="show",lt="shown",rt="hide",ct="hidden",ut="close",st="closed",dt="slid",ft="slide",ht="change",pt="getAttribute",mt="setAttribute",vt="hasAttribute",gt="getElementsByTagName",Tt="getBoundingClientRect",bt="getElementsByClassName",xt="indexOf",yt="parentNode",wt="length",Ct="toLowerCase",It="Transition",At="Webkit",Dt="style",Lt="active",Et="show",St="collapsing",kt="left",Mt="right",Bt="top",Ht="bottom",Nt="fixed-top",Wt="fixed-bottom",Ft="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Pt=/\b(top|bottom|left|top)+/,$t=At+It in e[Dt]||It[Ct]()in e[Dt],jt=At+It in e[Dt]?At[Ct]()+It+"End":It[Ct]()+"end",Ot=function(t){t.focus?t.focus():t.setActive()},Rt=function(t,e){t.classList.add(e)},qt=function(t,e){t.classList.remove(e)},zt=function(t,e){return t.classList.contains(e)},Ut=function(t,e){return[].slice.call(t[bt](e))},Xt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Yt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[yt])if("."===n){if(null!==Xt(e,t[yt])&&zt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Gt=function(t,e,n){t.addEventListener(e,n,!1)},Jt=function(t,e,n){t.removeEventListener(e,n,!1)},Kt=function(t,e,n){Gt(t,e,function i(o){n(o),Jt(t,e,i)})},Qt=function(t,e){$t?Kt(t,jt,function(t){e(t)}):e()},Vt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Zt=document[gt]("*"),_t=function(t,e,n,i){for(var o=i&&i[wt]?i:Zt,a=0;a<o[wt];a++){var l=o[a][pt](n),r=t.replace(/spy/i,"")[Ct]();(l&&t===c&&l[xt](r)>-1||l===r)&&new e(o[a])}},te=/^\#(.)+$/,ee=function(e){var n=e&&t.getComputedStyle(e),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[X]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ne=function(t){for(var e=0,n=0,i=t.children[wt];n<i;n++)e+=ee(t.children[n]);return e},ie=function(n){var i=n[Tt]();return i[Bt]>=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[X])&&i[Mt]<=(t[J]||e[U])},oe=function(){return{y:t.pageYOffset||e[q],x:t.pageXOffset||e[z]}},ae=function(t,e,i,o){var a=t[Tt](),l=o===n?oe():{x:o[R]+o[z],y:o[O]+o[q]},r={w:a[Mt]-a[kt],h:a[Ht]-a[Bt]},c={w:e[Y],h:e[G]};i===Bt?(e[Dt][Bt]=a[Bt]+l.y-c.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===Ht?(e[Dt][Bt]=a[Bt]+l.y+r.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===kt?(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x-c.w+"px"):i===Mt&&(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x+r.w+"px"),e.className[xt](i)===-1&&(e.className=e.className.replace(Pt,i))},le=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},re=function(t){t=Xt(t);var e=this,n="alert",i=Yt(t,"."+n),a=function(a){var l=a[N];l=l[vt](o)?l:l[yt],l&&l[vt](o)&&(i=Yt(l,"."+n),t=Xt("["+o+'="'+n+'"]',i),(t===l||t===l[yt])&&i&&e.close())},l=function(){Vt.call(i,st,n),Jt(t,tt,a),i[yt].removeChild(i)};this.close=function(){i&&t&&zt(i,Et)&&(Vt.call(i,ut,n),qt(i,Et),function(){i&&Qt(i,l)}())},r in t||Gt(t,tt,a),t[r]=this};_t(r,re,o);var ce=function(t){t=Xt(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[N][yt],c=l[N].tagName===o?l[N]:r.tagName===o?r:null;if(c){var u=this,s=Ut(u,"btn"),d=c[gt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?(qt(c,Lt),d[pt](i),d.removeAttribute(i),d[i]=!1):(Rt(c,Lt),d[pt](i),d[mt](i,i),d[i]=!0),e||(e=!0,Vt.call(d,ht,n),Vt.call(t,ht,n))),"radio"===d.type&&!e&&!d[i]){Rt(c,Lt),d[mt](i,i),d[i]=!0,Vt.call(d,ht,n),Vt.call(t,ht,n),e=!0;for(var f=0,h=s[wt];f<h;f++){var p=s[f],m=p[gt](a)[0];p!==c&&zt(p,Lt)&&(qt(p,Lt),m.removeAttribute(i),m[i]=!1,Vt.call(m,ht,n))}}setTimeout(function(){e=!1},50)}}};zt(t,"btn-group")&&(c in t||Gt(t,tt,l),t[c]=this)};_t(c,ce,i);var ue=function(e,n){e=Xt(e),n=n||{};var i="false"!==e[pt](x)&&(parseInt(e[pt](x))||5e3),o=e[pt](w)===et||!1,a="true"===e[pt](T)||!1,l="carousel",r="paused",c="direction",s="carousel-item",d="data-slide-to";this[M]=n[M]===!0||a,this[F]=!(n[F]!==et&&!o)&&et,n[W]||i?this[W]=parseInt(n[W])||i:this[W]=!1;var f=this,h=e.index=0,p=e.timer=0,m=!1,v=Ut(e,s),g=v[wt],b=this[c]=kt,y=Ut(e,l+"-control-prev")[0],C=Ut(e,l+"-control-next")[0],I=Xt("."+l+"-indicators",e),A=I[gt]("LI"),D=function(){f[W]===!1||zt(e,r)||(Rt(e,r),!m&&clearInterval(p))},L=function(){f[W]!==!1&&zt(e,r)&&(qt(e,r),!m&&clearInterval(p),!m&&f.cycle())},E=function(t){if(t.preventDefault(),!m){var e=t[N],n=f.getActiveIndex();if(!e||zt(e,Lt)||!e[pt](d))return!1;h=parseInt(e[pt](d),10),n<h||0===n&&h===g-1?b=f[c]=kt:(n>h||n===g-1&&0===h)&&(b=f[c]=Mt),f.slideTo(h)}},S=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===C?(h++,b=f[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===y&&(h--,b=f[c]=Mt,0===h?h=0:h<0&&(h=g-1)),f.slideTo(h)}},k=function(t){if(!m){switch(t.which){case 39:h++,b=f[c]=kt,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,b=f[c]=Mt,0==h?h=0:h<0&&(h=g-1);break;default:return}f.slideTo(h)}},B=function(t){for(var e=0,n=A[wt];e<n;e++)qt(A[e],Lt);A[t]&&Rt(A[t],Lt)};this.cycle=function(){b=this[c]=kt,p=setInterval(function(){h++,h=h===g?0:h,f.slideTo(h)},this[W])},this.slideTo=function(n){var i=this.getActiveIndex(),o=b===kt?"next":"prev";Vt.call(e,ft,l,v[n]),m=!0,clearInterval(p),B(n),$t&&zt(e,"slide")&&(t.getComputedStyle(v[n])[It[Ct]()]||t.getComputedStyle(v[n])[At[Ct]()+It]||t.getComputedStyle(v[n])[At+It+"Duration"])?(Rt(v[n],s+"-"+o),v[n][Y],Rt(v[n],s+"-"+b),Rt(v[i],s+"-"+b),Kt(v[i],jt,function(t){var a=t[N]!==v[i]?1e3*t.elapsedTime:0;setTimeout(function(){m=!1,Rt(v[n],Lt),qt(v[i],Lt),qt(v[n],s+"-"+o),qt(v[n],s+"-"+b),qt(v[i],s+"-"+b),Vt.call(e,dt,l,v[n]),document.hidden||!f[W]||zt(e,r)||f.cycle()},a)})):(Rt(v[n],Lt),v[n][Y],qt(v[i],Lt),setTimeout(function(){m=!1,f[W]&&!zt(e,r)&&f.cycle(),Vt.call(e,dt,l,v[n])},100))},this.getActiveIndex=function(){return v[xt](Ut(e,s+" active")[0])||0},u in e||(this[F]&&this[W]&&(Gt(e,Ft[0],D),Gt(e,Ft[1],L),Gt(e,"touchstart",D),Gt(e,"touchend",L)),C&&Gt(C,tt,S),y&&Gt(y,tt,S),I&&Gt(I,tt,E,!1),this[M]===!0&&Gt(t,nt,k,!1)),this.getActiveIndex()<0&&(v[wt]&&Rt(v[0],Lt),A[wt]&&B(0)),this[W]&&this.cycle(),e[u]=this};_t(u,ue,l);var se=function(t,e){t=Xt(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[pt]("data-parent"),r="collapse",c="collapsed",u=function(t){Vt.call(t,at,r),a=!0,Rt(t,St),Rt(t,Et),setTimeout(function(){t[Dt][V]=ne(t)+"px",function(){Qt(t,function(){a=!1,t[mt](Z,"true"),qt(t,St),t[Dt][V]="",Vt.call(t,lt,r)})}()},20)},d=function(t){Vt.call(t,rt,r),a=!0,t[Dt][V]=ne(t)+"px",setTimeout(function(){Rt(t,St),t[Dt][V]="0px",function(){Qt(t,function(){a=!1,t[mt](Z,"false"),qt(t,St),qt(t,Et),t[Dt][V]="",Vt.call(t,ct,r)})}()},20)},f=function(){var e=t.href&&t[pt]("href"),n=t[pt](b),i=e||n&&te.test(n)&&n;return i&&Xt(i)};this.toggle=function(t){t.preventDefault(),a||(zt(i,Et)?o.hide():o.show())},this.hide=function(){d(i),Rt(t,c)},this.show=function(){if(u(i),qt(t,c),null!==n)for(var e=Ut(n,r+" "+Et),o=0,a=e[wt];o<a;o++)e[o]!==i&&d(e[o])},s in t||Gt(t,tt,this.toggle),i=f(),n=Xt(e.parent)||l&&Yt(t,l),t[s]=this};_t(s,se,i);var de=function(t,e){t=Xt(t),this.persist=e===!0||"true"===t[pt]("data-persist")||!1;var n=this,o=!1,a=t[yt],l="dropdown",r=null,c=Xt(".dropdown-menu",a),u=[].slice.call(c[gt]("*")),s=function(t){!o||27!=t.which&&27!=t.keyCode||(r=null,p())},f=function(e){var l,s=e[N];if(l=1!==s.nodeType&&(s[pt](i)||s[yt][pt](i)),s===t||s===a||s[yt]===t)e.preventDefault(),r=t,n.toggle();else if(o){if((s===c||u&&u[xt](s)>-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(s.href)||s[yt]&&/\#$/.test(s[yt].href))&&e.preventDefault()},h=function(){Vt.call(a,at,l,r),Rt(a,Et),c[mt](Z,!0),Vt.call(a,lt,l,r),Gt(document,nt,s),o=!0},p=function(){Vt.call(a,rt,l,r),qt(a,Et),c[mt](Z,!1),Vt.call(a,ct,l,r),Jt(document,nt,s),o=!1};this.toggle=function(){zt(a,Et)&&o?p():h()},d in t||(c[mt]("tabindex","0"),Gt(document,tt,f)),t[d]=this};_t(d,de,i);var fe=function(i,a){i=Xt(i);var l=i[pt](b)||i[pt]("href"),r=Xt(l),c=zt(i,"modal")?i:r,u="modal",s="static",d="paddingLeft",h="paddingRight",p="modal-backdrop";if(zt(i,"modal")&&(i=null),c){a=a||{},this[M]=a[M]!==!1&&"false"!==c[pt](T),this[k]=a[k]!==s&&c[pt](g)!==s||s,this[k]=a[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=a[H];var m,v,x,y,w=this,C=this.open=!1,I=null,A=Ut(e,Nt).concat(Ut(e,Wt)),D=function(){var n=e[Tt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(m&&(n[Dt][h]=o+x+"px",A[wt]))for(var a=0;a<A[wt];a++)e=t.getComputedStyle(A[a])[h],A[a][Dt][h]=parseInt(e)+x+"px"},E=function(){if(n[Dt][h]="",A[wt])for(var t=0;t<A[wt];t++)A[t][Dt][h]=""},S=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[Y]-e[U],n.removeChild(e),t},B=function(){m=n[U]<D(),v=c[Q]>e[X],x=S()},W=function(){c[Dt][d]=!m&&v?x+"px":"",c[Dt][h]=m&&!v?x+"px":""},F=function(){c[Dt][d]="",c[Dt][h]=""},P=function(){var t=document.createElement("div");y=Xt("."+p),null===y&&(t[mt]("class",p+" fade"),y=t,n.appendChild(y))},$=function(){y=Xt("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){zt(c,Et)?Jt(document,nt,z):Gt(document,nt,z)},O=function(){zt(c,Et)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){zt(c,Et)?Jt(c,tt,G):Gt(c,tt,G)},q=function(t){var e=t[N];e=e[vt](b)||e[vt]("href")?e:e[yt],C||e!==i||zt(c,Et)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;w[M]&&27==e&&C&&w.hide()},G=function(t){var e=t[N];C&&(e[yt][pt](o)===u||e[pt](o)===u||e===c&&w[k]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&zt(c,Et)?this.hide():this.show()},this.show=function(){Vt.call(c,at,u,I);var t=Ut(document,u+" "+Et)[0];t&&t!==c&&t.modalTrigger[f].hide(),this[k]&&P(),y&&!zt(y,Et)&&setTimeout(function(){Rt(y,Et)},0),setTimeout(function(){c[Dt].display="block",B(),L(),W(),O(),R(),j(),Rt(n,u+"-open"),Rt(c,Et),c[mt](_,!1),Qt(c,function(){C=w.open=!0,Ot(c),Vt.call(c,lt,u,I)})},$t?150:0)},this.hide=function(){Vt.call(c,rt,u),y=Xt("."+p),qt(c,Et),c[mt](_,!0),!!y&&qt(y,Et),setTimeout(function(){Qt(c,function(){O(),R(),j(),c[Dt].display="",C=w.open=!1,i&&Ot(i),Vt.call(c,ct,u),setTimeout(function(){Ut(document,u+" "+Et)[0]||(F(),E(),qt(n,u+"-open"),$())},100)})},$t?150:0)},this.setContent=function(t){Xt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(B(),L(),W())},!i||f in i||Gt(i,tt,q),this[H]&&this.setContent(this[H]),!!i&&(i[f]=this)}};_t(f,fe,i);var he=function(e,i){e=Xt(e);var o=e[pt](A),a=e[pt](D),l=e[pt](E),r=e[pt](I),c=e[pt](S),u=e[pt](L),s="popover",d="template",f="trigger",p="class",m="div",v="fade",g="data-title",T="data-content",b="dismissible",x='<button type="button" class="close">×</button>',y=Yt(e,".modal"),w=Yt(e,"."+Nt),C=Yt(e,"."+Wt);i=i||{},this[d]=i[d]?i[d]:null,this[f]=i[f]?i[f]:o||et,this[P]=i[P]&&i[P]!==v?i[P]:a||v,this[$]=i[$]?i[$]:l||Bt,this[B]=parseInt(i[B]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[j]=Xt(i[j])?Xt(i[j]):Xt(u)?Xt(u):w?w:C?C:y?y:n;var k=this,M=e[pt](g)||null,H=e[pt](T)||null;if(H||this[d]){var W=null,F=0,O=this[$],R=function(t){null!==W&&t[N]===Xt(".close",W)&&k.hide()},q=function(){k[j].removeChild(W),F=null,W=null},z=function(){if(M=e[pt](g),H=e[pt](T),W=document.createElement(m),null!==H&&null===k[d]){if(W[mt]("role","tooltip"),null!==M){var t=document.createElement("h3");t[mt](p,s+"-title"),t.innerHTML=k[b]?M+x:M,W.appendChild(t)}var n=document.createElement(m);n[mt](p,s+"-content"),n.innerHTML=k[b]&&null===M?H+x:H,W.appendChild(n)}else{var i=document.createElement(m);i.innerHTML=k[d],W.innerHTML=i.firstChild.innerHTML}k[j].appendChild(W),W[Dt].display="block",W[mt](p,s+" "+s+"-"+O+" "+k[P])},U=function(){!zt(W,Et)&&Rt(W,Et)},X=function(){ae(e,W,O,k[j]),ie(W)||(O=le(O),ae(e,W,O,k[j]))};this.toggle=function(){null===W?k.show():k.hide()},this.show=function(){clearTimeout(F),F=setTimeout(function(){null===W&&(O=k[$],z(),X(),U(),Vt.call(e,at,s),Qt(W,function(){Vt.call(e,lt,s)}))},20)},this.hide=function(){clearTimeout(F),F=setTimeout(function(){W&&null!==W&&zt(W,Et)&&(Vt.call(e,rt,s),qt(W,Et),Qt(W,function(){q(),Vt.call(e,ct,s)}))},k[B])},h in e||(k[f]===et?(Gt(e,Ft[0],k.show),k[b]||Gt(e,Ft[1],k.hide)):/^(click|focus)$/.test(k[f])&&(Gt(e,k[f],k.toggle),k[b]||Gt(e,"blur",k.hide)),k[b]&&Gt(document,tt,R),Gt(t,it,k.hide)),e[h]=k}};_t(h,he,i);var pe=function(e,n){e=Xt(e);var i=Xt(e[pt](b));if(n=n||{},n[N]||i){for(var o,a=n[N]&&Xt(n[N])||i,l=a&&a[gt]("A"),r=[],c=[],u=e[G]<e[Q]?e:t,s=u===t,d=0,f=l[wt];d<f;d++){var h=l[d][pt]("href"),m=h&&te.test(h)&&Xt(h);m&&(r.push(l[d]),c.push(m))}var v=function(t){var n=r[t],i=c[t],a=n[yt][yt],l=zt(a,"dropdown")&&a[gt]("A")[0],u=s&&i[Tt](),d=zt(n,Lt)||!1,f=s?u[Bt]+o:i[O]-(c[t-1]?0:10),h=s?u[Ht]+o:c[t+1]?c[t+1][O]:e[Q],p=o>=f&&h>o;if(!d&&p)zt(n,Lt)||(Rt(n,Lt),d=!0,l&&!zt(l,Lt)&&Rt(l,Lt),Vt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!d||d&&p)return}else zt(n,Lt)&&(qt(n,Lt),d=!1,l&&zt(l,Lt)&&!Ut(n[yt],Lt).length&&qt(l,Lt))},g=function(){o=s?oe().y:e[q];for(var t=0,n=r[wt];t<n;t++)v(t)};this.refresh=function(){g()},p in e||(Gt(u,ot,this.refresh),Gt(t,it,this.refresh)),this.refresh(),e[p]=this}};_t(p,pe,a);var me=function(t,e){t=Xt(t);var n=t[pt](y),o="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!$t&&(e[a]||"true"===n);var r,c,u=this,s=Yt(t,".nav"),d=s&&Xt(".dropdown-toggle",s);if(s){var f=function(){var t,e=Ut(s,Lt);return 1!==e[wt]||zt(e[0][yt],"dropdown")?e[wt]>1&&(t=e[e[wt]-1]):t=e[0],t},h=function(){return Xt(f()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][yt],u.show()};this.show=function(){var e=Xt(r[pt]("href")),n=f(),i=h();n[l]&&r[l]||zt(r,Lt)||(n[l]=r[l]=!0,qt(n,Lt),Rt(r,Lt),d&&(zt(t[yt],"dropdown-menu")?zt(d,Lt)||Rt(d,Lt):zt(d,Lt)&&qt(d,Lt)),c&&(c[Dt][a]=ne(i)+"px"),function(){qt(i,Et),Vt.call(n,rt,o,r),function(){Qt(i,function(){qt(i,Lt),Rt(e,Lt),setTimeout(function(){Rt(e,Et),e[G],c&&Rt(c,St),function(){Vt.call(r,at,o,n),function(){c&&(c[Dt][a]=ne(e)+"px"),Vt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Qt(e,function(){Vt.call(r,lt,o,n),c?!function(){Qt(c,function(){setTimeout(function(){c[Dt][a]="",qt(c,St),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},m in t||Gt(t,tt,p),this[a]&&(c=h()[yt]),t[m]=this}};_t(m,me,i);var ve=function(t,e){t=Xt(t);var i=t[pt](D);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](L),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=Yt(t,".modal"),navbarFixedTop=Yt(t,"."+Nt),navbarFixedBottom=Yt(t,"."+Wt),e=e||{},this[P]=e[P]&&e[P]!==fade?e[P]:i||fade,this[$]=e[$]?e[$]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[j]=Xt(e[j])?Xt(e[j]):Xt(containerData)?Xt(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[$],r=null,c=t[pt](title)||t[pt](C);if(c){var u=function(){o[j].removeChild(r),r=null,a=null},s=function(){c=t[pt](title)||t[pt](C),r=document.createElement(div),r[mt]("role",component);var e=document.createElement(div);e[mt](classString,component+"-inner"),r.appendChild(e),e.innerHTML=c,o[j].appendChild(r),r[mt](classString,component+" "+component+"-"+l+" "+o[P])},d=function(){ae(t,r,l,o[j]),ie(r)||(l=le(l),ae(t,r,l,o[j]))},f=function(){!zt(r,Et)&&Rt(r,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[$],s(),d(),f(),Vt.call(t,at,component),Qt(r,function(){Vt.call(t,lt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&zt(r,Et)&&(Vt.call(t,rt,component),qt(r,Et),Qt(r,function(){u(),Vt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},v in t||(t[mt](C,c),t.removeAttribute(title),Gt(t,Ft[0],this.show),Gt(t,Ft[1],this.hide)),t[v]=this}};return _t(v,ve,i),{Alert:re,Button:ce,Carousel:ue,Collapse:se,Dropdown:de,Modal:fe,Popover:he,ScrollSpy:pe,Tab:me,Tooltip:ve}}); |
@@ -1,2 +0,2 @@ | ||
// Native Javascript for Bootstrap 3 v2.0.6 | © dnp_theme | MIT-License | ||
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Affix",c="Alert",u="Button",s="Carousel",f="Collapse",d="Dropdown",h="Modal",p="Popover",m="ScrollSpy",v="Tab",g="Tooltip",b="data-backdrop",x="data-keyboard",T="data-target",y="data-interval",w="data-height",C="data-pause",I="data-original-title",A="data-original-text",L="data-dismissible",S="data-trigger",E="data-animation",M="data-container",D="data-placement",k="data-delay",B="data-offset-top",H="data-offset-bottom",N="backdrop",W="keyboard",F="delay",P="content",$="target",j="interval",O="pause",q="animation",z="placement",R="container",U="offsetTop",X="offsetBottom",Y="offsetLeft",G="scrollTop",J="scrollLeft",K="clientWidth",Q="clientHeight",V="offsetWidth",Z="offsetHeight",_="innerWidth",tt="innerHeight",et="scrollHeight",nt="height",it="aria-expanded",ot="aria-hidden",at="click",lt="hover",rt="keydown",ct="resize",ut="scroll",st="show",ft="shown",dt="hide",ht="hidden",pt="close",mt="closed",vt="slid",gt="slide",bt="change",xt="getAttribute",Tt="setAttribute",yt="hasAttribute",wt="getElementsByTagName",Ct="getBoundingClientRect",It="querySelectorAll",At="getElementsByClassName",Lt="indexOf",St="parentNode",Et="length",Mt="toLowerCase",Dt="Transition",kt="Webkit",Bt="style",Ht="active",Nt="in",Wt="collapsing",Ft="disabled",Pt="loading",$t="left",jt="right",Ot="top",qt="bottom",zt=!("opacity"in n[Bt]),Rt=".navbar-fixed-top",Ut=".navbar-fixed-bottom",Xt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Yt=/\b(top|bottom|left|top)+/,Gt=kt+Dt in e[Bt]||Dt[Mt]()in e[Bt],Jt=kt+Dt in e[Bt]?kt[Mt]()+Dt+"End":Dt[Mt]()+"end",Kt=function(t){t.focus?t.focus():t.setActive()},Qt=function(t,e){t.classList.add(e)},Vt=function(t,e){t.classList.remove(e)},Zt=function(t,e){return t.classList.contains(e)},_t=function(t){for(var e=[],n=0,i=t[Et];n<i;n++)e.push(t[n]);return e},te=function(t,e){var n=zt?It:At;return _t(t[n](zt?"."+e.replace(/\s(?=[a-z])/g,"."):e))},ee=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},ne=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[St])if("."===n){if(null!==ee(e,t[St])&&Zt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},ie=function(t,e,n){t.addEventListener(e,n,!1)},oe=function(t,e,n){t.removeEventListener(e,n,!1)},ae=function(t,e,n){ie(t,e,function i(o){n(o),oe(t,e,i)})},le=function(t,e){Gt?ae(t,Jt,function(t){e(t)}):e()},re=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},ce=document[wt]("*"),ue=function(t,e,n,i){for(var o=i&&i[Et]?i:ce,a=0;a<o[Et];a++){var l=o[a][xt](n),r=t.replace(/spy/i,"")[Mt]();(l&&t===u&&l[Lt](r)>-1||l===r)&&new e(o[a])}},se=/^\#(.)+$/,fe=function(e){var n=e&&(e.currentStyle||t.getComputedStyle(e)),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Q]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},de=function(t){for(var e=0,n=0,i=t.children[Et];n<i;n++)e+=fe(t.children[n]);return e},he=function(n){var i=n[Ct]();return i[Ot]>=0&&i[$t]>=0&&i[qt]<=(t[tt]||e[Q])&&i[jt]<=(t[_]||e[K])},pe=function(){return{y:t.pageYOffset||e[G],x:t.pageXOffset||e[J]}},me=function(t,e,i,o){var a=t[Ct](),l=o===n?pe():{x:o[Y]+o[J],y:o[U]+o[G]},r={w:a[jt]-a[$t],h:a[qt]-a[Ot]},c={w:e[V],h:e[Z]};i===Ot?(e[Bt][Ot]=a[Ot]+l.y-c.h+"px",e[Bt][$t]=a[$t]+l.x-c.w/2+r.w/2+"px"):i===qt?(e[Bt][Ot]=a[Ot]+l.y+r.h+"px",e[Bt][$t]=a[$t]+l.x-c.w/2+r.w/2+"px"):i===$t?(e[Bt][Ot]=a[Ot]+l.y-c.h/2+r.h/2+"px",e[Bt][$t]=a[$t]+l.x-c.w+"px"):i===jt&&(e[Bt][Ot]=a[Ot]+l.y-c.h/2+r.h/2+"px",e[Bt][$t]=a[$t]+l.x+r.w+"px"),e.className[Lt](i)===-1&&(e.className=e.className.replace(Yt,i))},ve=function(t){return t===Ot?qt:t===qt?Ot:t===$t?jt:t===jt?$t:t},ge=function(i,o){i=ee(i),o=o||{};var a=i[xt](T),l=i[xt](B),c=i[xt](H),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",m="affix-bottom",v="affixed-bottom";if(this[$]=o[$]?ee(o[$]):ee(a)||null,this[U]=o[U]?o[U]:parseInt(l)||0,this[X]=o[X]?o[X]:parseInt(c)||0,this[$]||this[U]||this[X]){var g,b,x,y,w,C,I=this,A=Gt?50:500,L=!1,S=!1,E=function(){return Math.max(n[et],n[Z],e[Q],e[et],e[Z])},M=function(){return null!==I[$]?I[$][Ct]()[Ot]+y:I[U]?parseInt(typeof I[U]===f?I[U]():I[U]||0):void 0},D=function(){if(I[X])return x-i[Z]-parseInt(typeof I[X]===f?I[X]():I[X]||0)},k=function(){x=E(),y=parseInt(pe().y,0),g=M(),b=D(),w=parseInt(g)-y<0&&y>parseInt(g),C=parseInt(b)-y<0&&y>parseInt(b)},N=function(){L||Zt(i,u)||(re.call(i,u,u),re.call(i,h,u),Qt(i,u),L=!0,re.call(i,s,u),re.call(i,p,u))},W=function(){L&&Zt(i,u)&&(Vt(i,u),L=!1)},F=function(){S||Zt(i,m)||(re.call(i,u,u),re.call(i,m,u),Qt(i,m),S=!0,re.call(i,s,u),re.call(i,v,u))},P=function(){S&&Zt(i,m)&&(Vt(i,m),S=!1)},j=function(){C?(w&&W(),F()):(P(),w?N():W())};this[d]=function(){k(),j()},r in i||(ie(t,ut,this[d]),ie(t,ct,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};ue(r,ge,a);var be=function(t){t=ee(t);var e=this,n="alert",i=ne(t,"."+n),a=function(a){var l=a[$];l=l[yt](o)?l:l[St],l&&l[yt](o)&&(i=ne(l,"."+n),t=ee("["+o+'="'+n+'"]',i),(t===l||t===l[St])&&i&&e.close())},l=function(){re.call(i,mt,n),oe(t,at,a),i[St].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),function(){i&&le(i,l)}())},c in t||ie(t,at,a),t[c]=this};ue(c,be,o);var xe=function(t,e){t=ee(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===Pt&&(Qt(t,Ft),t[Tt](Ft,Ft)),t[Tt](A,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[xt]("data-"+e+"-text"))},s=function(){t[xt](A)&&((Zt(t,Ft)||t[xt](Ft)===Ft)&&(Vt(t,Ft),t.removeAttribute(Ft)),t.innerHTML=t[xt](A))},f=function(e){var a=e[$][St],c=e[$].tagName===l?e[$]:a.tagName===l?a:null;if(c){var u=this,s=te(u,"btn"),f=c[wt](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Vt(c,Ht),f[xt](o),f.removeAttribute(o),f[o]=!1):(Qt(c,Ht),f[xt](o),f[Tt](o,o),f[o]=!0),n||(n=!0,re.call(f,bt,i),re.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Qt(c,Ht),f[Tt](o,o),f[o]=!0,re.call(f,bt,i),re.call(t,bt,i),n=!0;for(var d=0,h=s[Et];d<h;d++){var p=s[d],m=p[wt](r)[0];p!==c&&Zt(p,Ht)&&(Vt(p,Ht),m.removeAttribute(o),m[o]=!1,re.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Zt(t,"btn")&&null!==e&&(e!==a?c():s()),Zt(t,"btn-group")&&(u in t||ie(t,at,f),t[u]=this)};ue(u,xe,i);var Te=function(e,n){e=ee(e),n=n||{};var i="false"!==e[xt](y)&&(parseInt(e[xt](y))||5e3),o=e[xt](C)===lt||!1,a="true"===e[xt](x)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[W]=n[W]===!0||a,this[O]=!(n[O]!==lt&&!o)&<,n[j]||i?this[j]=parseInt(n[j])||i:this[j]=!1;var f=this,d=e.index=0,h=e.timer=0,p=!1,m=te(e,"item"),v=m[Et],g=this[c]=$t,b=te(e,l+"-control"),T=b[0],w=b[1],I=ee("."+l+"-indicators",e),A=I[wt]("LI"),L=function(){f[j]===!1||Zt(e,r)||(Qt(e,r),!p&&clearInterval(h))},S=function(){f[j]!==!1&&Zt(e,r)&&(Vt(e,r),!p&&clearInterval(h),!p&&f.cycle())},E=function(t){if(t.preventDefault(),!p){var e=t[$],n=f.getActiveIndex();if(!e||Zt(e,Ht)||!e[xt](u))return!1;d=parseInt(e[xt](u),10),n<d||0===n&&d===v-1?g=f[c]=$t:(n>d||n===v-1&&0===d)&&(g=f[c]=jt),f.slideTo(d)}},M=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?(d++,g=f[c]=$t,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=f[c]=jt,0===d?d=0:d<0&&(d=v-1)),f.slideTo(d)}},D=function(t){if(!p){switch(t.which){case 39:d++,g=f[c]=$t,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=f[c]=jt,0==d?d=0:d<0&&(d=v-1);break;default:return}f.slideTo(d)}},k=function(t){for(var e=0,n=A[Et];e<n;e++)Vt(A[e],Ht);A[t]&&Qt(A[t],Ht)};this.cycle=function(){g=this[c]=$t,h=setInterval(function(){d++,d=d===v?0:d,f.slideTo(d)},this[j])},this.slideTo=function(t){var n=this.getActiveIndex(),i=g===$t?"next":"prev";re.call(e,gt,l,m[t]),p=this.isSliding=!0,clearInterval(h),k(t),Gt&&Zt(e,"slide")?(Qt(m[t],i),m[t][V],Qt(m[t],g),Qt(m[n],g),ae(m[n],Jt,function(o){var a=o[$]!==m[n]?1e3*o.elapsedTime:0;setTimeout(function(){p=f.isSliding=!1,Qt(m[t],Ht),Vt(m[n],Ht),Vt(m[t],i),Vt(m[t],g),Vt(m[n],g),re.call(e,vt,l,m[t]),f[j]&&!Zt(e,r)&&f.cycle()},a)})):(Qt(m[t],Ht),m[t][V],Vt(m[n],Ht),setTimeout(function(){p=!1,f[j]&&!Zt(e,r)&&f.cycle(),re.call(e,vt,l,m[t])},100))},this.getActiveIndex=function(){return m[Lt](te(e,"item active")[0])||0},s in e||(this[O]&&this[j]&&(ie(e,Xt[0],L),ie(e,Xt[1],S),ie(e,"touchstart",L),ie(e,"touchend",S)),w&&ie(w,at,M),T&&ie(T,at,M),I&&ie(I,at,E,!1),this[W]===!0&&ie(t,rt,D,!1)),this.getActiveIndex()<0&&(m[Et]&&Qt(m[0],Ht),A[Et]&&k(0)),this[j]&&this.cycle(),e[s]=this};ue(s,Te,l);var ye=function(t,e){t=ee(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[xt]("data-parent"),r="collapse",c="collapsed",u=function(t){re.call(t,st,r),a=!0,Qt(t,Wt),Qt(t,Nt),setTimeout(function(){t[Bt][nt]=de(t)+"px",function(){le(t,function(){a=!1,t[Tt](it,"true"),Vt(t,Wt),t[Bt][nt]="",re.call(t,ft,r)})}()},20)},s=function(t){re.call(t,dt,r),a=!0,t[Bt][nt]=de(t)+"px",setTimeout(function(){Qt(t,Wt),t[Bt][nt]="0px",function(){le(t,function(){a=!1,t[Tt](it,"false"),Vt(t,Wt),Vt(t,Nt),t[Bt][nt]="",re.call(t,ht,r)})}()},20)},d=function(){var e=t.href&&t[xt]("href"),n=t[xt](T),i=e||n&&se.test(n)&&n;return i&&ee(i)};this.toggle=function(t){t.preventDefault(),a||(Zt(i,Nt)?o.hide():o.show())},this.hide=function(){s(i),Qt(t,c)},this.show=function(){if(u(i),Vt(t,c),null!==n)for(var e=te(n,r+" "+Nt),o=0,a=e[Et];o<a;o++)e[o]!==i&&s(e[o])},f in t||ie(t,at,this.toggle),i=d(),n=ee(e.parent)||l&&ne(t,l),t[f]=this};ue(f,ye,i);var we=function(t,e){t=ee(t),this.persist=e===!0||"true"===t[xt]("data-persist")||!1;var n=this,o=!1,a=t[St],l="dropdown",r="open",c=null,u=ee(".dropdown-menu",a),s=_t(u[wt]("*")),f=function(t){!o||27!=t.which&&27!=t.keyCode||(c=null,m())},h=function(e){var l,r=e[$];if(l=1!==r.nodeType&&(r[xt](i)||r[St][xt](i)),r===t||r===a||r[St]===t)e.preventDefault(),c=t,n.toggle();else if(o){if((r===u||s&&s[Lt](r)>-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[St]&&/\#$/.test(r[St].href))&&e.preventDefault()},p=function(){re.call(a,st,l,c),Qt(a,r),u[Tt](it,!0),re.call(a,ft,l,c),ie(document,rt,f),o=!0},m=function(){re.call(a,dt,l,c),Vt(a,r),u[Tt](it,!1),re.call(a,ht,l,c),oe(document,rt,f),o=!1};this.toggle=function(){Zt(a,r)&&o?m():p()},d in t||(u[Tt]("tabindex","0"),ie(document,at,h)),t[d]=this};ue(d,we,i);var Ce=function(i,a){i=ee(i);var l=i[xt](T)||i[xt]("href"),r=ee(l),c=Zt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(Zt(i,"modal")&&(i=null),c){a=a||{},this[W]=a[W]!==!1&&"false"!==c[xt](x),this[N]=a[N]!==s&&c[xt](b)!==s||s,this[N]=a[N]!==!1&&"false"!==c[xt](b)&&this[N],this[P]=a[P];var m,v,g,y,w=this,C=this.open=!1,I=null,A=te(e,"navbar-fixed-top").concat(te(e,"navbar-fixed-bottom")),L=function(){var n=e[Ct]();return t[_]||n[jt]-Math.abs(n[$t])},S=function(){var e,i=n.currentStyle||t.getComputedStyle(n),o=parseInt(i[d],10);if(m&&(n[Bt][d]=o+g+"px",A[Et]))for(var a=0;a<A[Et];a++)e=t.getComputedStyle(A[a])[d],A[a][Bt][d]=parseInt(e)+g+"px"},E=function(){if(n[Bt][d]="",A[Et])for(var t=0;t<A[Et];t++)A[t][Bt][d]=""},M=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[V]-e[K],n.removeChild(e),t},D=function(){m=n[K]<L(),v=c[et]>e[Q],g=M()},k=function(){c[Bt][f]=!m&&v?g+"px":"",c[Bt][d]=m&&!v?g+"px":""},B=function(){c[Bt][f]="",c[Bt][d]=""},H=function(){var t=document.createElement("div");y=ee("."+p),null===y&&(t[Tt]("class",p+" fade"),y=t,n.appendChild(y))},F=function(){y=ee("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){Zt(c,Nt)?oe(document,rt,R):ie(document,rt,R)},O=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},q=function(){Zt(c,Nt)?oe(c,at,U):ie(c,at,U)},z=function(t){var e=t[$];e=e[yt](T)||e[yt]("href")?e:e[St],C||e!==i||Zt(c,Nt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},R=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},U=function(t){var e=t[$];C&&(e[St][xt](o)===u||e[xt](o)===u||e===c&&w[N]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Zt(c,Nt)?this.hide():this.show()},this.show=function(){re.call(c,st,u,I);var t=te(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[N]&&H(),y&&!Zt(y,Nt)&&setTimeout(function(){Qt(y,Nt)},0),setTimeout(function(){c[Bt].display="block",D(),S(),k(),O(),q(),j(),Qt(n,u+"-open"),Qt(c,Nt),c[Tt](ot,!1),le(c,function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)})},Gt?150:0)},this.hide=function(){re.call(c,dt,u),y=ee("."+p),Vt(c,Nt),c[Tt](ot,!0),!!y&&Vt(y,Nt),setTimeout(function(){le(c,function(){O(),q(),j(),c[Bt].display="",C=w.open=!1,i&&Kt(i),re.call(c,ht,u),setTimeout(function(){te(document,u+" "+Nt)[0]||(B(),E(),Vt(n,u+"-open"),F())},100)})},Gt?150:0)},this.setContent=function(t){ee("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(D(),S(),k())},!i||h in i||ie(i,at,z),this[P]&&this.setContent(this[P]),!!i&&(i[h]=this)}};ue(h,Ce,i);var Ie=function(e,i){e=ee(e);var o=e[xt](S),a=e[xt](E),l=e[xt](D),r=e[xt](L),c=e[xt](k),u=e[xt](M),s="popover",f="template",d="trigger",h="class",m="div",v="fade",g="data-title",b="data-content",x="dismissible",T='<button type="button" class="close">×</button>',y=ne(e,".modal"),w=ne(e,Rt),C=ne(e,Ut);i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||lt,this[q]=i[q]&&i[q]!==v?i[q]:a||v,this[z]=i[z]?i[z]:l||Ot,this[F]=parseInt(i[F]||c)||200,this[x]=!(!i[x]&&"true"!==r),this[R]=ee(i[R])?ee(i[R]):ee(u)?ee(u):w?w:C?C:y?y:n;var I=this,A=e[xt](g)||null,B=e[xt](b)||null;if(B||this[f]){var H=null,N=0,W=this[z],P=function(t){null!==H&&t[$]===ee(".close",H)&&I.hide()},j=function(){I[R].removeChild(H),N=null,H=null},O=function(){if(A=e[xt](g),B=e[xt](b),H=document.createElement(m),null!==B&&null===I[f]){if(H[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=I[x]?A+T:A,H.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),H.appendChild(n),H.appendChild(i),i.innerHTML=I[x]&&null===A?B+T:B}else{var o=document.createElement(m);o.innerHTML=I[f],H.innerHTML=o.firstChild.innerHTML}I[R].appendChild(H),H[Bt].display="block",H[Tt](h,s+" "+W+" "+I[q])},U=function(){!Zt(H,Nt)&&Qt(H,Nt)},X=function(){me(e,H,W,I[R]),he(H)||(W=ve(W),me(e,H,W,I[R]))};this.toggle=function(){null===H?I.show():I.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===H&&(W=I[z],O(),X(),U(),re.call(e,st,s),le(H,function(){re.call(e,ft,s)}))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){H&&null!==H&&Zt(H,Nt)&&(re.call(e,dt,s),Vt(H,Nt),le(H,function(){j(),re.call(e,ht,s)}))},I[F])},p in e||(I[d]===lt?(ie(e,Xt[0],I.show),I[x]||ie(e,Xt[1],I.hide)):/^(click|focus)$/.test(I[d])&&(ie(e,I[d],I.toggle),I[x]||ie(e,"blur",I.hide)),I[x]&&ie(document,at,P),!zt&&ie(t,ct,I.hide)),e[p]=I}};ue(p,Ie,i);var Ae=function(e,n){e=ee(e);var i=ee(e[xt](T));if(n=n||{},n[$]||i){for(var o,a=n[$]&&ee(n[$])||i,l=a&&a[wt]("A"),r=[],c=[],u=e[Z]<e[et]?e:t,s=u===t,f=0,d=l[Et];f<d;f++){var h=l[f][xt]("href"),p=h&&se.test(h)&&ee(h);p&&(r.push(l[f]),c.push(p))}var v=function(t){var n=r[t][St],i=c[t],a=ne(n,".dropdown"),l=s&&i[Ct](),u=Zt(n,Ht)||!1,f=s?l[Ot]+o:i[U]-(c[t-1]?0:10),d=s?l[qt]+o:c[t+1]?c[t+1][U]:e[et],h=o>=f&&d>o;if(!u&&h)"LI"!==n.tagName||Zt(n,Ht)||(Qt(n,Ht),u=!0,a&&!Zt(a,Ht)&&Qt(a,Ht),re.call(e,"activate","scrollspy",r[t]));else if(h){if(!h&&!u||u&&h)return}else"LI"===n.tagName&&Zt(n,Ht)&&(Vt(n,Ht),u=!1,a&&Zt(a,Ht)&&!te(n[St],Ht).length&&Vt(a,Ht))},g=function(){o=s?pe().y:e[G];for(var t=0,n=r[Et];t<n;t++)v(t)};this.refresh=function(){g()},m in e||(ie(u,ut,this.refresh),!zt&&ie(t,ct,this.refresh)),this.refresh(),e[m]=this}};ue(m,Ae,a);var Le=function(t,e){t=ee(t);var n=t[xt](w),o="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!Gt&&(e[a]||"true"===n);var r,c,u=this,s=ne(t,".nav"),f=s&&ee(".dropdown",s);if(s){var d=function(){var t,e=te(s,Ht);return 1!==e[Et]||Zt(e[0],"dropdown")?e[Et]>1&&(t=e[e[Et]-1]):t=e[0],t[wt]("A")[0]},h=function(){return ee(d()[xt]("href"))},p=function(t){t.preventDefault(),r=t[$][xt](i)===o||se.test(t[$][xt]("href"))?t[$]:t[$][St],u.show()};this.show=function(){var e=ee(r[xt]("href")),n=d(),i=h();n[l]&&r[l]||Zt(r[St],Ht)||(n[l]=r[l]=!0,Vt(n[St],Ht),Qt(r[St],Ht),f&&(Zt(t[St][St],"dropdown-menu")?Zt(f,Ht)||Qt(f,Ht):Zt(f,Ht)&&Vt(f,Ht)),c&&(c[Bt][a]=de(i)+"px"),function(){Vt(i,Nt),re.call(n,dt,o,r),function(){le(i,function(){Vt(i,Ht),Qt(e,Ht),setTimeout(function(){Qt(e,Nt),e[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,n),function(){c&&(c[Bt][a]=de(e)+"px"),re.call(n,ht,o,r)}()}()},20)})}()}(),function(){le(e,function(){re.call(r,ft,o,n),c?!function(){le(c,function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},v in t||ie(t,at,p),this[a]&&(c=h()[St]),t[v]=this}};ue(v,Le,i);var Se=function(t,e){t=ee(t);var i=t[xt](E);placementData=t[xt](D),delayData=t[xt](k),containerData=t[xt](M),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=ne(t,".modal"),navbarFixedTop=ne(t,Rt),navbarFixedBottom=ne(t,Ut),e=e||{},this[q]=e[q]&&e[q]!==fade?e[q]:i||fade,this[z]=e[z]?e[z]:placementData||Ot,this[F]=parseInt(e[F]||delayData)||200,this[R]=ee(e[R])?ee(e[R]):ee(containerData)?ee(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[z],r=null,c=t[xt](title)||t[xt](I);if(c){var u=function(){o[R].removeChild(r),r=null,a=null},s=function(){c=t[xt](title)||t[xt](I),r=document.createElement(div),r[Tt]("role",component);var e=document.createElement(div),n=document.createElement(div);e[Tt](classString,component+"-arrow"),n[Tt](classString,component+"-inner"),r.appendChild(e),r.appendChild(n),n.innerHTML=c,o[R].appendChild(r),r[Tt](classString,component+" "+l+" "+o[q])},f=function(){me(t,r,l,o[R]),he(r)||(l=ve(l),me(t,r,l,o[R]))},d=function(){!Zt(r,Nt)&&Qt(r,Nt)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[z],s(),f(),d(),re.call(t,st,component),le(r,function(){re.call(t,ft,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&Zt(r,Nt)&&(re.call(t,dt,component),Vt(r,Nt),le(r,function(){u(),re.call(t,ht,component)}))},o[F])},this.toggle=function(){r?o.hide():o.show()},g in t||(t[Tt](I,c),t.removeAttribute(title),ie(t,Xt[0],this.show),ie(t,Xt[1],this.hide)),t[g]=this}};return ue(g,Se,i),{Affix:ge,Alert:be,Button:xe,Carousel:Te,Collapse:ye,Dropdown:we,Modal:Ce,Popover:Ie,ScrollSpy:Ae,Tab:Le,Tooltip:Se}}); | ||
// Native Javascript for Bootstrap 3 v2.0.7 | © dnp_theme | MIT-License | ||
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Affix",c="Alert",u="Button",s="Carousel",f="Collapse",d="Dropdown",h="Modal",p="Popover",m="ScrollSpy",v="Tab",g="Tooltip",b="data-backdrop",x="data-keyboard",T="data-target",y="data-interval",w="data-height",C="data-pause",I="data-original-title",A="data-original-text",L="data-dismissible",E="data-trigger",M="data-animation",k="data-container",S="data-placement",H="data-delay",B="data-offset-top",D="data-offset-bottom",N="backdrop",W="keyboard",P="delay",$="content",j="target",O="interval",q="pause",z="animation",R="placement",U="container",X="offsetTop",Y="offsetBottom",F="offsetLeft",G="scrollTop",J="scrollLeft",K="clientWidth",Q="clientHeight",V="offsetWidth",Z="offsetHeight",_="innerWidth",tt="innerHeight",et="scrollHeight",nt="height",it="aria-expanded",ot="aria-hidden",at="click",lt="hover",rt="keydown",ct="resize",ut="scroll",st="show",ft="shown",dt="hide",ht="hidden",pt="close",mt="closed",vt="slid",gt="slide",bt="change",xt="getAttribute",Tt="setAttribute",yt="hasAttribute",wt="getElementsByTagName",Ct="getBoundingClientRect",It="querySelectorAll",At="getElementsByClassName",Lt="indexOf",Et="parentNode",Mt="length",kt="toLowerCase",St="Transition",Ht="Webkit",Bt="style",Dt="active",Nt="in",Wt="collapsing",Pt="disabled",$t="loading",jt="left",Ot="right",qt="top",zt="bottom",Rt=!("opacity"in n[Bt]),Ut="navbar-fixed-top",Xt="navbar-fixed-bottom",Yt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Ft=/\b(top|bottom|left|top)+/,Gt=Ht+St in e[Bt]||St[kt]()in e[Bt],Jt=Ht+St in e[Bt]?Ht[kt]()+St+"End":St[kt]()+"end",Kt=function(t){t.focus?t.focus():t.setActive()},Qt=function(t,e){t.classList.add(e)},Vt=function(t,e){t.classList.remove(e)},Zt=function(t,e){return t.classList.contains(e)},_t=function(t){for(var e=[],n=0,i=t[Mt];n<i;n++)e.push(t[n]);return e},te=function(t,e){var n=Rt?It:At;return _t(t[n](Rt?"."+e.replace(/\s(?=[a-z])/g,"."):e))},ee=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},ne=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[Et])if("."===n){if(null!==ee(e,t[Et])&&Zt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},ie=function(t,e,n){t.addEventListener(e,n,!1)},oe=function(t,e,n){t.removeEventListener(e,n,!1)},ae=function(t,e,n){ie(t,e,function i(o){n(o),oe(t,e,i)})},le=function(t,e){Gt?ae(t,Jt,function(t){e(t)}):e()},re=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},ce=document[wt]("*"),ue=function(t,e,n,i){for(var o=i&&i[Mt]?i:ce,a=0;a<o[Mt];a++){var l=o[a][xt](n),r=t.replace(/spy/i,"")[kt]();(l&&t===u&&l[Lt](r)>-1||l===r)&&new e(o[a])}},se=/^\#(.)+$/,fe=function(e){var n=e&&(e.currentStyle||t.getComputedStyle(e)),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Q]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},de=function(t){for(var e=0,n=0,i=t.children[Mt];n<i;n++)e+=fe(t.children[n]);return e},he=function(n){var i=n[Ct]();return i[qt]>=0&&i[jt]>=0&&i[zt]<=(t[tt]||e[Q])&&i[Ot]<=(t[_]||e[K])},pe=function(){return{y:t.pageYOffset||e[G],x:t.pageXOffset||e[J]}},me=function(t,e,i,o){var a=t[Ct](),l=o===n?pe():{x:o[F]+o[J],y:o[X]+o[G]},r={w:a[Ot]-a[jt],h:a[zt]-a[qt]},c={w:e[V],h:e[Z]};i===qt?(e[Bt][qt]=a[qt]+l.y-c.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===zt?(e[Bt][qt]=a[qt]+l.y+r.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===jt?(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x-c.w+"px"):i===Ot&&(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x+r.w+"px"),e.className[Lt](i)===-1&&(e.className=e.className.replace(Ft,i))},ve=function(t){return t===qt?zt:t===zt?qt:t===jt?Ot:t===Ot?jt:t},ge=function(i,o){i=ee(i),o=o||{};var a=i[xt](T),l=i[xt](B),c=i[xt](D),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",m="affix-bottom",v="affixed-bottom";if(this[j]=o[j]?ee(o[j]):ee(a)||null,this[X]=o[X]?o[X]:parseInt(l)||0,this[Y]=o[Y]?o[Y]:parseInt(c)||0,this[j]||this[X]||this[Y]){var g,b,x,y,w,C,I=this,A=Gt?50:500,L=!1,E=!1,M=function(){return Math.max(n[et],n[Z],e[Q],e[et],e[Z])},k=function(){return null!==I[j]?I[j][Ct]()[qt]+y:I[X]?parseInt(typeof I[X]===f?I[X]():I[X]||0):void 0},S=function(){if(I[Y])return x-i[Z]-parseInt(typeof I[Y]===f?I[Y]():I[Y]||0)},H=function(){x=M(),y=parseInt(pe().y,0),g=k(),b=S(),w=parseInt(g)-y<0&&y>parseInt(g),C=parseInt(b)-y<0&&y>parseInt(b)},N=function(){L||Zt(i,u)||(re.call(i,u,u),re.call(i,h,u),Qt(i,u),L=!0,re.call(i,s,u),re.call(i,p,u))},W=function(){L&&Zt(i,u)&&(Vt(i,u),L=!1)},P=function(){E||Zt(i,m)||(re.call(i,u,u),re.call(i,m,u),Qt(i,m),E=!0,re.call(i,s,u),re.call(i,v,u))},$=function(){E&&Zt(i,m)&&(Vt(i,m),E=!1)},O=function(){C?(w&&W(),P()):($(),w?N():W())};this[d]=function(){H(),O()},r in i||(ie(t,ut,this[d]),ie(t,ct,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};ue(r,ge,a);var be=function(t){t=ee(t);var e=this,n="alert",i=ne(t,"."+n),a=function(a){var l=a[j];l=l[yt](o)?l:l[Et],l&&l[yt](o)&&(i=ne(l,"."+n),t=ee("["+o+'="'+n+'"]',i),(t===l||t===l[Et])&&i&&e.close())},l=function(){re.call(i,mt,n),oe(t,at,a),i[Et].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),function(){i&&le(i,l)}())},c in t||ie(t,at,a),t[c]=this};ue(c,be,o);var xe=function(t,e){t=ee(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===$t&&(Qt(t,Pt),t[Tt](Pt,Pt)),t[Tt](A,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[xt]("data-"+e+"-text"))},s=function(){t[xt](A)&&((Zt(t,Pt)||t[xt](Pt)===Pt)&&(Vt(t,Pt),t.removeAttribute(Pt)),t.innerHTML=t[xt](A))},f=function(e){var a=e[j][Et],c=e[j].tagName===l?e[j]:a.tagName===l?a:null;if(c){var u=this,s=te(u,"btn"),f=c[wt](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Vt(c,Dt),f[xt](o),f.removeAttribute(o),f[o]=!1):(Qt(c,Dt),f[xt](o),f[Tt](o,o),f[o]=!0),n||(n=!0,re.call(f,bt,i),re.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Qt(c,Dt),f[Tt](o,o),f[o]=!0,re.call(f,bt,i),re.call(t,bt,i),n=!0;for(var d=0,h=s[Mt];d<h;d++){var p=s[d],m=p[wt](r)[0];p!==c&&Zt(p,Dt)&&(Vt(p,Dt),m.removeAttribute(o),m[o]=!1,re.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Zt(t,"btn")&&null!==e&&(e!==a?c():s()),Zt(t,"btn-group")&&(u in t||ie(t,at,f),t[u]=this)};ue(u,xe,i);var Te=function(e,n){e=ee(e),n=n||{};var i="false"!==e[xt](y)&&(parseInt(e[xt](y))||5e3),o=e[xt](C)===lt||!1,a="true"===e[xt](x)||!1,l="carousel",r="paused",c="direction",u="data-slide-to";this[W]=n[W]===!0||a,this[q]=!(n[q]!==lt&&!o)&<,n[O]||i?this[O]=parseInt(n[O])||i:this[O]=!1;var f=this,d=e.index=0,h=e.timer=0,p=!1,m=te(e,"item"),v=m[Mt],g=this[c]=jt,b=te(e,l+"-control"),T=b[0],w=b[1],I=ee("."+l+"-indicators",e),A=I[wt]("LI"),L=function(){f[O]===!1||Zt(e,r)||(Qt(e,r),!p&&clearInterval(h))},E=function(){f[O]!==!1&&Zt(e,r)&&(Vt(e,r),!p&&clearInterval(h),!p&&f.cycle())},M=function(t){if(t.preventDefault(),!p){var e=t[j],n=f.getActiveIndex();if(!e||Zt(e,Dt)||!e[xt](u))return!1;d=parseInt(e[xt](u),10),n<d||0===n&&d===v-1?g=f[c]=jt:(n>d||n===v-1&&0===d)&&(g=f[c]=Ot),f.slideTo(d)}},k=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?(d++,g=f[c]=jt,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=f[c]=Ot,0===d?d=0:d<0&&(d=v-1)),f.slideTo(d)}},S=function(t){if(!p){switch(t.which){case 39:d++,g=f[c]=jt,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=f[c]=Ot,0==d?d=0:d<0&&(d=v-1);break;default:return}f.slideTo(d)}},H=function(t){for(var e=0,n=A[Mt];e<n;e++)Vt(A[e],Dt);A[t]&&Qt(A[t],Dt)};this.cycle=function(){g=this[c]=jt,h=setInterval(function(){d++,d=d===v?0:d,f.slideTo(d)},this[O])},this.slideTo=function(t){var n=this.getActiveIndex(),i=g===jt?"next":"prev";re.call(e,gt,l,m[t]),p=this.isSliding=!0,clearInterval(h),H(t),Gt&&Zt(e,"slide")?(Qt(m[t],i),m[t][V],Qt(m[t],g),Qt(m[n],g),ae(m[n],Jt,function(o){var a=o[j]!==m[n]?1e3*o.elapsedTime:0;setTimeout(function(){p=f.isSliding=!1,Qt(m[t],Dt),Vt(m[n],Dt),Vt(m[t],i),Vt(m[t],g),Vt(m[n],g),re.call(e,vt,l,m[t]),f[O]&&!Zt(e,r)&&f.cycle()},a)})):(Qt(m[t],Dt),m[t][V],Vt(m[n],Dt),setTimeout(function(){p=!1,f[O]&&!Zt(e,r)&&f.cycle(),re.call(e,vt,l,m[t])},100))},this.getActiveIndex=function(){return m[Lt](te(e,"item active")[0])||0},s in e||(this[q]&&this[O]&&(ie(e,Yt[0],L),ie(e,Yt[1],E),ie(e,"touchstart",L),ie(e,"touchend",E)),w&&ie(w,at,k),T&&ie(T,at,k),I&&ie(I,at,M,!1),this[W]===!0&&ie(t,rt,S,!1)),this.getActiveIndex()<0&&(m[Mt]&&Qt(m[0],Dt),A[Mt]&&H(0)),this[O]&&this.cycle(),e[s]=this};ue(s,Te,l);var ye=function(t,e){t=ee(t),e=e||{};var n=null,i=null,o=this,a=!1,l=t[xt]("data-parent"),r="collapse",c="collapsed",u=function(t){re.call(t,st,r),a=!0,Qt(t,Wt),Qt(t,Nt),setTimeout(function(){t[Bt][nt]=de(t)+"px",function(){le(t,function(){a=!1,t[Tt](it,"true"),Vt(t,Wt),t[Bt][nt]="",re.call(t,ft,r)})}()},20)},s=function(t){re.call(t,dt,r),a=!0,t[Bt][nt]=de(t)+"px",setTimeout(function(){Qt(t,Wt),t[Bt][nt]="0px",function(){le(t,function(){a=!1,t[Tt](it,"false"),Vt(t,Wt),Vt(t,Nt),t[Bt][nt]="",re.call(t,ht,r)})}()},20)},d=function(){var e=t.href&&t[xt]("href"),n=t[xt](T),i=e||n&&se.test(n)&&n;return i&&ee(i)};this.toggle=function(t){t.preventDefault(),a||(Zt(i,Nt)?o.hide():o.show())},this.hide=function(){s(i),Qt(t,c)},this.show=function(){if(u(i),Vt(t,c),null!==n)for(var e=te(n,r+" "+Nt),o=0,a=e[Mt];o<a;o++)e[o]!==i&&s(e[o])},f in t||ie(t,at,this.toggle),i=d(),n=ee(e.parent)||l&&ne(t,l),t[f]=this};ue(f,ye,i);var we=function(t,e){t=ee(t),this.persist=e===!0||"true"===t[xt]("data-persist")||!1;var n=this,o=!1,a=t[Et],l="dropdown",r="open",c=null,u=ee(".dropdown-menu",a),s=_t(u[wt]("*")),f=function(t){!o||27!=t.which&&27!=t.keyCode||(c=null,m())},h=function(e){var l,r=e[j];if(l=1!==r.nodeType&&(r[xt](i)||r[Et][xt](i)),r===t||r===a||r[Et]===t)e.preventDefault(),c=t,n.toggle();else if(o){if((r===u||s&&s[Lt](r)>-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[Et]&&/\#$/.test(r[Et].href))&&e.preventDefault()},p=function(){re.call(a,st,l,c),Qt(a,r),u[Tt](it,!0),re.call(a,ft,l,c),ie(document,rt,f),o=!0},m=function(){re.call(a,dt,l,c),Vt(a,r),u[Tt](it,!1),re.call(a,ht,l,c),oe(document,rt,f),o=!1};this.toggle=function(){Zt(a,r)&&o?m():p()},d in t||(u[Tt]("tabindex","0"),ie(document,at,h)),t[d]=this};ue(d,we,i);var Ce=function(i,a){i=ee(i);var l=i[xt](T)||i[xt]("href"),r=ee(l),c=Zt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(Zt(i,"modal")&&(i=null),c){a=a||{},this[W]=a[W]!==!1&&"false"!==c[xt](x),this[N]=a[N]!==s&&c[xt](b)!==s||s,this[N]=a[N]!==!1&&"false"!==c[xt](b)&&this[N],this[$]=a[$];var m,v,g,y,w=this,C=this.open=!1,I=null,A=te(e,Ut).concat(te(e,Xt)),L=function(){var n=e[Ct]();return t[_]||n[Ot]-Math.abs(n[jt])},E=function(){var e,i=n.currentStyle||t.getComputedStyle(n),o=parseInt(i[d],10);if(m&&(n[Bt][d]=o+g+"px",A[Mt]))for(var a=0;a<A[Mt];a++)e=t.getComputedStyle(A[a])[d],A[a][Bt][d]=parseInt(e)+g+"px"},M=function(){if(n[Bt][d]="",A[Mt])for(var t=0;t<A[Mt];t++)A[t][Bt][d]=""},k=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[V]-e[K],n.removeChild(e),t},S=function(){m=n[K]<L(),v=c[et]>e[Q],g=k()},H=function(){c[Bt][f]=!m&&v?g+"px":"",c[Bt][d]=m&&!v?g+"px":""},B=function(){c[Bt][f]="",c[Bt][d]=""},D=function(){var t=document.createElement("div");y=ee("."+p),null===y&&(t[Tt]("class",p+" fade"),y=t,n.appendChild(y))},P=function(){y=ee("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},O=function(){Zt(c,Nt)?oe(document,rt,U):ie(document,rt,U)},q=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},z=function(){Zt(c,Nt)?oe(c,at,X):ie(c,at,X)},R=function(t){var e=t[j];e=e[yt](T)||e[yt]("href")?e:e[Et],C||e!==i||Zt(c,Nt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},X=function(t){var e=t[j];C&&(e[Et][xt](o)===u||e[xt](o)===u||e===c&&w[N]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Zt(c,Nt)?this.hide():this.show()},this.show=function(){re.call(c,st,u,I);var t=te(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[N]&&D(),y&&!Zt(y,Nt)&&setTimeout(function(){Qt(y,Nt)},0),setTimeout(function(){c[Bt].display="block",S(),E(),H(),q(),z(),O(),Qt(n,u+"-open"),Qt(c,Nt),c[Tt](ot,!1),le(c,function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)})},Gt?150:0)},this.hide=function(){re.call(c,dt,u),y=ee("."+p),Vt(c,Nt),c[Tt](ot,!0),!!y&&Vt(y,Nt),setTimeout(function(){le(c,function(){q(),z(),O(),c[Bt].display="",C=w.open=!1,i&&Kt(i),re.call(c,ht,u),setTimeout(function(){te(document,u+" "+Nt)[0]||(B(),M(),Vt(n,u+"-open"),P())},100)})},Gt?150:0)},this.setContent=function(t){ee("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),E(),H())},!i||h in i||ie(i,at,R),this[$]&&this.setContent(this[$]),!!i&&(i[h]=this)}};ue(h,Ce,i);var Ie=function(e,i){e=ee(e);var o=e[xt](E),a=e[xt](M),l=e[xt](S),r=e[xt](L),c=e[xt](H),u=e[xt](k),s="popover",f="template",d="trigger",h="class",m="div",v="fade",g="data-title",b="data-content",x="dismissible",T='<button type="button" class="close">×</button>',y=ne(e,".modal"),w=ne(e,"."+Ut),C=ne(e,"."+Xt);i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||lt,this[z]=i[z]&&i[z]!==v?i[z]:a||v,this[R]=i[R]?i[R]:l||qt,this[P]=parseInt(i[P]||c)||200,this[x]=!(!i[x]&&"true"!==r),this[U]=ee(i[U])?ee(i[U]):ee(u)?ee(u):w?w:C?C:y?y:n;var I=this,A=e[xt](g)||null,B=e[xt](b)||null;if(B||this[f]){var D=null,N=0,W=this[R],$=function(t){null!==D&&t[j]===ee(".close",D)&&I.hide()},O=function(){I[U].removeChild(D),N=null,D=null},q=function(){if(A=e[xt](g),B=e[xt](b),D=document.createElement(m),null!==B&&null===I[f]){if(D[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=I[x]?A+T:A,D.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),D.appendChild(n),D.appendChild(i),i.innerHTML=I[x]&&null===A?B+T:B}else{var o=document.createElement(m);o.innerHTML=I[f],D.innerHTML=o.firstChild.innerHTML}I[U].appendChild(D),D[Bt].display="block",D[Tt](h,s+" "+W+" "+I[z])},X=function(){!Zt(D,Nt)&&Qt(D,Nt)},Y=function(){me(e,D,W,I[U]),he(D)||(W=ve(W),me(e,D,W,I[U]))};this.toggle=function(){null===D?I.show():I.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===D&&(W=I[R],q(),Y(),X(),re.call(e,st,s),le(D,function(){re.call(e,ft,s)}))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){D&&null!==D&&Zt(D,Nt)&&(re.call(e,dt,s),Vt(D,Nt),le(D,function(){O(),re.call(e,ht,s)}))},I[P])},p in e||(I[d]===lt?(ie(e,Yt[0],I.show),I[x]||ie(e,Yt[1],I.hide)):/^(click|focus)$/.test(I[d])&&(ie(e,I[d],I.toggle),I[x]||ie(e,"blur",I.hide)),I[x]&&ie(document,at,$),!Rt&&ie(t,ct,I.hide)),e[p]=I}};ue(p,Ie,i);var Ae=function(e,n){e=ee(e);var i=ee(e[xt](T));if(n=n||{},n[j]||i){for(var o,a=n[j]&&ee(n[j])||i,l=a&&a[wt]("A"),r=[],c=[],u=e[Z]<e[et]?e:t,s=u===t,f=0,d=l[Mt];f<d;f++){var h=l[f][xt]("href"),p=h&&se.test(h)&&ee(h);p&&(r.push(l[f]),c.push(p))}var v=function(t){var n=r[t][Et],i=c[t],a=ne(n,".dropdown"),l=s&&i[Ct](),u=Zt(n,Dt)||!1,f=s?l[qt]+o:i[X]-(c[t-1]?0:10),d=s?l[zt]+o:c[t+1]?c[t+1][X]:e[et],h=o>=f&&d>o;if(!u&&h)"LI"!==n.tagName||Zt(n,Dt)||(Qt(n,Dt),u=!0,a&&!Zt(a,Dt)&&Qt(a,Dt),re.call(e,"activate","scrollspy",r[t]));else if(h){if(!h&&!u||u&&h)return}else"LI"===n.tagName&&Zt(n,Dt)&&(Vt(n,Dt),u=!1,a&&Zt(a,Dt)&&!te(n[Et],Dt).length&&Vt(a,Dt))},g=function(){o=s?pe().y:e[G];for(var t=0,n=r[Mt];t<n;t++)v(t)};this.refresh=function(){g()},m in e||(ie(u,ut,this.refresh),!Rt&&ie(t,ct,this.refresh)),this.refresh(),e[m]=this}};ue(m,Ae,a);var Le=function(t,e){t=ee(t);var n=t[xt](w),o="tab",a="height",l="isAnimating";t[l]=!1,e=e||{},this[a]=!!Gt&&(e[a]||"true"===n);var r,c,u=this,s=ne(t,".nav"),f=s&&ee(".dropdown",s);if(s){var d=function(){var t,e=te(s,Dt);return 1!==e[Mt]||Zt(e[0],"dropdown")?e[Mt]>1&&(t=e[e[Mt]-1]):t=e[0],t[wt]("A")[0]},h=function(){return ee(d()[xt]("href"))},p=function(t){t.preventDefault(),r=t[j][xt](i)===o||se.test(t[j][xt]("href"))?t[j]:t[j][Et],u.show()};this.show=function(){var e=ee(r[xt]("href")),n=d(),i=h();n[l]&&r[l]||Zt(r[Et],Dt)||(n[l]=r[l]=!0,Vt(n[Et],Dt),Qt(r[Et],Dt),f&&(Zt(t[Et][Et],"dropdown-menu")?Zt(f,Dt)||Qt(f,Dt):Zt(f,Dt)&&Vt(f,Dt)),c&&(c[Bt][a]=de(i)+"px"),function(){Vt(i,Nt),re.call(n,dt,o,r),function(){le(i,function(){Vt(i,Dt),Qt(e,Dt),setTimeout(function(){Qt(e,Nt),e[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,n),function(){c&&(c[Bt][a]=de(e)+"px"),re.call(n,ht,o,r)}()}()},20)})}()}(),function(){le(e,function(){re.call(r,ft,o,n),c?!function(){le(c,function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},v in t||ie(t,at,p),this[a]&&(c=h()[Et]),t[v]=this}};ue(v,Le,i);var Ee=function(t,e){t=ee(t);var i=t[xt](M),o=t[xt](S),a=t[xt](H),l=t[xt](k),r="tooltip",c="class",u="title",s="fade",f="div",d=ne(t,".modal"),h=ne(t,"."+Ut),p=ne(t,"."+Xt);e=e||{},this[z]=e[z]&&e[z]!==s?e[z]:i||s,this[R]=e[R]?e[R]:o||qt,this[P]=parseInt(e[P]||a)||200,this[U]=ee(e[U])?ee(e[U]):ee(l)?ee(l):h?h:p?p:d?d:n;var m=this,v=0,b=this[R],x=null,T=t[xt](u)||t[xt](I);if(T){var y=function(){m[U].removeChild(x),x=null,v=null},w=function(){T=t[xt](u)||t[xt](I),x=document.createElement(f),x[Tt]("role",r);var e=document.createElement(f),n=document.createElement(f);e[Tt](c,r+"-arrow"),n[Tt](c,r+"-inner"),x.appendChild(e),x.appendChild(n),n.innerHTML=T,m[U].appendChild(x),x[Tt](c,r+" "+b+" "+m[z])},C=function(){me(t,x,b,m[U]),he(x)||(b=ve(b),me(t,x,b,m[U]))},A=function(){!Zt(x,Nt)&&Qt(x,Nt)};this.show=function(){clearTimeout(v),v=setTimeout(function(){null===x&&(b=m[R],w(),C(),A(),re.call(t,st,r),le(x,function(){re.call(t,ft,r)}))},20)},this.hide=function(){clearTimeout(v),v=setTimeout(function(){x&&null!==x&&Zt(x,Nt)&&(re.call(t,dt,r),Vt(x,Nt),le(x,function(){y(),re.call(t,ht,r)}))},m[P])},this.toggle=function(){x?m.hide():m.show()},g in t||(t[Tt](I,T),t.removeAttribute(u),ie(t,Yt[0],this.show),ie(t,Yt[1],this.hide)),t[g]=this}};return ue(g,Ee,i),{Affix:ge,Alert:be,Button:xe,Carousel:Te,Collapse:ye,Dropdown:we,Modal:Ce,Popover:Ie,ScrollSpy:Ae,Tab:Le,Tooltip:Ee}}); |
@@ -41,3 +41,3 @@ | ||
// also find fixed-top / fixed-bottom items | ||
fixedItems = getElementsByClassName(doc,'navbar-fixed-top').concat(getElementsByClassName(doc,'navbar-fixed-bottom')), | ||
fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)), | ||
@@ -44,0 +44,0 @@ // private methods |
@@ -38,4 +38,4 @@ | ||
// maybe the element is inside a fixed navbar | ||
navbarFixedTop = getClosest(element,fixedTop), | ||
navbarFixedBottom = getClosest(element,fixedBottom); | ||
navbarFixedTop = getClosest(element,'.'+fixedTop), | ||
navbarFixedBottom = getClosest(element,'.'+fixedBottom); | ||
@@ -42,0 +42,0 @@ // set options |
@@ -13,4 +13,4 @@ | ||
// DATA API | ||
var animationData = element[getAttribute](dataAnimation); | ||
placementData = element[getAttribute](dataPlacement); | ||
var animationData = element[getAttribute](dataAnimation), | ||
placementData = element[getAttribute](dataPlacement), | ||
delayData = element[getAttribute](dataDelay), | ||
@@ -30,4 +30,4 @@ containerData = element[getAttribute](dataContainer), | ||
// maybe the element is inside a fixed navbar | ||
navbarFixedTop = getClosest(element,fixedTop), | ||
navbarFixedBottom = getClosest(element,fixedBottom); | ||
navbarFixedTop = getClosest(element,'.'+fixedTop), | ||
navbarFixedBottom = getClosest(element,'.'+fixedBottom); | ||
@@ -34,0 +34,0 @@ // set options |
@@ -113,4 +113,4 @@ | ||
// tooltip / popover | ||
fixedTop = '.navbar-fixed-top', | ||
fixedBottom = '.navbar-fixed-bottom', | ||
fixedTop = 'navbar-fixed-top', | ||
fixedBottom = 'navbar-fixed-bottom', | ||
mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ], | ||
@@ -117,0 +117,0 @@ tipPositions = /\b(top|bottom|left|top)+/, |
@@ -41,3 +41,3 @@ | ||
// also find fixed-top / fixed-bottom items | ||
fixedItems = getElementsByClassName(doc,'fixed-top').concat(getElementsByClassName(doc,'fixed-bottom')), | ||
fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)), | ||
@@ -44,0 +44,0 @@ |
@@ -38,4 +38,4 @@ | ||
// maybe the element is inside a fixed navbar | ||
navbarFixedTop = getClosest(element,fixedTop), | ||
navbarFixedBottom = getClosest(element,fixedBottom); | ||
navbarFixedTop = getClosest(element,'.'+fixedTop), | ||
navbarFixedBottom = getClosest(element,'.'+fixedBottom); | ||
@@ -42,0 +42,0 @@ // set options |
@@ -13,4 +13,4 @@ | ||
// DATA API | ||
var animationData = element[getAttribute](dataAnimation); | ||
placementData = element[getAttribute](dataPlacement); | ||
var animationData = element[getAttribute](dataAnimation), | ||
placementData = element[getAttribute](dataPlacement), | ||
delayData = element[getAttribute](dataDelay), | ||
@@ -30,4 +30,4 @@ containerData = element[getAttribute](dataContainer), | ||
// maybe the element is inside a fixed navbar | ||
navbarFixedTop = getClosest(element,fixedTop), | ||
navbarFixedBottom = getClosest(element,fixedBottom); | ||
navbarFixedTop = getClosest(element,'.'+fixedTop), | ||
navbarFixedBottom = getClosest(element,'.'+fixedBottom); | ||
@@ -34,0 +34,0 @@ // set options |
@@ -108,4 +108,4 @@ | ||
// tooltip / popover | ||
fixedTop = '.fixed-top', | ||
fixedBottom = '.fixed-bottom', | ||
fixedTop = 'fixed-top', | ||
fixedBottom = 'fixed-bottom', | ||
mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ], | ||
@@ -112,0 +112,0 @@ tipPositions = /\b(top|bottom|left|top)+/, |
{ | ||
"name": "bootstrap.native", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
769235
7637