From 9272083b397b786ed72d0a68ae51dcebe5c9f4d5 Mon Sep 17 00:00:00 2001 From: Piotr Chrusciel Date: Thu, 9 Feb 2017 14:37:33 +0100 Subject: [PATCH] Add comma before setting modalBackdropString var --- dist-v4/bootstrap-native.js | 2 +- dist-v4/bootstrap-native.min.js | 2 +- dist/bootstrap-native.js | 2 +- dist/bootstrap-native.min.js | 2 +- lib/V3/modal-native.js | 2 +- lib/V4/modal-native.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist-v4/bootstrap-native.js b/dist-v4/bootstrap-native.js index 27a6eaeb..4c20f022 100644 --- a/dist-v4/bootstrap-native.js +++ b/dist-v4/bootstrap-native.js @@ -833,7 +833,7 @@ component = 'modal', staticString = 'static', paddingLeft = 'paddingLeft', - paddingRight = 'paddingRight' + paddingRight = 'paddingRight', modalBackdropString = 'modal-backdrop'; if ( hasClass(element,'modal') ) { element = null; } // modal is now independent of it's triggering element diff --git a/dist-v4/bootstrap-native.min.js b/dist-v4/bootstrap-native.min.js index 396de080..f6b0edbd 100644 --- a/dist-v4/bootstrap-native.min.js +++ b/dist-v4/bootstrap-native.min.js @@ -1,2 +1,2 @@ // Native Javascript for Bootstrap 4 v2.0.3 | © 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=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),o="data-toggle",a="data-dismiss",l="data-spy",r="data-ride",s="Alert",c="Button",u="Carousel",d="Collapse",h="Dropdown",f="Modal",p="Popover",m="ScrollSpy",v="Tab",g="Tooltip",y="data-backdrop",T="data-keyboard",b="data-duration",x="data-target",w="data-interval",C="data-height",I="data-pause",A="data-original-title",S="data-dismissible",k="data-trigger",D="data-animation",E="data-container",L="data-placement",B="data-delay",M="backdrop",H="keyboard",N="delay",W="duration",P="content",$="target",R="interval",j="pause",O="animation",z="placement",q="container",F="offsetTop",U="offsetLeft",X="scrollTop",Y="scrollLeft",G="clientWidth",J="clientHeight",K="offsetWidth",Q="offsetHeight",V="innerWidth",Z="innerHeight",_="scrollHeight",tt="height",et="aria-expanded",nt="aria-hidden",it="click",ot="hover",at="keydown",lt="resize",rt="scroll",st="show",ct="shown",ut="hide",dt="hidden",ht="close",ft="closed",pt="slid",mt="slide",vt="change",gt="getAttribute",yt="setAttribute",Tt="hasAttribute",bt="getElementsByTagName",xt="getBoundingClientRect",wt="getElementsByClassName",Ct="indexOf",It="parentNode",At="length",St="active",kt="show",Dt="collapsing",Et="left",Lt="right",Bt="top",Mt="bottom",Ht="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Nt=/\b(top|bottom|left|top)+/,Wt=function(t){t.focus?t.focus():t.setActive()},Pt=function(t,e){t.classList.add(e)},$t=function(t,e){t.classList.remove(e)},Rt=function(t,e){return t.classList.contains(e)},jt=function(t,e){return[].slice.call(t[wt](e))},Ot=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},zt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[It]){if(("."===n||"#"!==n)&&null!==Ot(e,t[It]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},qt=function(t,e,n){t.addEventListener(e,n,!1)},Ft=function(t,e,n){t.removeEventListener(e,n,!1)},Ut=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Xt=document[bt]("*"),Yt=function(t,e,n,i){for(var o=i&&i[At]?i:Xt,a=0;a-1||l===r)&&new e(o[a])}},Gt=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[J]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},Jt=function(t){for(var e=0,n=0,i=t.children[At];n=0&&i[Et]>=0&&i[Mt]<=(t[Z]||e[J])&&i[Lt]<=(t[V]||e[G])},Qt=function(){return{y:t.pageYOffset||e[X],x:t.pageXOffset||e[Y]}},Vt=function(t,e,i,o){var a=t[xt](),l=o===n?Qt():{x:o[U]+o[Y],y:o[F]+o[X]},r={w:a[Lt]-a[Et],h:a[Mt]-a[Bt]},s={w:e[K],h:e[Q]};i===Bt?(e.style[Bt]=a[Bt]+l.y-s.h+"px",e.style[Et]=a[Et]+l.x-s.w/2+r.w/2+"px"):i===Mt?(e.style[Bt]=a[Bt]+l.y+r.h+"px",e.style[Et]=a[Et]+l.x-s.w/2+r.w/2+"px"):i===Et?(e.style[Bt]=a[Bt]+l.y-s.h/2+r.h/2+"px",e.style[Et]=a[Et]+l.x-s.w+"px"):i===Lt&&(e.style[Bt]=a[Bt]+l.y-s.h/2+r.h/2+"px",e.style[Et]=a[Et]+l.x+r.w+"px"),e.className[Ct](i)===-1&&(e.className=e.className.replace(Nt,i))},Zt=function(t){return t===Bt?Mt:t===Mt?Bt:t===Et?Lt:t===Lt?Et:t},_t=function(t){t=Ot(t);var e=this,n="alert",o=zt(t,"."+n),l=i&&i<10?0:300,r=function(i){var l=i[$];l=l[Tt](a)?l:l[It],l&&l[Tt](a)&&(o=zt(l,"."+n),t=Ot("["+a+'="'+n+'"]',o),(t===l||t===l[It])&&o&&e.close())};this.close=function(){o&&t&&Rt(o,kt)&&(Ut.call(o,ht,n),$t(o,kt),setTimeout(function(){o&&(Ut.call(o,ft,n),Ft(t,it,r),o[It].removeChild(o))},l))},s in t||qt(t,it,r),t[s]=this};Yt(s,_t,a);var te=function(t){t=Ot(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[$][It],s=l[$].tagName===o?l[$]:r.tagName===o?r:null;if(s){var c=this,u=jt(c,"btn"),d=s[bt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?($t(s,St),d[gt](i),d.removeAttribute(i),d[i]=!1):(Pt(s,St),d[gt](i),d[yt](i,i),d[i]=!0),e||(e=!0,Ut.call(d,vt,n),Ut.call(t,vt,n))),"radio"===d.type&&!e&&!d[i]){Pt(s,St),d[yt](i,i),d[i]=!0,Ut.call(d,vt,n),Ut.call(t,vt,n),e=!0;for(var h=0,f=u[At];hm||n===x-1&&0===m)&&(C=p[d]=Lt),p.slideTo(m)}},M=function(t){if(t.preventDefault(),!g){var e=t.currentTarget||t.srcElement;e===S?(m++,C=p[d]=Et,m===x-1?m=x-1:m===x&&(m=0)):e===A&&(m--,C=p[d]=Lt,0===m?m=0:m<0&&(m=x-1)),p.slideTo(m)}},N=function(t){if(!g){switch(t.which){case 39:m++,C=p[d]=Et,m==x-1?m=x-1:m==x&&(m=0);break;case 37:m--,C=p[d]=Lt,0==m?m=0:m<0&&(m=x-1);break;default:return}p.slideTo(m)}},P=function(t){for(var e=0,n=D[At];e-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(u.href)||/\#$/.test(u[It].href))&&e.preventDefault()}},f=function(){Ut.call(a,st,l,r),Pt(a,kt),s[yt](et,!0),Ut.call(a,ct,l,r),qt(document,at,u),i=!0},p=function(){Ut.call(a,ut,l,r),$t(a,kt),s[yt](et,!1),Ut.call(a,dt,l,r),Ft(document,at,u),i=!1};this.toggle=function(){Rt(a,kt)&&i?p():f()},h in t||(s[yt]("tabindex","0"),qt(document,it,d)),t[h]=this};Yt(h,ie,o);var oe=function(o,l){o=Ot(o);var r=o[gt](x)||o[gt]("href"),s=Ot(r),c=Rt(o,"modal")?o:s,u="modal",d="static",h="paddingLeft",p="paddingRight";if(modalBackdropString="modal-backdrop",Rt(o,"modal")&&(o=null),c){l=l||{},this[H]=l[H]!==!1&&"false"!==c[gt](T),this[M]=l[M]!==d&&c[gt](y)!==d||d,this[M]=l[M]!==!1&&"false"!==c[gt](y)&&this[M],this[W]=i&&i<10?50:l[W]||parseInt(c[gt](b))||300,this[P]=l[P];var m,v,g,w,C=this,I=this.open=!1,A=null,S=function(){var n=e[xt]();return t[V]||n[Lt]-Math.abs(n[Et])},k=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[p],10);m&&(n.style[p]=i+g+"px")},D=function(){n.style[p]=""},E=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[K]-e[G],n.removeChild(e),t},L=function(){m=n[G]e[J],g=E()},B=function(){c.style[h]=!m&&v?g+"px":"",c.style[p]=m&&!v?g+"px":""},N=function(){c.style[h]="",c.style[p]=""},R=function(){var t=document.createElement("div");w=Ot("."+modalBackdropString),null===w&&(t[yt]("class",modalBackdropString+" fade"),w=t,n.appendChild(w))},j=function(){w=Ot("."+modalBackdropString),w&&null!==w&&"object"==typeof w&&(n.removeChild(w),w=null)},O=function(){Rt(c,kt)?Ft(document,at,U):qt(document,at,U)},z=function(){Rt(c,kt)?Ft(t,lt,C.update):qt(t,lt,C.update)},q=function(){Rt(c,kt)?Ft(c,it,X):qt(c,it,X)},F=function(t){var e=t[$];e=e[Tt](x)||e[Tt]("href")?e:e[It],I||e!==o||Rt(c,kt)||(c.modalTrigger=o,A=o,C.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;C[H]&&27==e&&I&&C.hide()},X=function(t){var e=t[$];I&&(e[It][gt](a)===u||e[gt](a)===u||e===c&&C[M]!==d)&&(C.hide(),A=null,t.preventDefault())};this.toggle=function(){I&&Rt(c,kt)?this.hide():this.show()},this.show=function(){Ut.call(c,st,u,A);var t=jt(document,u+" in")[0];t&&t!==c&&t.modalTrigger[f].hide(),this[M]&&R(),w&&!Rt(w,kt)&&setTimeout(function(){Pt(w,kt)},0),setTimeout(function(){c.style.display="block",L(),k(),B(),z(),q(),O(),Pt(n,u+"-open"),Pt(c,kt),c[yt](nt,!1)},this[W]/2),setTimeout(function(){I=C.open=!0,Wt(c),Ut.call(c,ct,u,A)},this[W])},this.hide=function(){Ut.call(c,ut,u),w=Ot("."+modalBackdropString),null!==w&&$t(w,kt),$t(c,kt),c[yt](nt,!0),setTimeout(function(){$t(n,u+"-open"),z(),q(),O(),N(),D(),c.style.display=""},this[W]/2),setTimeout(function(){jt(document,u+" "+kt)[0]||j(),I=C.open=!1,o&&Wt(o),Ut.call(c,dt,u)},this[W])},this.setContent=function(t){Ot("."+u+"-content",c).innerHTML=t},this.update=function(){I&&(L(),k(),B())},!o||f in o||qt(o,it,F),this[P]&&this.setContent(this[P]),!!o&&(o[f]=this)}};Yt(f,oe,o);var ae=function(e,o){e=Ot(e);var a=e[gt](k),l=e[gt](D),r=e[gt](b),s=e[gt](L),c=e[gt](S),u=e[gt](B),d=e[gt](E),h="popover",f="template",m="trigger",v="class",g="div",y="fade",T="data-title",x="data-content",w="dismissible",C='';o=o||{},this[f]=o[f]?o[f]:null,this[m]=o[m]?o[m]:a||ot,this[O]=o[O]&&o[O]!==y?o[O]:l||y,this[z]=o[z]?o[z]:s||Bt,this[N]=parseInt(o[N]||u)||100,this[w]=!(!o[w]&&"true"!==c),this[W]=i&&i<10?0:parseInt(o[W]||r)||150,this[q]=Ot(o[q])||Ot(d)||n;var I=this,A=e[gt](T)||null,M=e[gt](x)||null;if(M||this[f]){var H=null,P=0,R=this[z],j=function(t){null!==H&&t[$]===Ot(".close",H)&&I.hide()},F=function(){I[q].removeChild(H),P=null,H=null},U=function(){if(A=e[gt](T),M=e[gt](x),H=document.createElement(g),null!==M&&null===I[f]){if(H[yt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[yt](v,h+"-title"),t.innerHTML=I[w]?A+C:A,H.appendChild(t)}var n=document.createElement(g);n[yt](v,h+"-content"),n.innerHTML=I[w]&&null===A?M+C:M,H.appendChild(n)}else{var i=document.createElement(g);i.innerHTML=I[f],H.innerHTML=i.firstChild.innerHTML}I[q].appendChild(H),H.style.display="block",H[yt](v,h+" "+h+"-"+R+" "+I[O])},X=function(){!Rt(H,kt)&&Pt(H,kt)},Y=function(){Vt(e,H,R,I[q]),Kt(H)||(R=Zt(R),Vt(e,H,R,I[q]))};this.toggle=function(){null===H?I.show():I.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===H&&(R=I[z],U(),Y(),X(),Ut.call(e,st,h),setTimeout(function(){Ut.call(e,ct,h)},I[W]))},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){H&&null!==H&&Rt(H,kt)&&(Ut.call(e,ut,h),$t(H,kt),setTimeout(function(){F(),Ut.call(e,dt,h)},I[W]))},I[N])},p in e||(I[m]===ot?(qt(e,Ht[0],I.show),I[w]||qt(e,Ht[1],I.hide)):/^(click|focus)$/.test(I[m])&&(qt(e,I[m],I.toggle),I[w]||qt(e,"blur",I.hide)),I[w]&&qt(document,it,j),i&&i<9||qt(t,lt,I.hide)),e[p]=I}};Yt(p,ae,o);var le=function(e,n){e=Ot(e);var o=Ot(e[gt](x));if(n=n||{},n[$]||o){for(var a,l=n[$]&&Ot(n[$])||o,r=l&&l[bt]("A"),s=[],c=[],u=e[Q]=h&&f>a;if(!u&&p)Rt(n,St)||(Pt(n,St),u=!0,l&&!Rt(l,St)&&Pt(l,St),Ut.call(e,"activate","scrollspy",s[t]));else if(p){if(!p&&!u||u&&p)return}else Rt(n,St)&&($t(n,St),u=!1,l&&Rt(l,St)&&!jt(n[It],St).length&&$t(l,St))},y=function(){a=d?Qt().y:e[X];for(var t=0,n=s[At];t1&&(t=e[e[At]-1]):t=e[0],t},p=function(){return Ot(f()[gt]("href"))},m=function(t){t.preventDefault(),s=t[$],u.show()};this.show=function(){var e=Ot(s[gt]("href")),n=f(),i=p();n[r]&&s[r]||Rt(s,St)||(n[r]=s[r]=!0,$t(n,St),Pt(s,St),h&&(Rt(t[It],"dropdown-menu")?Rt(h,St)||Pt(h,St):Rt(h,St)&&$t(h,St)),c&&(c.style[l]=Jt(i)+"px"),Ut.call(n,ut,a,s),setTimeout(function(){$t(i,kt)},10),setTimeout(function(){c&&Pt(c,Dt),$t(i,St),Pt(e,St),setTimeout(function(){Pt(e,kt)},10),Ut.call(s,st,a,n),Ut.call(n,dt,a,s),c&&(c.style[l]=Jt(e)+"px")},.7*u[W]),setTimeout(function(){Ut.call(s,ct,a,n),c&&($t(c,Dt),c.style[l]=""),n[r]=s[r]=!1},1.5*u[W]))},v in t||qt(t,it,m),this[l]&&(c=p()[It]),t[v]=this};Yt(v,re,o);var se=function(t,e){t=Ot(t);var o=t[gt](D);placementData=t[gt](L),durationData=t[gt](b),delayData=t[gt](B),containerData=t[gt](E),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[O]=e[O]&&e[O]!==fade?e[O]:o||fade,this[z]=e[z]?e[z]:placementData||Bt,this[N]=parseInt(e[N]||delayData)||100,this[W]=i&&i<10?0:parseInt(e[W]||durationData)||150,this[q]=Ot(e[q])||Ot(containerData)||n;var a=this,l=0,r=this[z],s=null,c=t[gt](title)||t[gt](A);if(c){var u=function(){a[q].removeChild(s),s=null,l=null},d=function(){c=t[gt](title)||t[gt](A),s=document.createElement(div),s[yt]("role",component);var e=document.createElement(div);e[yt](classString,component+"-inner"),s.appendChild(e),e.innerHTML=c,a[q].appendChild(s),s[yt](classString,component+" "+component+"-"+r+" "+a[O])},h=function(){Vt(t,s,r,a[q]),Kt(s)||(r=Zt(r),Vt(t,s,r,a[q]))},f=function(){!Rt(s,kt)&&Pt(s,kt)};this.show=function(){clearTimeout(l),l=setTimeout(function(){null===s&&(r=a[z],d(),h(),f(),Ut.call(t,st,component),setTimeout(function(){Ut.call(t,ct,component)},a[W]))},20)},this.hide=function(){clearTimeout(l),l=setTimeout(function(){s&&null!==s&&Rt(s,kt)&&(Ut.call(t,ut,component),$t(s,kt),setTimeout(function(){u(),Ut.call(t,dt,component)},a[W]))},a[N])},this.toggle=function(){s?a.hide():a.show()},g in t||(t[yt](A,c),t.removeAttribute(title),qt(t,Ht[0],this.show),qt(t,Ht[1],this.hide)),t[g]=this}};return Yt(g,se,o),{Alert:_t,Button:te,Carousel:ee,Collapse:ne,Dropdown:ie,Modal:oe,Popover:ae,ScrollSpy:le,Tab:re,Tooltip:se}}); +!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=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),o="data-toggle",l="data-dismiss",a="data-spy",r="data-ride",s="Alert",c="Button",u="Carousel",d="Collapse",h="Dropdown",f="Modal",p="Popover",m="ScrollSpy",v="Tab",g="Tooltip",y="data-backdrop",T="data-keyboard",b="data-duration",x="data-target",w="data-interval",C="data-height",I="data-pause",A="data-original-title",D="data-dismissible",E="data-trigger",L="data-animation",M="data-container",S="data-placement",k="data-delay",B="backdrop",H="keyboard",N="delay",W="duration",P="content",$="target",R="interval",j="pause",O="animation",z="placement",q="container",F="offsetTop",U="offsetLeft",X="scrollTop",Y="scrollLeft",G="clientWidth",J="clientHeight",K="offsetWidth",Q="offsetHeight",V="innerWidth",Z="innerHeight",_="scrollHeight",tt="height",et="aria-expanded",nt="aria-hidden",it="click",ot="hover",lt="keydown",at="resize",rt="scroll",st="show",ct="shown",ut="hide",dt="hidden",ht="close",ft="closed",pt="slid",mt="slide",vt="change",gt="getAttribute",yt="setAttribute",Tt="hasAttribute",bt="getElementsByTagName",xt="getBoundingClientRect",wt="getElementsByClassName",Ct="indexOf",It="parentNode",At="length",Dt="active",Et="show",Lt="collapsing",Mt="left",St="right",kt="top",Bt="bottom",Ht="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Nt=/\b(top|bottom|left|top)+/,Wt=function(t){t.focus?t.focus():t.setActive()},Pt=function(t,e){t.classList.add(e)},$t=function(t,e){t.classList.remove(e)},Rt=function(t,e){return t.classList.contains(e)},jt=function(t,e){return[].slice.call(t[wt](e))},Ot=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},zt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[It]){if(("."===n||"#"!==n)&&null!==Ot(e,t[It]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},qt=function(t,e,n){t.addEventListener(e,n,!1)},Ft=function(t,e,n){t.removeEventListener(e,n,!1)},Ut=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Xt=document[bt]("*"),Yt=function(t,e,n,i){for(var o=i&&i[At]?i:Xt,l=0;l-1||a===r)&&new e(o[l])}},Gt=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,l=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,a=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[J]+parseInt(i)+parseInt(o)+parseInt(l)+parseInt(a)},Jt=function(t){for(var e=0,n=0,i=t.children[At];n=0&&i[Mt]>=0&&i[Bt]<=(t[Z]||e[J])&&i[St]<=(t[V]||e[G])},Qt=function(){return{y:t.pageYOffset||e[X],x:t.pageXOffset||e[Y]}},Vt=function(t,e,i,o){var l=t[xt](),a=o===n?Qt():{x:o[U]+o[Y],y:o[F]+o[X]},r={w:l[St]-l[Mt],h:l[Bt]-l[kt]},s={w:e[K],h:e[Q]};i===kt?(e.style[kt]=l[kt]+a.y-s.h+"px",e.style[Mt]=l[Mt]+a.x-s.w/2+r.w/2+"px"):i===Bt?(e.style[kt]=l[kt]+a.y+r.h+"px",e.style[Mt]=l[Mt]+a.x-s.w/2+r.w/2+"px"):i===Mt?(e.style[kt]=l[kt]+a.y-s.h/2+r.h/2+"px",e.style[Mt]=l[Mt]+a.x-s.w+"px"):i===St&&(e.style[kt]=l[kt]+a.y-s.h/2+r.h/2+"px",e.style[Mt]=l[Mt]+a.x+r.w+"px"),e.className[Ct](i)===-1&&(e.className=e.className.replace(Nt,i))},Zt=function(t){return t===kt?Bt:t===Bt?kt:t===Mt?St:t===St?Mt:t},_t=function(t){t=Ot(t);var e=this,n="alert",o=zt(t,"."+n),a=i&&i<10?0:300,r=function(i){var a=i[$];a=a[Tt](l)?a:a[It],a&&a[Tt](l)&&(o=zt(a,"."+n),t=Ot("["+l+'="'+n+'"]',o),(t===a||t===a[It])&&o&&e.close())};this.close=function(){o&&t&&Rt(o,Et)&&(Ut.call(o,ht,n),$t(o,Et),setTimeout(function(){o&&(Ut.call(o,ft,n),Ft(t,it,r),o[It].removeChild(o))},a))},s in t||qt(t,it,r),t[s]=this};Yt(s,_t,l);var te=function(t){t=Ot(t);var e=!1,n="button",i="checked",o="LABEL",l="INPUT",a=function(a){var r=a[$][It],s=a[$].tagName===o?a[$]:r.tagName===o?r:null;if(s){var c=this,u=jt(c,"btn"),d=s[bt](l)[0];if(d){if("checkbox"===d.type&&(d[i]?($t(s,Dt),d[gt](i),d.removeAttribute(i),d[i]=!1):(Pt(s,Dt),d[gt](i),d[yt](i,i),d[i]=!0),e||(e=!0,Ut.call(d,vt,n),Ut.call(t,vt,n))),"radio"===d.type&&!e&&!d[i]){Pt(s,Dt),d[yt](i,i),d[i]=!0,Ut.call(d,vt,n),Ut.call(t,vt,n),e=!0;for(var h=0,f=u[At];hm||n===x-1&&0===m)&&(C=p[d]=St),p.slideTo(m)}},B=function(t){if(t.preventDefault(),!g){var e=t.currentTarget||t.srcElement;e===D?(m++,C=p[d]=Mt,m===x-1?m=x-1:m===x&&(m=0)):e===A&&(m--,C=p[d]=St,0===m?m=0:m<0&&(m=x-1)),p.slideTo(m)}},N=function(t){if(!g){switch(t.which){case 39:m++,C=p[d]=Mt,m==x-1?m=x-1:m==x&&(m=0);break;case 37:m--,C=p[d]=St,0==m?m=0:m<0&&(m=x-1);break;default:return}p.slideTo(m)}},P=function(t){for(var e=0,n=L[At];e-1)&&(n.persist||a))return;r=null,p()}(/\#$/.test(u.href)||/\#$/.test(u[It].href))&&e.preventDefault()}},f=function(){Ut.call(l,st,a,r),Pt(l,Et),s[yt](et,!0),Ut.call(l,ct,a,r),qt(document,lt,u),i=!0},p=function(){Ut.call(l,ut,a,r),$t(l,Et),s[yt](et,!1),Ut.call(l,dt,a,r),Ft(document,lt,u),i=!1};this.toggle=function(){Rt(l,Et)&&i?p():f()},h in t||(s[yt]("tabindex","0"),qt(document,it,d)),t[h]=this};Yt(h,ie,o);var oe=function(o,a){o=Ot(o);var r=o[gt](x)||o[gt]("href"),s=Ot(r),c=Rt(o,"modal")?o:s,u="modal",d="static",h="paddingLeft",p="paddingRight",m="modal-backdrop";if(Rt(o,"modal")&&(o=null),c){a=a||{},this[H]=a[H]!==!1&&"false"!==c[gt](T),this[B]=a[B]!==d&&c[gt](y)!==d||d,this[B]=a[B]!==!1&&"false"!==c[gt](y)&&this[B],this[W]=i&&i<10?50:a[W]||parseInt(c[gt](b))||300,this[P]=a[P];var v,g,w,C,I=this,A=this.open=!1,D=null,E=function(){var n=e[xt]();return t[V]||n[St]-Math.abs(n[Mt])},L=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[p],10);v&&(n.style[p]=i+w+"px")},M=function(){n.style[p]=""},S=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[K]-e[G],n.removeChild(e),t},k=function(){v=n[G]e[J],w=S()},N=function(){c.style[h]=!v&&g?w+"px":"",c.style[p]=v&&!g?w+"px":""},R=function(){c.style[h]="",c.style[p]=""},j=function(){var t=document.createElement("div");C=Ot("."+m),null===C&&(t[yt]("class",m+" fade"),C=t,n.appendChild(C))},O=function(){C=Ot("."+m),C&&null!==C&&"object"==typeof C&&(n.removeChild(C),C=null)},z=function(){Rt(c,Et)?Ft(document,lt,X):qt(document,lt,X)},q=function(){Rt(c,Et)?Ft(t,at,I.update):qt(t,at,I.update)},F=function(){Rt(c,Et)?Ft(c,it,Y):qt(c,it,Y)},U=function(t){var e=t[$];e=e[Tt](x)||e[Tt]("href")?e:e[It],A||e!==o||Rt(c,Et)||(c.modalTrigger=o,D=o,I.show(),t.preventDefault())},X=function(t){var e=t.which||t.keyCode;I[H]&&27==e&&A&&I.hide()},Y=function(t){var e=t[$];A&&(e[It][gt](l)===u||e[gt](l)===u||e===c&&I[B]!==d)&&(I.hide(),D=null,t.preventDefault())};this.toggle=function(){A&&Rt(c,Et)?this.hide():this.show()},this.show=function(){Ut.call(c,st,u,D);var t=jt(document,u+" in")[0];t&&t!==c&&t.modalTrigger[f].hide(),this[B]&&j(),C&&!Rt(C,Et)&&setTimeout(function(){Pt(C,Et)},0),setTimeout(function(){c.style.display="block",k(),L(),N(),q(),F(),z(),Pt(n,u+"-open"),Pt(c,Et),c[yt](nt,!1)},this[W]/2),setTimeout(function(){A=I.open=!0,Wt(c),Ut.call(c,ct,u,D)},this[W])},this.hide=function(){Ut.call(c,ut,u),C=Ot("."+m),null!==C&&$t(C,Et),$t(c,Et),c[yt](nt,!0),setTimeout(function(){$t(n,u+"-open"),q(),F(),z(),R(),M(),c.style.display=""},this[W]/2),setTimeout(function(){jt(document,u+" "+Et)[0]||O(),A=I.open=!1,o&&Wt(o),Ut.call(c,dt,u)},this[W])},this.setContent=function(t){Ot("."+u+"-content",c).innerHTML=t},this.update=function(){A&&(k(),L(),N())},!o||f in o||qt(o,it,U),this[P]&&this.setContent(this[P]),!!o&&(o[f]=this)}};Yt(f,oe,o);var le=function(e,o){e=Ot(e);var l=e[gt](E),a=e[gt](L),r=e[gt](b),s=e[gt](S),c=e[gt](D),u=e[gt](k),d=e[gt](M),h="popover",f="template",m="trigger",v="class",g="div",y="fade",T="data-title",x="data-content",w="dismissible",C='';o=o||{},this[f]=o[f]?o[f]:null,this[m]=o[m]?o[m]:l||ot,this[O]=o[O]&&o[O]!==y?o[O]:a||y,this[z]=o[z]?o[z]:s||kt,this[N]=parseInt(o[N]||u)||100,this[w]=!(!o[w]&&"true"!==c),this[W]=i&&i<10?0:parseInt(o[W]||r)||150,this[q]=Ot(o[q])||Ot(d)||n;var I=this,A=e[gt](T)||null,B=e[gt](x)||null;if(B||this[f]){var H=null,P=0,R=this[z],j=function(t){null!==H&&t[$]===Ot(".close",H)&&I.hide()},F=function(){I[q].removeChild(H),P=null,H=null},U=function(){if(A=e[gt](T),B=e[gt](x),H=document.createElement(g),null!==B&&null===I[f]){if(H[yt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[yt](v,h+"-title"),t.innerHTML=I[w]?A+C:A,H.appendChild(t)}var n=document.createElement(g);n[yt](v,h+"-content"),n.innerHTML=I[w]&&null===A?B+C:B,H.appendChild(n)}else{var i=document.createElement(g);i.innerHTML=I[f],H.innerHTML=i.firstChild.innerHTML}I[q].appendChild(H),H.style.display="block",H[yt](v,h+" "+h+"-"+R+" "+I[O])},X=function(){!Rt(H,Et)&&Pt(H,Et)},Y=function(){Vt(e,H,R,I[q]),Kt(H)||(R=Zt(R),Vt(e,H,R,I[q]))};this.toggle=function(){null===H?I.show():I.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===H&&(R=I[z],U(),Y(),X(),Ut.call(e,st,h),setTimeout(function(){Ut.call(e,ct,h)},I[W]))},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){H&&null!==H&&Rt(H,Et)&&(Ut.call(e,ut,h),$t(H,Et),setTimeout(function(){F(),Ut.call(e,dt,h)},I[W]))},I[N])},p in e||(I[m]===ot?(qt(e,Ht[0],I.show),I[w]||qt(e,Ht[1],I.hide)):/^(click|focus)$/.test(I[m])&&(qt(e,I[m],I.toggle),I[w]||qt(e,"blur",I.hide)),I[w]&&qt(document,it,j),i&&i<9||qt(t,at,I.hide)),e[p]=I}};Yt(p,le,o);var ae=function(e,n){e=Ot(e);var o=Ot(e[gt](x));if(n=n||{},n[$]||o){for(var l,a=n[$]&&Ot(n[$])||o,r=a&&a[bt]("A"),s=[],c=[],u=e[Q]=h&&f>l;if(!u&&p)Rt(n,Dt)||(Pt(n,Dt),u=!0,a&&!Rt(a,Dt)&&Pt(a,Dt),Ut.call(e,"activate","scrollspy",s[t]));else if(p){if(!p&&!u||u&&p)return}else Rt(n,Dt)&&($t(n,Dt),u=!1,a&&Rt(a,Dt)&&!jt(n[It],Dt).length&&$t(a,Dt))},y=function(){l=d?Qt().y:e[X];for(var t=0,n=s[At];t1&&(t=e[e[At]-1]):t=e[0],t},p=function(){return Ot(f()[gt]("href"))},m=function(t){t.preventDefault(),s=t[$],u.show()};this.show=function(){var e=Ot(s[gt]("href")),n=f(),i=p();n[r]&&s[r]||Rt(s,Dt)||(n[r]=s[r]=!0,$t(n,Dt),Pt(s,Dt),h&&(Rt(t[It],"dropdown-menu")?Rt(h,Dt)||Pt(h,Dt):Rt(h,Dt)&&$t(h,Dt)),c&&(c.style[a]=Jt(i)+"px"),Ut.call(n,ut,l,s),setTimeout(function(){$t(i,Et)},10),setTimeout(function(){c&&Pt(c,Lt),$t(i,Dt),Pt(e,Dt),setTimeout(function(){Pt(e,Et)},10),Ut.call(s,st,l,n),Ut.call(n,dt,l,s),c&&(c.style[a]=Jt(e)+"px")},.7*u[W]),setTimeout(function(){Ut.call(s,ct,l,n),c&&($t(c,Lt),c.style[a]=""),n[r]=s[r]=!1},1.5*u[W]))},v in t||qt(t,it,m),this[a]&&(c=p()[It]),t[v]=this};Yt(v,re,o);var se=function(t,e){t=Ot(t);var o=t[gt](L);placementData=t[gt](S),durationData=t[gt](b),delayData=t[gt](k),containerData=t[gt](M),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[O]=e[O]&&e[O]!==fade?e[O]:o||fade,this[z]=e[z]?e[z]:placementData||kt,this[N]=parseInt(e[N]||delayData)||100,this[W]=i&&i<10?0:parseInt(e[W]||durationData)||150,this[q]=Ot(e[q])||Ot(containerData)||n;var l=this,a=0,r=this[z],s=null,c=t[gt](title)||t[gt](A);if(c){var u=function(){l[q].removeChild(s),s=null,a=null},d=function(){c=t[gt](title)||t[gt](A),s=document.createElement(div),s[yt]("role",component);var e=document.createElement(div);e[yt](classString,component+"-inner"),s.appendChild(e),e.innerHTML=c,l[q].appendChild(s),s[yt](classString,component+" "+component+"-"+r+" "+l[O])},h=function(){Vt(t,s,r,l[q]),Kt(s)||(r=Zt(r),Vt(t,s,r,l[q]))},f=function(){!Rt(s,Et)&&Pt(s,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===s&&(r=l[z],d(),h(),f(),Ut.call(t,st,component),setTimeout(function(){Ut.call(t,ct,component)},l[W]))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){s&&null!==s&&Rt(s,Et)&&(Ut.call(t,ut,component),$t(s,Et),setTimeout(function(){u(),Ut.call(t,dt,component)},l[W]))},l[N])},this.toggle=function(){s?l.hide():l.show()},g in t||(t[yt](A,c),t.removeAttribute(title),qt(t,Ht[0],this.show),qt(t,Ht[1],this.hide)),t[g]=this}};return Yt(g,se,o),{Alert:_t,Button:te,Carousel:ee,Collapse:ne,Dropdown:ie,Modal:oe,Popover:le,ScrollSpy:ae,Tab:re,Tooltip:se}}); diff --git a/dist/bootstrap-native.js b/dist/bootstrap-native.js index 43dfbbed..dbc800c8 100644 --- a/dist/bootstrap-native.js +++ b/dist/bootstrap-native.js @@ -992,7 +992,7 @@ component = 'modal', staticString = 'static', paddingLeft = 'paddingLeft', - paddingRight = 'paddingRight' + paddingRight = 'paddingRight', modalBackdropString = 'modal-backdrop'; if ( hasClass(element,'modal') ) { element = null; } // modal is now independent of it's triggering element diff --git a/dist/bootstrap-native.min.js b/dist/bootstrap-native.min.js index b5e9296c..57b919d1 100644 --- a/dist/bootstrap-native.min.js +++ b/dist/bootstrap-native.min.js @@ -1,2 +1,2 @@ // Native Javascript for Bootstrap 3 v2.0.3 | © 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=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),o="data-toggle",a="data-dismiss",l="data-spy",r="data-ride",s="Affix",c="Alert",u="Button",f="Carousel",d="Collapse",h="Dropdown",p="Modal",m="Popover",v="ScrollSpy",g="Tab",y="Tooltip",T="data-backdrop",x="data-keyboard",b="data-duration",w="data-target",I="data-interval",C="data-height",A="data-pause",L="data-original-title",S="data-original-text",E="data-dismissible",k="data-trigger",M="data-animation",D="data-container",B="data-placement",H="data-delay",N="data-offset-top",W="data-offset-bottom",$="backdrop",P="keyboard",R="delay",j="duration",z="content",O="target",q="interval",F="pause",U="animation",X="placement",Y="container",G="offsetTop",J="offsetBottom",K="offsetLeft",Q="scrollTop",V="scrollLeft",Z="clientWidth",_="clientHeight",tt="offsetWidth",et="offsetHeight",nt="innerWidth",it="innerHeight",ot="scrollHeight",at="height",lt="aria-expanded",rt="aria-hidden",st="click",ct="hover",ut="keydown",ft="resize",dt="scroll",ht="show",pt="shown",mt="hide",vt="hidden",gt="close",yt="closed",Tt="slid",xt="slide",bt="change",wt="getAttribute",It="setAttribute",Ct="hasAttribute",At="getElementsByTagName",Lt="getBoundingClientRect",St="querySelectorAll",Et="getElementsByClassName",kt="indexOf",Mt="parentNode",Dt="length",Bt="active",Ht="in",Nt="collapsing",Wt="disabled",$t="loading",Pt="left",Rt="right",jt="top",zt="bottom",Ot="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],qt=/\b(top|bottom|left|top)+/,Ft=function(t){t.focus?t.focus():t.setActive()},Ut=function(t,e){t.classList.add(e)},Xt=function(t,e){t.classList.remove(e)},Yt=function(t,e){return t.classList.contains(e)},Gt=function(t){for(var e=[],n=0,i=t[Dt];n-1||l===r)&&new e(o[a])}},ne=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[_]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ie=function(t){for(var e=0,n=0,i=t.children[Dt];n=0&&i[Pt]>=0&&i[zt]<=(t[it]||e[_])&&i[Rt]<=(t[nt]||e[Z])},ae=function(){return{y:t.pageYOffset||e[Q],x:t.pageXOffset||e[V]}},le=function(t,e,i,o){var a=t[Lt](),l=o===n?ae():{x:o[K]+o[V],y:o[G]+o[Q]},r={w:a[Rt]-a[Pt],h:a[zt]-a[jt]},s={w:e[tt],h:e[et]};i===jt?(e.style[jt]=a[jt]+l.y-s.h+"px",e.style[Pt]=a[Pt]+l.x-s.w/2+r.w/2+"px"):i===zt?(e.style[jt]=a[jt]+l.y+r.h+"px",e.style[Pt]=a[Pt]+l.x-s.w/2+r.w/2+"px"):i===Pt?(e.style[jt]=a[jt]+l.y-s.h/2+r.h/2+"px",e.style[Pt]=a[Pt]+l.x-s.w+"px"):i===Rt&&(e.style[jt]=a[jt]+l.y-s.h/2+r.h/2+"px",e.style[Pt]=a[Pt]+l.x+r.w+"px"),e.className[kt](i)===-1&&(e.className=e.className.replace(qt,i))},re=function(t){return t===jt?zt:t===zt?jt:t===Pt?Rt:t===Rt?Pt:t},se=function(o,a){o=Kt(o),a=a||{};var l=o[wt](w),r=o[wt](N),c=o[wt](W),u="affix",f="affixed",d="function",h="update",p="affix-top",m="affixed-top",v="affix-bottom",g="affixed-bottom";if(this[O]=a[O]?Kt(a[O]):Kt(l)||null,this[G]=a[G]?a[G]:parseInt(r)||0,this[J]=a[J]?a[J]:parseInt(c)||0,this[O]||this[G]||this[J]){var y,T,x,b,I,C,A=this,L=i&&i<10?500:50,S=!1,E=!1,k=function(){return Math.max(n[ot],n[et],e[_],e[ot],e[et])},M=function(){return null!==A[O]?A[O][Lt]()[jt]+b:A[G]?parseInt(typeof A[G]===d?A[G]():A[G]||0):void 0},D=function(){if(A[J])return x-o[et]-parseInt(typeof A[J]===d?A[J]():A[J]||0)},B=function(){x=k(),b=parseInt(ae().y,0),y=M(),T=D(),I=parseInt(y)-b<0&&b>parseInt(y),C=parseInt(T)-b<0&&b>parseInt(T)},H=function(){S||Yt(o,u)||(_t.call(o,u,u),_t.call(o,p,u),Ut(o,u),S=!0,_t.call(o,f,u),_t.call(o,m,u))},$=function(){S&&Yt(o,u)&&(Xt(o,u),S=!1)},P=function(){E||Yt(o,v)||(_t.call(o,u,u),_t.call(o,v,u),Ut(o,v),E=!0,_t.call(o,f,u),_t.call(o,g,u))},R=function(){E&&Yt(o,v)&&(Xt(o,v),E=!1)},j=function(){C?(I&&$(),P()):(R(),I?H():$())};this[h]=function(){B(),j()},s in o||(Vt(t,dt,this[h]),Vt(t,ft,function(){setTimeout(function(){A[h]()},L)})),o[s]=this,this[h]()}};ee(s,se,l);var ce=function(t){t=Kt(t);var e=this,n="alert",o=Qt(t,"."+n),l=i&&i<10?0:300,r=function(i){var l=i[O];l=l[Ct](a)?l:l[Mt],l&&l[Ct](a)&&(o=Qt(l,"."+n),t=Kt("["+a+'="'+n+'"]',o),(t===l||t===l[Mt])&&o&&e.close())};this.close=function(){o&&t&&Yt(o,Ht)&&(_t.call(o,gt,n),Xt(o,Ht),setTimeout(function(){o&&(_t.call(o,yt,n),Zt(t,st,r),o[Mt].removeChild(o))},l))},c in t||Vt(t,st,r),t[c]=this};ee(c,ce,a);var ue=function(t,e){t=Kt(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",s=function(){e&&e!==a&&(e===$t&&(Ut(t,Wt),t[It](Wt,Wt)),t[It](S,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[wt]("data-"+e+"-text"))},c=function(){t[wt](S)&&((Yt(t,Wt)||t[wt](Wt)===Wt)&&(Xt(t,Wt),t.removeAttribute(Wt)),t.innerHTML=t[wt](S))},f=function(e){var a=e[O][Mt],s=e[O].tagName===l?e[O]:a.tagName===l?a:null;if(s){var c=this,u=Jt(c,"btn"),f=s[At](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Xt(s,Bt),f[wt](o),f.removeAttribute(o),f[o]=!1):(Ut(s,Bt),f[wt](o),f[It](o,o),f[o]=!0),n||(n=!0,_t.call(f,bt,i),_t.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Ut(s,Bt),f[It](o,o),f[o]=!0,_t.call(f,bt,i),_t.call(t,bt,i),n=!0;for(var d=0,h=u[Dt];dp||n===y-1&&0===p)&&(T=h[u]=Rt),h.slideTo(p)}},B=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===L?(p++,T=h[u]=Pt,p===y-1?p=y-1:p===y&&(p=0)):e===C&&(p--,T=h[u]=Rt,0===p?p=0:p<0&&(p=y-1)),h.slideTo(p)}},H=function(t){if(!v){switch(t.which){case 39:p++,T=h[u]=Pt,p==y-1?p=y-1:p==y&&(p=0);break;case 37:p--,T=h[u]=Rt,0==p?p=0:p<0&&(p=y-1);break;default:return}h.slideTo(p)}},N=function(t){for(var e=0,n=E[Dt];e-1)&&(n.persist||l))return;s=null,m()}(/\#$/.test(r.href)||/\#$/.test(r[Mt].href))&&e.preventDefault()}},p=function(){_t.call(a,ht,l,s),Ut(a,r),c[It](lt,!0),_t.call(a,pt,l,s),Vt(document,ut,f),i=!0},m=function(){_t.call(a,mt,l,s),Xt(a,r),c[It](lt,!1),_t.call(a,vt,l,s),Zt(document,ut,f),i=!1};this.toggle=function(){Yt(a,r)&&i?m():p()},h in t||(c[It]("tabindex","0"),Vt(document,st,d)),t[h]=this};ee(h,he,o);var pe=function(o,l){o=Kt(o);var r=o[wt](w)||o[wt]("href"),s=Kt(r),c=Yt(o,"modal")?o:s,u="modal",f="static",d="paddingLeft",h="paddingRight";if(modalBackdropString="modal-backdrop",Yt(o,"modal")&&(o=null),c){l=l||{},this[P]=l[P]!==!1&&"false"!==c[wt](x),this[$]=l[$]!==f&&c[wt](T)!==f||f,this[$]=l[$]!==!1&&"false"!==c[wt](T)&&this[$],this[j]=i&&i<10?50:l[j]||parseInt(c[wt](b))||300,this[z]=l[z];var m,v,g,y,I=this,C=this.open=!1,A=null,L=function(){var n=e[Lt]();return t[nt]||n[Rt]-Math.abs(n[Pt])},S=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[h],10);m&&(n.style[h]=i+g+"px")},E=function(){n.style[h]=""},k=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[tt]-e[Z],n.removeChild(e),t},M=function(){m=n[Z]e[_],g=k()},D=function(){c.style[d]=!m&&v?g+"px":"",c.style[h]=m&&!v?g+"px":""},B=function(){c.style[d]="",c.style[h]=""},H=function(){var t=document.createElement("div");y=Kt("."+modalBackdropString),null===y&&(t[It]("class",modalBackdropString+" fade"),y=t,n.appendChild(y))},N=function(){y=Kt("."+modalBackdropString),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},W=function(){Yt(c,Ht)?Zt(document,ut,U):Vt(document,ut,U)},R=function(){Yt(c,Ht)?Zt(t,ft,I.update):Vt(t,ft,I.update)},q=function(){Yt(c,Ht)?Zt(c,st,X):Vt(c,st,X)},F=function(t){var e=t[O];e=e[Ct](w)||e[Ct]("href")?e:e[Mt],C||e!==o||Yt(c,Ht)||(c.modalTrigger=o,A=o,I.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;I[P]&&27==e&&C&&I.hide()},X=function(t){var e=t[O];C&&(e[Mt][wt](a)===u||e[wt](a)===u||e===c&&I[$]!==f)&&(I.hide(),A=null,t.preventDefault())};this.toggle=function(){C&&Yt(c,Ht)?this.hide():this.show()},this.show=function(){_t.call(c,ht,u,A);var t=Jt(document,u+" in")[0];t&&t!==c&&t.modalTrigger[p].hide(),this[$]&&H(),y&&!Yt(y,Ht)&&setTimeout(function(){Ut(y,Ht)},0),setTimeout(function(){c.style.display="block",M(),S(),D(),R(),q(),W(),Ut(n,u+"-open"),Ut(c,Ht),c[It](rt,!1)},this[j]/2),setTimeout(function(){C=I.open=!0,Ft(c),_t.call(c,pt,u,A)},this[j])},this.hide=function(){_t.call(c,mt,u),y=Kt("."+modalBackdropString),null!==y&&Xt(y,Ht),Xt(c,Ht),c[It](rt,!0),setTimeout(function(){Xt(n,u+"-open"),R(),q(),W(),B(),E(),c.style.display=""},this[j]/2),setTimeout(function(){Jt(document,u+" "+Ht)[0]||N(),C=I.open=!1,o&&Ft(o),_t.call(c,vt,u)},this[j])},this.setContent=function(t){Kt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(M(),S(),D())},!o||p in o||Vt(o,st,F),this[z]&&this.setContent(this[z]),!!o&&(o[p]=this)}};ee(p,pe,o);var me=function(e,o){e=Kt(e);var a=e[wt](k),l=e[wt](M),r=e[wt](b),s=e[wt](B),c=e[wt](E),u=e[wt](H),f=e[wt](D),d="popover",h="template",p="trigger",v="class",g="div",y="fade",T="data-title",x="data-content",w="dismissible",I='';o=o||{},this[h]=o[h]?o[h]:null,this[p]=o[p]?o[p]:a||ct,this[U]=o[U]&&o[U]!==y?o[U]:l||y,this[X]=o[X]?o[X]:s||jt,this[R]=parseInt(o[R]||u)||100,this[w]=!(!o[w]&&"true"!==c),this[j]=i&&i<10?0:parseInt(o[j]||r)||150,this[Y]=Kt(o[Y])||Kt(f)||n;var C=this,A=e[wt](T)||null,L=e[wt](x)||null;if(L||this[h]){var S=null,N=0,W=this[X],$=function(t){null!==S&&t[O]===Kt(".close",S)&&C.hide()},P=function(){C[Y].removeChild(S),N=null,S=null},z=function(){if(A=e[wt](T),L=e[wt](x),S=document.createElement(g),null!==L&&null===C[h]){if(S[It]("role","tooltip"),null!==A){var t=document.createElement("h3");t[It](v,d+"-title"),t.innerHTML=C[w]?A+I:A,S.appendChild(t)}var n=document.createElement(g),i=document.createElement(g);n[It](v,"arrow"),i[It](v,d+"-content"),S.appendChild(n),S.appendChild(i),i.innerHTML=C[w]&&null===A?L+I:L}else{var o=document.createElement(g);o.innerHTML=C[h],S.innerHTML=o.firstChild.innerHTML}C[Y].appendChild(S),S.style.display="block",S[It](v,d+" "+W+" "+C[U])},q=function(){!Yt(S,Ht)&&Ut(S,Ht)},F=function(){le(e,S,W,C[Y]),oe(S)||(W=re(W),le(e,S,W,C[Y]))};this.toggle=function(){null===S?C.show():C.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===S&&(W=C[X],z(),F(),q(),_t.call(e,ht,d),setTimeout(function(){_t.call(e,pt,d)},C[j]))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){S&&null!==S&&Yt(S,Ht)&&(_t.call(e,mt,d),Xt(S,Ht),setTimeout(function(){P(),_t.call(e,vt,d)},C[j]))},C[R])},m in e||(C[p]===ct?(Vt(e,Ot[0],C.show),C[w]||Vt(e,Ot[1],C.hide)):/^(click|focus)$/.test(C[p])&&(Vt(e,C[p],C.toggle),C[w]||Vt(e,"blur",C.hide)),C[w]&&Vt(document,st,$),i&&i<9||Vt(t,ft,C.hide)),e[m]=C}};ee(m,me,o);var ve=function(e,n){e=Kt(e);var o=Kt(e[wt](w));if(n=n||{},n[O]||o){for(var a,l=n[O]&&Kt(n[O])||o,r=l&&l[At]("A"),s=[],c=[],u=e[et]=u&&d>a;if(!r&&h)"LI"!==n.tagName||Yt(n,Bt)||(Ut(n,Bt),r=!0,o&&!Yt(o,Bt)&&Ut(o,Bt),_t.call(e,"activate","scrollspy",s[t]));else if(h){if(!h&&!r||r&&h)return}else"LI"===n.tagName&&Yt(n,Bt)&&(Xt(n,Bt),r=!1,o&&Yt(o,Bt)&&!Jt(n[Mt],Bt).length&&Xt(o,Bt))},y=function(){a=f?ae().y:e[Q];for(var t=0,n=s[Dt];t1&&(t=e[e[Dt]-1]):t=e[0],t[At]("A")[0]},p=function(){return Kt(h()[wt]("href"))},m=function(t){t.preventDefault(),s=t[O],u.show()};this.show=function(){var e=Kt(s[wt]("href")),n=h(),i=p();n[r]&&s[r]||Yt(s[Mt],Bt)||(n[r]=s[r]=!0,Xt(n[Mt],Bt),Ut(s[Mt],Bt),d&&(Yt(t[Mt][Mt],"dropdown-menu")?Yt(d,Bt)||Ut(d,Bt):Yt(d,Bt)&&Xt(d,Bt)),c&&(c.style[l]=ie(i)+"px"),_t.call(n,mt,a,s),setTimeout(function(){Xt(i,Ht)},10),setTimeout(function(){c&&Ut(c,Nt),Xt(i,Bt),Ut(e,Bt),setTimeout(function(){Ut(e,Ht)},10),_t.call(s,ht,a,n),_t.call(n,vt,a,s),c&&(c.style[l]=ie(e)+"px")},.7*u[j]),setTimeout(function(){_t.call(s,pt,a,n),c&&(Xt(c,Nt),c.style[l]=""),n[r]=s[r]=!1},1.5*u[j]))},g in t||Vt(t,st,m),this[l]&&(c=p()[Mt]),t[g]=this};ee(g,ge,o);var ye=function(t,e){t=Kt(t);var o=t[wt](M);placementData=t[wt](B),durationData=t[wt](b),delayData=t[wt](H),containerData=t[wt](D),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[U]=e[U]&&e[U]!==fade?e[U]:o||fade,this[X]=e[X]?e[X]:placementData||jt,this[R]=parseInt(e[R]||delayData)||100,this[j]=i&&i<10?0:parseInt(e[j]||durationData)||150,this[Y]=Kt(e[Y])||Kt(containerData)||n;var a=this,l=0,r=this[X],s=null,c=t[wt](title)||t[wt](L);if(c){var u=function(){a[Y].removeChild(s),s=null,l=null},f=function(){c=t[wt](title)||t[wt](L),s=document.createElement(div),s[It]("role",component);var e=document.createElement(div),n=document.createElement(div);e[It](classString,component+"-arrow"),n[It](classString,component+"-inner"),s.appendChild(e),s.appendChild(n),n.innerHTML=c,a[Y].appendChild(s),s[It](classString,component+" "+r+" "+a[U])},d=function(){le(t,s,r,a[Y]),oe(s)||(r=re(r),le(t,s,r,a[Y]))},h=function(){!Yt(s,Ht)&&Ut(s,Ht)};this.show=function(){clearTimeout(l),l=setTimeout(function(){null===s&&(r=a[X],f(),d(),h(),_t.call(t,ht,component),setTimeout(function(){_t.call(t,pt,component)},a[j]))},20)},this.hide=function(){clearTimeout(l),l=setTimeout(function(){s&&null!==s&&Yt(s,Ht)&&(_t.call(t,mt,component),Xt(s,Ht),setTimeout(function(){u(),_t.call(t,vt,component)},a[j]))},a[R])},this.toggle=function(){s?a.hide():a.show()},y in t||(t[It](L,c),t.removeAttribute(title),Vt(t,Ot[0],this.show),Vt(t,Ot[1],this.hide)),t[y]=this}};return ee(y,ye,o),{Affix:se,Alert:ce,Button:ue,Carousel:fe,Collapse:de,Dropdown:he,Modal:pe,Popover:me,ScrollSpy:ve,Tab:ge,Tooltip:ye}}); +!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=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),o="data-toggle",a="data-dismiss",l="data-spy",r="data-ride",s="Affix",c="Alert",u="Button",f="Carousel",d="Collapse",h="Dropdown",p="Modal",m="Popover",v="ScrollSpy",g="Tab",y="Tooltip",T="data-backdrop",x="data-keyboard",b="data-duration",w="data-target",I="data-interval",C="data-height",A="data-pause",L="data-original-title",E="data-original-text",M="data-dismissible",D="data-trigger",S="data-animation",k="data-container",H="data-placement",B="data-delay",N="data-offset-top",W="data-offset-bottom",$="backdrop",P="keyboard",R="delay",j="duration",z="content",O="target",q="interval",F="pause",U="animation",X="placement",Y="container",G="offsetTop",J="offsetBottom",K="offsetLeft",Q="scrollTop",V="scrollLeft",Z="clientWidth",_="clientHeight",tt="offsetWidth",et="offsetHeight",nt="innerWidth",it="innerHeight",ot="scrollHeight",at="height",lt="aria-expanded",rt="aria-hidden",st="click",ct="hover",ut="keydown",ft="resize",dt="scroll",ht="show",pt="shown",mt="hide",vt="hidden",gt="close",yt="closed",Tt="slid",xt="slide",bt="change",wt="getAttribute",It="setAttribute",Ct="hasAttribute",At="getElementsByTagName",Lt="getBoundingClientRect",Et="querySelectorAll",Mt="getElementsByClassName",Dt="indexOf",St="parentNode",kt="length",Ht="active",Bt="in",Nt="collapsing",Wt="disabled",$t="loading",Pt="left",Rt="right",jt="top",zt="bottom",Ot="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],qt=/\b(top|bottom|left|top)+/,Ft=function(t){t.focus?t.focus():t.setActive()},Ut=function(t,e){t.classList.add(e)},Xt=function(t,e){t.classList.remove(e)},Yt=function(t,e){return t.classList.contains(e)},Gt=function(t){for(var e=[],n=0,i=t[kt];n-1||l===r)&&new e(o[a])}},ne=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[_]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ie=function(t){for(var e=0,n=0,i=t.children[kt];n=0&&i[Pt]>=0&&i[zt]<=(t[it]||e[_])&&i[Rt]<=(t[nt]||e[Z])},ae=function(){return{y:t.pageYOffset||e[Q],x:t.pageXOffset||e[V]}},le=function(t,e,i,o){var a=t[Lt](),l=o===n?ae():{x:o[K]+o[V],y:o[G]+o[Q]},r={w:a[Rt]-a[Pt],h:a[zt]-a[jt]},s={w:e[tt],h:e[et]};i===jt?(e.style[jt]=a[jt]+l.y-s.h+"px",e.style[Pt]=a[Pt]+l.x-s.w/2+r.w/2+"px"):i===zt?(e.style[jt]=a[jt]+l.y+r.h+"px",e.style[Pt]=a[Pt]+l.x-s.w/2+r.w/2+"px"):i===Pt?(e.style[jt]=a[jt]+l.y-s.h/2+r.h/2+"px",e.style[Pt]=a[Pt]+l.x-s.w+"px"):i===Rt&&(e.style[jt]=a[jt]+l.y-s.h/2+r.h/2+"px",e.style[Pt]=a[Pt]+l.x+r.w+"px"),e.className[Dt](i)===-1&&(e.className=e.className.replace(qt,i))},re=function(t){return t===jt?zt:t===zt?jt:t===Pt?Rt:t===Rt?Pt:t},se=function(o,a){o=Kt(o),a=a||{};var l=o[wt](w),r=o[wt](N),c=o[wt](W),u="affix",f="affixed",d="function",h="update",p="affix-top",m="affixed-top",v="affix-bottom",g="affixed-bottom";if(this[O]=a[O]?Kt(a[O]):Kt(l)||null,this[G]=a[G]?a[G]:parseInt(r)||0,this[J]=a[J]?a[J]:parseInt(c)||0,this[O]||this[G]||this[J]){var y,T,x,b,I,C,A=this,L=i&&i<10?500:50,E=!1,M=!1,D=function(){return Math.max(n[ot],n[et],e[_],e[ot],e[et])},S=function(){return null!==A[O]?A[O][Lt]()[jt]+b:A[G]?parseInt(typeof A[G]===d?A[G]():A[G]||0):void 0},k=function(){if(A[J])return x-o[et]-parseInt(typeof A[J]===d?A[J]():A[J]||0)},H=function(){x=D(),b=parseInt(ae().y,0),y=S(),T=k(),I=parseInt(y)-b<0&&b>parseInt(y),C=parseInt(T)-b<0&&b>parseInt(T)},B=function(){E||Yt(o,u)||(_t.call(o,u,u),_t.call(o,p,u),Ut(o,u),E=!0,_t.call(o,f,u),_t.call(o,m,u))},$=function(){E&&Yt(o,u)&&(Xt(o,u),E=!1)},P=function(){M||Yt(o,v)||(_t.call(o,u,u),_t.call(o,v,u),Ut(o,v),M=!0,_t.call(o,f,u),_t.call(o,g,u))},R=function(){M&&Yt(o,v)&&(Xt(o,v),M=!1)},j=function(){C?(I&&$(),P()):(R(),I?B():$())};this[h]=function(){H(),j()},s in o||(Vt(t,dt,this[h]),Vt(t,ft,function(){setTimeout(function(){A[h]()},L)})),o[s]=this,this[h]()}};ee(s,se,l);var ce=function(t){t=Kt(t);var e=this,n="alert",o=Qt(t,"."+n),l=i&&i<10?0:300,r=function(i){var l=i[O];l=l[Ct](a)?l:l[St],l&&l[Ct](a)&&(o=Qt(l,"."+n),t=Kt("["+a+'="'+n+'"]',o),(t===l||t===l[St])&&o&&e.close())};this.close=function(){o&&t&&Yt(o,Bt)&&(_t.call(o,gt,n),Xt(o,Bt),setTimeout(function(){o&&(_t.call(o,yt,n),Zt(t,st,r),o[St].removeChild(o))},l))},c in t||Vt(t,st,r),t[c]=this};ee(c,ce,a);var ue=function(t,e){t=Kt(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",s=function(){e&&e!==a&&(e===$t&&(Ut(t,Wt),t[It](Wt,Wt)),t[It](E,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[wt]("data-"+e+"-text"))},c=function(){t[wt](E)&&((Yt(t,Wt)||t[wt](Wt)===Wt)&&(Xt(t,Wt),t.removeAttribute(Wt)),t.innerHTML=t[wt](E))},f=function(e){var a=e[O][St],s=e[O].tagName===l?e[O]:a.tagName===l?a:null;if(s){var c=this,u=Jt(c,"btn"),f=s[At](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Xt(s,Ht),f[wt](o),f.removeAttribute(o),f[o]=!1):(Ut(s,Ht),f[wt](o),f[It](o,o),f[o]=!0),n||(n=!0,_t.call(f,bt,i),_t.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Ut(s,Ht),f[It](o,o),f[o]=!0,_t.call(f,bt,i),_t.call(t,bt,i),n=!0;for(var d=0,h=u[kt];dp||n===y-1&&0===p)&&(T=h[u]=Rt),h.slideTo(p)}},H=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===L?(p++,T=h[u]=Pt,p===y-1?p=y-1:p===y&&(p=0)):e===C&&(p--,T=h[u]=Rt,0===p?p=0:p<0&&(p=y-1)),h.slideTo(p)}},B=function(t){if(!v){switch(t.which){case 39:p++,T=h[u]=Pt,p==y-1?p=y-1:p==y&&(p=0);break;case 37:p--,T=h[u]=Rt,0==p?p=0:p<0&&(p=y-1);break;default:return}h.slideTo(p)}},N=function(t){for(var e=0,n=M[kt];e-1)&&(n.persist||l))return;s=null,m()}(/\#$/.test(r.href)||/\#$/.test(r[St].href))&&e.preventDefault()}},p=function(){_t.call(a,ht,l,s),Ut(a,r),c[It](lt,!0),_t.call(a,pt,l,s),Vt(document,ut,f),i=!0},m=function(){_t.call(a,mt,l,s),Xt(a,r),c[It](lt,!1),_t.call(a,vt,l,s),Zt(document,ut,f),i=!1};this.toggle=function(){Yt(a,r)&&i?m():p()},h in t||(c[It]("tabindex","0"),Vt(document,st,d)),t[h]=this};ee(h,he,o);var pe=function(o,l){o=Kt(o);var r=o[wt](w)||o[wt]("href"),s=Kt(r),c=Yt(o,"modal")?o:s,u="modal",f="static",d="paddingLeft",h="paddingRight",m="modal-backdrop";if(Yt(o,"modal")&&(o=null),c){l=l||{},this[P]=l[P]!==!1&&"false"!==c[wt](x),this[$]=l[$]!==f&&c[wt](T)!==f||f,this[$]=l[$]!==!1&&"false"!==c[wt](T)&&this[$],this[j]=i&&i<10?50:l[j]||parseInt(c[wt](b))||300,this[z]=l[z];var v,g,y,I,C=this,A=this.open=!1,L=null,E=function(){var n=e[Lt]();return t[nt]||n[Rt]-Math.abs(n[Pt])},M=function(){var e=n.currentStyle||t.getComputedStyle(n),i=parseInt(e[h],10);v&&(n.style[h]=i+y+"px")},D=function(){n.style[h]=""},S=function(){var t,e=document.createElement("div");return e.className=u+"-scrollbar-measure",n.appendChild(e),t=e[tt]-e[Z],n.removeChild(e),t},k=function(){v=n[Z]e[_],y=S()},H=function(){c.style[d]=!v&&g?y+"px":"",c.style[h]=v&&!g?y+"px":""},B=function(){c.style[d]="",c.style[h]=""},N=function(){var t=document.createElement("div");I=Kt("."+m),null===I&&(t[It]("class",m+" fade"),I=t,n.appendChild(I))},W=function(){I=Kt("."+m),I&&null!==I&&"object"==typeof I&&(n.removeChild(I),I=null)},R=function(){Yt(c,Bt)?Zt(document,ut,X):Vt(document,ut,X)},q=function(){Yt(c,Bt)?Zt(t,ft,C.update):Vt(t,ft,C.update)},F=function(){Yt(c,Bt)?Zt(c,st,Y):Vt(c,st,Y)},U=function(t){var e=t[O];e=e[Ct](w)||e[Ct]("href")?e:e[St],A||e!==o||Yt(c,Bt)||(c.modalTrigger=o,L=o,C.show(),t.preventDefault())},X=function(t){var e=t.which||t.keyCode;C[P]&&27==e&&A&&C.hide()},Y=function(t){var e=t[O];A&&(e[St][wt](a)===u||e[wt](a)===u||e===c&&C[$]!==f)&&(C.hide(),L=null,t.preventDefault())};this.toggle=function(){A&&Yt(c,Bt)?this.hide():this.show()},this.show=function(){_t.call(c,ht,u,L);var t=Jt(document,u+" in")[0];t&&t!==c&&t.modalTrigger[p].hide(),this[$]&&N(),I&&!Yt(I,Bt)&&setTimeout(function(){Ut(I,Bt)},0),setTimeout(function(){c.style.display="block",k(),M(),H(),q(),F(),R(),Ut(n,u+"-open"),Ut(c,Bt),c[It](rt,!1)},this[j]/2),setTimeout(function(){A=C.open=!0,Ft(c),_t.call(c,pt,u,L)},this[j])},this.hide=function(){_t.call(c,mt,u),I=Kt("."+m),null!==I&&Xt(I,Bt),Xt(c,Bt),c[It](rt,!0),setTimeout(function(){Xt(n,u+"-open"),q(),F(),R(),B(),D(),c.style.display=""},this[j]/2),setTimeout(function(){Jt(document,u+" "+Bt)[0]||W(),A=C.open=!1,o&&Ft(o),_t.call(c,vt,u)},this[j])},this.setContent=function(t){Kt("."+u+"-content",c).innerHTML=t},this.update=function(){A&&(k(),M(),H())},!o||p in o||Vt(o,st,U),this[z]&&this.setContent(this[z]),!!o&&(o[p]=this)}};ee(p,pe,o);var me=function(e,o){e=Kt(e);var a=e[wt](D),l=e[wt](S),r=e[wt](b),s=e[wt](H),c=e[wt](M),u=e[wt](B),f=e[wt](k),d="popover",h="template",p="trigger",v="class",g="div",y="fade",T="data-title",x="data-content",w="dismissible",I='';o=o||{},this[h]=o[h]?o[h]:null,this[p]=o[p]?o[p]:a||ct,this[U]=o[U]&&o[U]!==y?o[U]:l||y,this[X]=o[X]?o[X]:s||jt,this[R]=parseInt(o[R]||u)||100,this[w]=!(!o[w]&&"true"!==c),this[j]=i&&i<10?0:parseInt(o[j]||r)||150,this[Y]=Kt(o[Y])||Kt(f)||n;var C=this,A=e[wt](T)||null,L=e[wt](x)||null;if(L||this[h]){var E=null,N=0,W=this[X],$=function(t){null!==E&&t[O]===Kt(".close",E)&&C.hide()},P=function(){C[Y].removeChild(E),N=null,E=null},z=function(){if(A=e[wt](T),L=e[wt](x),E=document.createElement(g),null!==L&&null===C[h]){if(E[It]("role","tooltip"),null!==A){var t=document.createElement("h3");t[It](v,d+"-title"),t.innerHTML=C[w]?A+I:A,E.appendChild(t)}var n=document.createElement(g),i=document.createElement(g);n[It](v,"arrow"),i[It](v,d+"-content"),E.appendChild(n),E.appendChild(i),i.innerHTML=C[w]&&null===A?L+I:L}else{var o=document.createElement(g);o.innerHTML=C[h],E.innerHTML=o.firstChild.innerHTML}C[Y].appendChild(E),E.style.display="block",E[It](v,d+" "+W+" "+C[U])},q=function(){!Yt(E,Bt)&&Ut(E,Bt)},F=function(){le(e,E,W,C[Y]),oe(E)||(W=re(W),le(e,E,W,C[Y]))};this.toggle=function(){null===E?C.show():C.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===E&&(W=C[X],z(),F(),q(),_t.call(e,ht,d),setTimeout(function(){_t.call(e,pt,d)},C[j]))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){E&&null!==E&&Yt(E,Bt)&&(_t.call(e,mt,d),Xt(E,Bt),setTimeout(function(){P(),_t.call(e,vt,d)},C[j]))},C[R])},m in e||(C[p]===ct?(Vt(e,Ot[0],C.show),C[w]||Vt(e,Ot[1],C.hide)):/^(click|focus)$/.test(C[p])&&(Vt(e,C[p],C.toggle),C[w]||Vt(e,"blur",C.hide)),C[w]&&Vt(document,st,$),i&&i<9||Vt(t,ft,C.hide)),e[m]=C}};ee(m,me,o);var ve=function(e,n){e=Kt(e);var o=Kt(e[wt](w));if(n=n||{},n[O]||o){for(var a,l=n[O]&&Kt(n[O])||o,r=l&&l[At]("A"),s=[],c=[],u=e[et]=u&&d>a;if(!r&&h)"LI"!==n.tagName||Yt(n,Ht)||(Ut(n,Ht),r=!0,o&&!Yt(o,Ht)&&Ut(o,Ht),_t.call(e,"activate","scrollspy",s[t]));else if(h){if(!h&&!r||r&&h)return}else"LI"===n.tagName&&Yt(n,Ht)&&(Xt(n,Ht),r=!1,o&&Yt(o,Ht)&&!Jt(n[St],Ht).length&&Xt(o,Ht))},y=function(){a=f?ae().y:e[Q];for(var t=0,n=s[kt];t1&&(t=e[e[kt]-1]):t=e[0],t[At]("A")[0]},p=function(){return Kt(h()[wt]("href"))},m=function(t){t.preventDefault(),s=t[O],u.show()};this.show=function(){var e=Kt(s[wt]("href")),n=h(),i=p();n[r]&&s[r]||Yt(s[St],Ht)||(n[r]=s[r]=!0,Xt(n[St],Ht),Ut(s[St],Ht),d&&(Yt(t[St][St],"dropdown-menu")?Yt(d,Ht)||Ut(d,Ht):Yt(d,Ht)&&Xt(d,Ht)),c&&(c.style[l]=ie(i)+"px"),_t.call(n,mt,a,s),setTimeout(function(){Xt(i,Bt)},10),setTimeout(function(){c&&Ut(c,Nt),Xt(i,Ht),Ut(e,Ht),setTimeout(function(){Ut(e,Bt)},10),_t.call(s,ht,a,n),_t.call(n,vt,a,s),c&&(c.style[l]=ie(e)+"px")},.7*u[j]),setTimeout(function(){_t.call(s,pt,a,n),c&&(Xt(c,Nt),c.style[l]=""),n[r]=s[r]=!1},1.5*u[j]))},g in t||Vt(t,st,m),this[l]&&(c=p()[St]),t[g]=this};ee(g,ge,o);var ye=function(t,e){t=Kt(t);var o=t[wt](S);placementData=t[wt](H),durationData=t[wt](b),delayData=t[wt](B),containerData=t[wt](k),component="tooltip",classString="class",title="title",fade="fade",div="div",e=e||{},this[U]=e[U]&&e[U]!==fade?e[U]:o||fade,this[X]=e[X]?e[X]:placementData||jt,this[R]=parseInt(e[R]||delayData)||100,this[j]=i&&i<10?0:parseInt(e[j]||durationData)||150,this[Y]=Kt(e[Y])||Kt(containerData)||n;var a=this,l=0,r=this[X],s=null,c=t[wt](title)||t[wt](L);if(c){var u=function(){a[Y].removeChild(s),s=null,l=null},f=function(){c=t[wt](title)||t[wt](L),s=document.createElement(div),s[It]("role",component);var e=document.createElement(div),n=document.createElement(div);e[It](classString,component+"-arrow"),n[It](classString,component+"-inner"),s.appendChild(e),s.appendChild(n),n.innerHTML=c,a[Y].appendChild(s),s[It](classString,component+" "+r+" "+a[U])},d=function(){le(t,s,r,a[Y]),oe(s)||(r=re(r),le(t,s,r,a[Y]))},h=function(){!Yt(s,Bt)&&Ut(s,Bt)};this.show=function(){clearTimeout(l),l=setTimeout(function(){null===s&&(r=a[X],f(),d(),h(),_t.call(t,ht,component),setTimeout(function(){_t.call(t,pt,component)},a[j]))},20)},this.hide=function(){clearTimeout(l),l=setTimeout(function(){s&&null!==s&&Yt(s,Bt)&&(_t.call(t,mt,component),Xt(s,Bt),setTimeout(function(){u(),_t.call(t,vt,component)},a[j]))},a[R])},this.toggle=function(){s?a.hide():a.show()},y in t||(t[It](L,c),t.removeAttribute(title),Vt(t,Ot[0],this.show),Vt(t,Ot[1],this.hide)),t[y]=this}};return ee(y,ye,o),{Affix:se,Alert:ce,Button:ue,Carousel:fe,Collapse:de,Dropdown:he,Modal:pe,Popover:me,ScrollSpy:ve,Tab:ge,Tooltip:ye}}); diff --git a/lib/V3/modal-native.js b/lib/V3/modal-native.js index a8a95919..0861265a 100644 --- a/lib/V3/modal-native.js +++ b/lib/V3/modal-native.js @@ -18,7 +18,7 @@ var Modal = function(element, options) { // element can be the modal/triggering component = 'modal', staticString = 'static', paddingLeft = 'paddingLeft', - paddingRight = 'paddingRight' + paddingRight = 'paddingRight', modalBackdropString = 'modal-backdrop'; if ( hasClass(element,'modal') ) { element = null; } // modal is now independent of it's triggering element diff --git a/lib/V4/modal-native.js b/lib/V4/modal-native.js index 09f40663..601fa2b7 100644 --- a/lib/V4/modal-native.js +++ b/lib/V4/modal-native.js @@ -18,7 +18,7 @@ var Modal = function(element, options) { // element can be the modal/triggering component = 'modal', staticString = 'static', paddingLeft = 'paddingLeft', - paddingRight = 'paddingRight' + paddingRight = 'paddingRight', modalBackdropString = 'modal-backdrop'; if ( hasClass(element,'modal') ) { element = null; } // modal is now independent of it's triggering element