Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

assets/css/docs.min.css

7

assets/js/scripts.js

@@ -0,1 +1,8 @@

var myModal = document.getElementById('myModal'); // we need a blank modal to fill up and target our object function
myModal.addEventListener('show.bs.modal', function(e) {
console.log('show.bs.modal triggered for #'+e.target.id);
console.log('event.relatedTarget is '+e.relatedTarget.tagName+'.'+e.relatedTarget.className.replace(/\s/g,'.'));
}, false);
// Modal initialized with JavaScript

@@ -2,0 +9,0 @@ var myModalJS = document.getElementById('myModalJS'); // we need a blank modal to fill up and target our object function

2

bower.json
{
"name": "bootstrap.native",
"version": "2.0.2",
"version": "2.0.3",
"homepage": "http://thednp.github.io/bootstrap.native/",

@@ -5,0 +5,0 @@ "authors": [

#!/usr/bin/env node
// Native Javascript for Bootstrap 3 | Build Script
// Build script to bundle the js files in lib/
// Build script to bundle the js files in lib/V3
// Usage: npm run build

@@ -45,3 +45,3 @@ // Run node build.js --help for usage instructions

// Get a list of all modules:
var allModules = fs.readdirSync('lib/').filter(item => /-native\.js$/.test(item));
var allModules = fs.readdirSync('lib/V3/').filter(item => /-native\.js$/.test(item));

@@ -75,3 +75,3 @@ // Get a list of modules to include:

// Use console.warn to avoid writing to stdout
console.warn(`Building ${version} ..`);
console.warn(`Building Native JavaScript for Bootstrap 3 ${version} ..`);
if (argv.minify) {

@@ -90,3 +90,3 @@ console.warn('Minified Build');

promises[i] = new Promise(function (resolve, reject) {
fs.readFile(`lib/${name.toLowerCase()}-native.js`, 'utf8', function (err, contents) {
fs.readFile(`lib/V3/${name.toLowerCase()}-native.js`, 'utf8', function (err, contents) {
if (err) reject(err);

@@ -114,3 +114,3 @@ resolve(contents);

function wrap(main) {
var utils = fs.readFileSync('lib/utils.js', 'utf8').split('\n').join('\n '); // Indentation
var utils = fs.readFileSync('lib/V3/utils.js', 'utf8').split('\n').join('\n '); // Indentation
main = main.split('\n').join('\n '); // Indentation

@@ -117,0 +117,0 @@ // Initialize arrays:

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 3 v2.0.2 | © 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",P="data-offset-bottom",W="backdrop",$="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="collapsing",Nt="disabled",Pt="loading",Wt="left",$t="right",Rt="top",jt="bottom",zt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Ot=/\b(top|bottom|left|top)+/,qt=function(t,e){t.classList.add(e)},Ft=function(t,e){t.classList.remove(e)},Ut=function(t,e){return t.classList.contains(e)},Xt=function(t){for(var e=[],n=0,i=t[Dt];n<i;n++)e.push(t[n]);return e},Yt=function(t,e){var n=8===i?St:Et;return Xt(t[n](8===i?"."+e.replace(/\s(?=[a-z])/g,"."):e))},Gt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Jt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[Mt]){if(("."===n||"#"!==n)&&null!==Gt(e,t[Mt]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},Kt=function(t,e,n){t.addEventListener(e,n,!1)},Qt=function(t,e,n){t.removeEventListener(e,n,!1)},Vt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Zt=document[At]("*"),_t=function(t,e,n,i){for(var o=i&&i[Dt]?i:Zt,a=0;a<o[Dt];a++){var l=o[a][wt](n),r=t.replace(/spy/i,"").toLowerCase();(l&&t===u&&l[kt](r)>-1||l===r)&&new e(o[a])}},te=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)},ee=function(t){for(var e=0,n=0,i=t.children[Dt];n<i;n++)e+=te(t.children[n]);return e},ne=function(n){var i=n[Lt]();return i[Rt]>=0&&i[Wt]>=0&&i[jt]<=(t[it]||e[_])&&i[$t]<=(t[nt]||e[Z])},ie=function(){return{y:t.pageYOffset||e[Q],x:t.pageXOffset||e[V]}},oe=function(t,e,i,o){var a=t[Lt](),l=o===n?ie():{x:o[K]+o[V],y:o[G]+o[Q]},r={w:a[$t]-a[Wt],h:a[jt]-a[Rt]},s={w:e[tt],h:e[et]};i===Rt?(e.style[Rt]=a[Rt]+l.y-s.h+"px",e.style[Wt]=a[Wt]+l.x-s.w/2+r.w/2+"px"):i===jt?(e.style[Rt]=a[Rt]+l.y+r.h+"px",e.style[Wt]=a[Wt]+l.x-s.w/2+r.w/2+"px"):i===Wt?(e.style[Rt]=a[Rt]+l.y-s.h/2+r.h/2+"px",e.style[Wt]=a[Wt]+l.x-s.w+"px"):i===$t&&(e.style[Rt]=a[Rt]+l.y-s.h/2+r.h/2+"px",e.style[Wt]=a[Wt]+l.x+r.w+"px"),e.className[kt](i)===-1&&(e.className=e.className.replace(Ot,i))},ae=function(t){return t===Rt?jt:t===jt?Rt:t===Wt?$t:t===$t?Wt:t},le=function(o,a){o=Gt(o),a=a||{};var l=o[wt](w),r=o[wt](N),c=o[wt](P),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]?Gt(a[O]):Gt(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]()[Rt]+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(ie().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||Ut(o,u)||(Vt.call(o,u,u),Vt.call(o,p,u),qt(o,u),S=!0,Vt.call(o,f,u),Vt.call(o,m,u))},W=function(){S&&Ut(o,u)&&(Ft(o,u),S=!1)},$=function(){E||Ut(o,v)||(Vt.call(o,u,u),Vt.call(o,v,u),qt(o,v),E=!0,Vt.call(o,f,u),Vt.call(o,g,u))},R=function(){E&&Ut(o,v)&&(Ft(o,v),E=!1)},j=function(){C?(I&&W(),$()):(R(),I?H():W())};this[h]=function(){B(),j()},s in o||(Kt(t,dt,this[h]),Kt(t,ft,function(){setTimeout(function(){A[h]()},L)})),o[s]=this,this[h]()}};_t(s,le,l);var re=function(t){t=Gt(t);var e=this,n="alert",o=Jt(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=Jt(l,"."+n),t=Gt("["+a+'="'+n+'"]',o),(t===l||t===l[Mt])&&o&&e.close())};this.close=function(){o&&t&&Ut(o,"in")&&(Vt.call(o,gt,n),Ft(o,"in"),setTimeout(function(){o&&(Vt.call(o,yt,n),Qt(t,st,r),o[Mt].removeChild(o))},l))},c in t||Kt(t,st,r),t[c]=this};_t(c,re,a);var se=function(t,e){t=Gt(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",s=function(){e&&e!==a&&(e===Pt&&(qt(t,Nt),t[It](Nt,Nt)),t[It](S,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[wt]("data-"+e+"-text"))},c=function(){t[wt](S)&&((Ut(t,Nt)||t[wt](Nt)===Nt)&&(Ft(t,Nt),t.removeAttribute(Nt)),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=Yt(c,"btn"),f=s[At](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Ft(s,Bt),f[wt](o),f.removeAttribute(o),f[o]=!1):(qt(s,Bt),f[wt](o),f[It](o,o),f[o]=!0),n||(n=!0,Vt.call(f,bt,i),Vt.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){qt(s,Bt),f[It](o,o),f[o]=!0,Vt.call(f,bt,i),Vt.call(t,bt,i),n=!0;for(var d=0,h=u[Dt];d<h;d++){var p=u[d],m=p[At](r)[0];p!==s&&Ut(p,Bt)&&(Ft(p,Bt),m.removeAttribute(o),m[o]=!1,Vt.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Ut(t,"btn")&&null!==e&&(e!==a?s():c()),Ut(t,"btn-group")&&(u in t||Kt(t,st,f),t[u]=this)};_t(u,se,o);var ce=function(e,n){e=Gt(e),n=n||{};var o="false"!==e[wt](I)&&(parseInt(e[wt](I))||5e3),a=e[wt](A)===ct||!1,l="true"===e[wt](x)||!1,r=parseInt(e[wt](b))||600,s="carousel",c="paused",u="direction",d="data-slide-to";this[$]=n[$]===!0||l,this[F]=!(n[F]!==ct&&!a)&&ct,this[j]=i&&i<10?0:n[j]||r,n[q]||o?this[q]=parseInt(n[q])||o:this[q]=!1;var h=this,p=e.index=0,m=e.timer=0,v=!1,g=Yt(e,"item"),y=g[Dt],T=this[u]=Wt,w=Yt(e,s+"-control"),C=w[0],L=w[1],S=Gt("."+s+"-indicators",e),E=S[At]("LI"),k=function(){h[q]===!1||Ut(e,c)||(qt(e,c),!v&&clearInterval(m))},M=function(){h[q]!==!1&&Ut(e,c)&&(Ft(e,c),!v&&clearInterval(m),!v&&h.cycle())},D=function(t){if(t.preventDefault(),!v){var e=t[O],n=h.getActiveIndex();if(!e||Ut(e,Bt)||!e[wt](d))return!1;p=parseInt(e[wt](d),10),n<p||0===n&&p===y-1?T=h[u]=Wt:(n>p||n===y-1&&0===p)&&(T=h[u]=$t),h.slideTo(p)}},B=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===L?(p++,T=h[u]=Wt,p===y-1?p=y-1:p===y&&(p=0)):e===C&&(p--,T=h[u]=$t,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]=Wt,p==y-1?p=y-1:p==y&&(p=0);break;case 37:p--,T=h[u]=$t,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<n;e++)Ft(E[e],Bt);E[t]&&qt(E[t],Bt)};this.cycle=function(){T=this[u]=Wt,m=setInterval(function(){p++,p=p===y?0:p,h.slideTo(p)},this[q])},this.slideTo=function(t){var n=this.getActiveIndex(),o=T===Wt?"next":"prev";Vt.call(e,xt,s,g[t]),v=!0,clearInterval(m),N(t),!Ut(e,"slide")||i&&i<10?(qt(g[t],Bt),g[t][tt],Ft(g[n],Bt),setTimeout(function(){v=!1,h[q]&&!Ut(e,c)&&h.cycle(),Vt.call(e,Tt,s,g[t])},this[j]+100)):(qt(g[t],o),g[t][tt],qt(g[t],T),qt(g[n],T),setTimeout(function(){v=!1,qt(g[t],Bt),Ft(g[n],Bt),Ft(g[t],o),Ft(g[t],T),Ft(g[n],T),h[q]&&!Ut(e,c)&&h.cycle(),Vt.call(e,Tt,s,g[t])},this[j]+100))},this.getActiveIndex=function(){return g[kt](Yt(e,"item active")[0])||0},f in e||(this[F]&&this[q]&&(Kt(e,zt[0],k),Kt(e,zt[1],M),Kt(e,"touchstart",k),Kt(e,"touchend",M)),L&&Kt(L,st,B),C&&Kt(C,st,B),S&&Kt(S,st,D,!1),this[$]===!0&&Kt(t,ut,H,!1)),this.getActiveIndex()<0&&(g[Dt]&&qt(g[0],Bt),E[Dt]&&N(0)),this[q]&&this.cycle(),e[f]=this};_t(f,ce,r);var ue=function(t,e){t=Gt(t),e=e||{},e.duration=parseInt(e.duration||t[wt](b)),this[j]=i&&i<10?0:e.duration||300;var n=null,o=null,a=this,l=!1,r=t[wt]("data-parent"),s="collapse",c="collapsed",u=function(t){Vt.call(t,ht,s),l=!0,Ft(t,s),qt(t,Ht),t.style[at]="0px",setTimeout(function(){t.style[at]=ee(t)+"px"},10),setTimeout(function(){Ft(t,Ht),qt(t,s),qt(t,"in"),t.style[at]="",l=!1,t[It](lt,"true"),Vt.call(t,pt,s)},a[j])},f=function(t){Vt.call(t,mt,s),l=!0,Ft(t,s),t.style[at]=ee(t)+"px",setTimeout(function(){qt(t,Ht),t.style[at]="0px"},10),setTimeout(function(){Ft(t,Ht),Ft(t,"in"),qt(t,s),t.style[at]="",l=!1,t[It](lt,"false"),Vt.call(t,vt,s)},a[j])},h=function(){var e=t.href&&t[wt]("href"),n=t[wt](w),i=e||n&&/#/.test(n)&&n;return i&&Gt(i)};this.toggle=function(t){t.preventDefault(),l||(Ut(o,"in")?a.hide():a.show())},this.hide=function(){f(o),qt(t,c)},this.show=function(){if(u(o),Ft(t,c),null!==n)for(var e=Yt(n,s+" in"),i=0,a=e[Dt];i<a;i++)e[i]!==o&&f(e[i])},d in t||Kt(t,st,this.toggle),o=h(),n=Gt(e.parent)||r&&Jt(t,r),t[d]=this};_t(d,ue,o);var fe=function(t,e){t=Gt(t),this.persist=e===!0||"true"===t[wt]("data-persist")||!1;var n=this,i=!1,a=t[Mt],l="dropdown",r="open",s=null,c=Gt(".dropdown-menu",a),u=Xt(c[At]("*")),f=function(t){!i||27!=t.which&&27!=t.keyCode||(s=null,m())},d=function(e){var l,r=e[O];if(r&&r[Mt]){if(l=r[wt](o)||r[Mt][wt](o),r===t||r===a||r[Mt]===t)e.preventDefault(),s=t,n.toggle();else if(i){if((r===c||u&&u[kt](r)>-1)&&(n.persist||l))return;s=null,m()}(/\#$/.test(r.href)||/\#$/.test(r[Mt].href))&&e.preventDefault()}},p=function(){Vt.call(a,ht,l,s),qt(a,r),c[It](lt,!0),Vt.call(a,pt,l,s),Kt(document,ut,f),i=!0},m=function(){Vt.call(a,mt,l,s),Ft(a,r),c[It](lt,!1),Vt.call(a,vt,l,s),Qt(document,ut,f),i=!1};this.toggle=function(){Ut(a,r)&&i?m():p()},h in t||(c[It]("tabindex","0"),Kt(document,st,d)),t[h]=this};_t(h,fe,o);var de=function(o,l){o=Gt(o);var r=o[wt](w)||o[wt]("href"),s=Gt(r),c=Ut(o,"modal")?o:s,u="modal",f="static",d="paddingLeft",h="paddingRight";if(modalBackdropString="modal-backdrop",Ut(o,"modal")&&(o=null),c){l=l||{},this[$]=l[$]!==!1&&"false"!==c[wt](x),this[W]=l[W]!==f&&c[wt](T)!==f||f,this[W]=l[W]!==!1&&"false"!==c[wt](T)&&this[W],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[$t]-Math.abs(n[Wt])},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]<L(),v=c[ot]>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=Gt("."+modalBackdropString),null===y&&(t[It]("class",modalBackdropString+" fade"),y=t,n.appendChild(y))},N=function(){y=Gt("."+modalBackdropString),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},P=function(){Ut(c,"in")?Qt(document,ut,U):Kt(document,ut,U)},R=function(){Ut(c,"in")?Qt(t,ft,I.update):Kt(t,ft,I.update)},q=function(){Ut(c,"in")?Qt(c,st,X):Kt(c,st,X)},F=function(t){var e=t[O];e=e[Ct](w)||e[Ct]("href")?e:e[Mt],t.defaultPrevented||C||e!==o||Ut(c,"in")||(c.modalTrigger=o,A=o,I.show(),t.preventDefault(),setTimeout(function(){t.defaultPrevented=!1},50))},U=function(t){var e=t.which||t.keyCode;I[$]&&27==e&&C&&I.hide()},X=function(t){var e=t[O];!t.defaultPrevented&&C&&(e[Mt][wt](a)===u||e[wt](a)===u||e===c&&I[W]!==f)&&(I.hide(),A=null,t.preventDefault(),setTimeout(function(){t.defaultPrevented=!1},50))};this.toggle=function(){C&&Ut(c,"in")?this.hide():this.show()},this.show=function(){Vt.call(c,ht,u,A);var t=Yt(document,u+" in")[0];t&&t!==c&&t.modalTrigger[p].hide(),this[W]&&H(),y&&!Ut(y,"in")&&setTimeout(function(){qt(y,"in")},0),setTimeout(function(){c.style.display="block",M(),S(),D(),R(),q(),P(),qt(n,u+"-open"),qt(c,"in"),c[It](rt,!1)},this[j]/2),setTimeout(function(){C=I.open=!0,Vt.call(c,pt,u,A)},this[j])},this.hide=function(){Vt.call(c,mt,u),y=Gt("."+modalBackdropString),null!==y&&Ft(y,"in"),Ft(c,"in"),c[It](rt,!0),setTimeout(function(){Ft(n,u+"-open"),R(),q(),P(),B(),E(),c.style.display=""},this[j]/2),setTimeout(function(){Yt(document,u+" in")[0]||N(),C=I.open=!1,Vt.call(c,vt,u)},this[j])},this.setContent=function(t){Gt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(M(),S(),D())},!o||p in o||Kt(o,st,F),this[z]&&this.setContent(this[z]),!!o&&(o[p]=this)}};_t(p,de,o);var he=function(e,o){e=Gt(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='<button type="button" class="close">×</button>';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||Rt,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]=Gt(o[Y])||Gt(f)||n;var C=this,A=e[wt](T)||null,L=e[wt](x)||null;if(L||this[h]){var S=null,N=0,P=this[X],W=function(t){null!==S&&t[O]===Gt(".close",S)&&C.hide()},$=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+" "+P+" "+C[U])},q=function(){!Ut(S,"in")&&qt(S,"in")},F=function(){oe(e,S,P,C[Y]),ne(S)||(P=ae(P),oe(e,S,P,C[Y]))};this.toggle=function(){null===S?C.show():C.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===S&&(P=C[X],z(),F(),q(),Vt.call(e,ht,d),setTimeout(function(){Vt.call(e,pt,d)},C[j]))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){S&&null!==S&&Ut(S,"in")&&(Vt.call(e,mt,d),Ft(S,"in"),setTimeout(function(){$(),Vt.call(e,vt,d)},C[j]))},C[R])},m in e||(C[p]===ct?(Kt(e,zt[0],C.show),C[w]||Kt(e,zt[1],C.hide)):/^(click|focus)$/.test(C[p])&&(Kt(e,C[p],C.toggle),C[w]||Kt(e,"blur",C.hide)),C[w]&&Kt(document,st,W),i&&i<9||Kt(t,ft,C.hide)),e[m]=C}};_t(m,he,o);var pe=function(e,n){e=Gt(e);var o=Gt(e[wt](w));if(n=n||{},n[O]||o){for(var a,l=n[O]&&Gt(n[O])||o,r=l&&l[At]("A"),s=[],c=[],u=e[et]<e[ot]?e:t,f=u===t,d=0,h=r[Dt];d<h;d++){var p=r[d][wt]("href"),m=p&&/#[a-z0-9]+$/i.test(p)&&Gt(p);m&&(s.push(r[d]),c.push(m))}var g=function(t){var n=s[t][Mt],i=c[t],o=!f&&c[kt](i[Mt])>-1?i[Mt][G]:0,l=f&&i[Lt](),r=Ut(n,Bt)||!1,u=f?l[Rt]+a:i[G]+o,d=f?l[jt]+a:u+i[et],h=a>=u&&d>a;if(!r&&h)"LI"!==n.tagName||Ut(n,Bt)||(qt(n,Bt),r=!0,Vt.call(e,"activate","scrollspy",s[t]));else if(h){if(!h&&!r||r&&h)return}else"LI"===n.tagName&&Ut(n,Bt)&&(Ft(n,Bt),r=!1)},y=function(){a=f?ie().y:e[Q];for(var t=0,n=s[Dt];t<n;t++)g(t)};this.refresh=function(){y()},v in e||(Kt(u,dt,this.refresh),i&&i<9||Kt(t,ft,this.refresh)),this.refresh(),e[v]=this}};_t(v,pe,l);var me=function(t,e){t=Gt(t);var n=t[wt](b),o=t[wt](C),a="tab",l="height",r="isAnimating";t[r]=!1,e=e||{},this[j]=i&&i<10?0:parseInt(e[j]||n)||150,this[l]=!(i&&i<10)&&(e[l]||"true"===o||!1);var s,c,u=this,f=Jt(t,".nav"),d=Gt(".dropdown",f),h=function(){var t,e=Yt(f,Bt);return 1!==e[Dt]||Ut(e[0],"dropdown")?e[Dt]>1&&(t=e[e[Dt]-1]):t=e[0],t[At]("A")[0]},p=function(){return Gt(h()[wt]("href"))},m=function(t){t.preventDefault(),s=t[O],u.show()};this.show=function(){var e=Gt(s[wt]("href")),n=h(),i=p();n[r]&&s[r]||Ut(s[Mt],Bt)||(n[r]=s[r]=!0,Ft(n[Mt],Bt),qt(s[Mt],Bt),d&&(Ut(t[Mt][Mt],"dropdown-menu")?Ut(d,Bt)||qt(d,Bt):Ut(d,Bt)&&Ft(d,Bt)),c&&(c.style[l]=ee(i)+"px"),Vt.call(n,mt,a,s),setTimeout(function(){Ft(i,"in")},10),setTimeout(function(){c&&qt(c,Ht),Ft(i,Bt),qt(e,Bt),setTimeout(function(){qt(e,"in")},10),Vt.call(s,ht,a,n),Vt.call(n,vt,a,s),c&&(c.style[l]=ee(e)+"px")},.7*u[j]),setTimeout(function(){Vt.call(s,pt,a,n),c&&(Ft(c,Ht),c.style[l]=""),n[r]=s[r]=!1},1.5*u[j]))},g in t||Kt(t,st,m),this[l]&&(c=p()[Mt]),t[g]=this};_t(g,me,o);var ve=function(t,e){t=Gt(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||Rt,this[R]=parseInt(e[R]||delayData)||100,this[j]=i&&i<10?0:parseInt(e[j]||durationData)||150,this[Y]=Gt(e[Y])||Gt(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(){oe(t,s,r,a[Y]),ne(s)||(r=ae(r),oe(t,s,r,a[Y]))},h=function(){!Ut(s,"in")&&qt(s,"in")};this.show=function(){clearTimeout(l),l=setTimeout(function(){null===s&&(r=a[X],f(),d(),h(),Vt.call(t,ht,component),setTimeout(function(){Vt.call(t,pt,component)},a[j]))},20)},this.hide=function(){clearTimeout(l),l=setTimeout(function(){s&&null!==s&&Ut(s,"in")&&(Vt.call(t,mt,component),Ft(s,"in"),setTimeout(function(){u(),Vt.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),Kt(t,zt[0],this.show),Kt(t,zt[1],this.hide)),t[y]=this}};return _t(y,ve,o),{Affix:le,Alert:re,Button:se,Carousel:ce,Collapse:ue,Dropdown:fe,Modal:de,Popover:he,ScrollSpy:pe,Tab:me,Tooltip:ve}});
// 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",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<i;n++)e.push(t[n]);return e},Jt=function(t,e){var n=8===i?Et:Mt;return Gt(t[n](8===i?"."+e.replace(/\s(?=[a-z])/g,"."):e))},Kt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Qt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[St]){if(("."===n||"#"!==n)&&null!==Kt(e,t[St]))return t;if("#"===n&&t.id===e.substr(1))return t}return!1},Vt=function(t,e,n){t.addEventListener(e,n,!1)},Zt=function(t,e,n){t.removeEventListener(e,n,!1)},_t=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},te=document[At]("*"),ee=function(t,e,n,i){for(var o=i&&i[kt]?i:te,a=0;a<o[kt];a++){var l=o[a][wt](n),r=t.replace(/spy/i,"").toLowerCase();(l&&t===u&&l[Dt](r)>-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<i;n++)e+=ne(t.children[n]);return e},oe=function(n){var i=n[Lt]();return i[jt]>=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];d<h;d++){var p=u[d],m=p[At](r)[0];p!==s&&Yt(p,Ht)&&(Xt(p,Ht),m.removeAttribute(o),m[o]=!1,_t.call(m,bt,i))}}setTimeout(function(){n=!1},50)}}};Yt(t,"btn")&&null!==e&&(e!==a?s():c()),Yt(t,"btn-group")&&(u in t||Vt(t,st,f),t[u]=this)};ee(u,ue,o);var fe=function(e,n){e=Kt(e),n=n||{};var o="false"!==e[wt](I)&&(parseInt(e[wt](I))||5e3),a=e[wt](A)===ct||!1,l="true"===e[wt](x)||!1,r=parseInt(e[wt](b))||600,s="carousel",c="paused",u="direction",d="data-slide-to";this[P]=n[P]===!0||l,this[F]=!(n[F]!==ct&&!a)&&ct,this[j]=i&&i<10?0:n[j]||r,n[q]||o?this[q]=parseInt(n[q])||o:this[q]=!1;var h=this,p=e.index=0,m=e.timer=0,v=!1,g=Jt(e,"item"),y=g[kt],T=this[u]=Pt,w=Jt(e,s+"-control"),C=w[0],L=w[1],E=Kt("."+s+"-indicators",e),M=E[At]("LI"),D=function(){h[q]===!1||Yt(e,c)||(Ut(e,c),!v&&clearInterval(m))},S=function(){h[q]!==!1&&Yt(e,c)&&(Xt(e,c),!v&&clearInterval(m),!v&&h.cycle())},k=function(t){if(t.preventDefault(),!v){var e=t[O],n=h.getActiveIndex();if(!e||Yt(e,Ht)||!e[wt](d))return!1;p=parseInt(e[wt](d),10),n<p||0===n&&p===y-1?T=h[u]=Pt:(n>p||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<n;e++)Xt(M[e],Ht);M[t]&&Ut(M[t],Ht)};this.cycle=function(){T=this[u]=Pt,m=setInterval(function(){p++,p=p===y?0:p,h.slideTo(p)},this[q])},this.slideTo=function(t){var n=this.getActiveIndex(),o=T===Pt?"next":"prev";_t.call(e,xt,s,g[t]),v=!0,clearInterval(m),N(t),!Yt(e,"slide")||i&&i<10?(Ut(g[t],Ht),g[t][tt],Xt(g[n],Ht),setTimeout(function(){v=!1,h[q]&&!Yt(e,c)&&h.cycle(),_t.call(e,Tt,s,g[t])},this[j]+100)):(Ut(g[t],o),g[t][tt],Ut(g[t],T),Ut(g[n],T),setTimeout(function(){v=!1,Ut(g[t],Ht),Xt(g[n],Ht),Xt(g[t],o),Xt(g[t],T),Xt(g[n],T),h[q]&&!Yt(e,c)&&h.cycle(),_t.call(e,Tt,s,g[t])},this[j]+100))},this.getActiveIndex=function(){return g[Dt](Jt(e,"item active")[0])||0},f in e||(this[F]&&this[q]&&(Vt(e,Ot[0],D),Vt(e,Ot[1],S),Vt(e,"touchstart",D),Vt(e,"touchend",S)),L&&Vt(L,st,H),C&&Vt(C,st,H),E&&Vt(E,st,k,!1),this[P]===!0&&Vt(t,ut,B,!1)),this.getActiveIndex()<0&&(g[kt]&&Ut(g[0],Ht),M[kt]&&N(0)),this[q]&&this.cycle(),e[f]=this};ee(f,fe,r);var de=function(t,e){t=Kt(t),e=e||{},e.duration=parseInt(e.duration||t[wt](b)),this[j]=i&&i<10?0:e.duration||300;var n=null,o=null,a=this,l=!1,r=t[wt]("data-parent"),s="collapse",c="collapsed",u=function(t){_t.call(t,ht,s),l=!0,Xt(t,s),Ut(t,Nt),t.style[at]="0px",setTimeout(function(){t.style[at]=ie(t)+"px"},10),setTimeout(function(){Xt(t,Nt),Ut(t,s),Ut(t,Bt),t.style[at]="",l=!1,t[It](lt,"true"),_t.call(t,pt,s)},a[j])},f=function(t){_t.call(t,mt,s),l=!0,Xt(t,s),t.style[at]=ie(t)+"px",setTimeout(function(){Ut(t,Nt),t.style[at]="0px"},10),setTimeout(function(){Xt(t,Nt),Xt(t,Bt),Ut(t,s),t.style[at]="",l=!1,t[It](lt,"false"),_t.call(t,vt,s)},a[j])},h=function(){var e=t.href&&t[wt]("href"),n=t[wt](w),i=e||n&&/#/.test(n)&&n;return i&&Kt(i)};this.toggle=function(t){t.preventDefault(),l||(Yt(o,Bt)?a.hide():a.show())},this.hide=function(){f(o),Ut(t,c)},this.show=function(){if(u(o),Xt(t,c),null!==n)for(var e=Jt(n,s+" "+Bt),i=0,a=e[kt];i<a;i++)e[i]!==o&&f(e[i])},d in t||Vt(t,st,this.toggle),o=h(),n=Kt(e.parent)||r&&Qt(t,r),t[d]=this};ee(d,de,o);var he=function(t,e){t=Kt(t),this.persist=e===!0||"true"===t[wt]("data-persist")||!1;var n=this,i=!1,a=t[St],l="dropdown",r="open",s=null,c=Kt(".dropdown-menu",a),u=Gt(c[At]("*")),f=function(t){!i||27!=t.which&&27!=t.keyCode||(s=null,m())},d=function(e){var l,r=e[O];if(r&&r[St]){if(l=r[wt](o)||r[St][wt](o),r===t||r===a||r[St]===t)e.preventDefault(),s=t,n.toggle();else if(i){if((r===c||u&&u[Dt](r)>-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(),g=c[ot]>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='<button type="button" class="close">×</button>';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]<e[ot]?e:t,f=u===t,d=0,h=r[kt];d<h;d++){var p=r[d][wt]("href"),m=p&&/#[a-z0-9]+$/i.test(p)&&Kt(p);m&&(s.push(r[d]),c.push(m))}var g=function(t){var n=s[t][St],i=c[t],o=Qt(n,".dropdown"),l=f&&i[Lt](),r=Yt(n,Ht)||!1,u=f?l[jt]+a:i[G]-(c[t-1]?0:10),d=f?l[zt]+a:c[t+1]?c[t+1][G]:e[ot],h=a>=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];t<n;t++)g(t)};this.refresh=function(){y()},v in e||(Vt(u,dt,this.refresh),i&&i<9||Vt(t,ft,this.refresh)),this.refresh(),e[v]=this}};ee(v,ve,l);var ge=function(t,e){t=Kt(t);var n=t[wt](b),o=t[wt](C),a="tab",l="height",r="isAnimating";t[r]=!1,e=e||{},this[j]=i&&i<10?0:parseInt(e[j]||n)||150,this[l]=!(i&&i<10)&&(e[l]||"true"===o||!1);var s,c,u=this,f=Qt(t,".nav"),d=Kt(".dropdown",f),h=function(){var t,e=Jt(f,Ht);return 1!==e[kt]||Yt(e[0],"dropdown")?e[kt]>1&&(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}});
{
"name": "bootstrap.native",
"version": "2.0.2",
"version": "2.0.3",
"description": "Native Javascript for Bootstrap 3, the sweetest Javascript library without jQuery.",

@@ -9,3 +9,5 @@ "main": "dist/bootstrap-native.js",

"build": "node build.js > dist/bootstrap-native.js && npm run build-min",
"build-v4": "node build-v4.js > dist/bootstrap-native-v4.js && npm run build-v4-min",
"build-min": "node build.js -m > dist/bootstrap-native.min.js",
"build-v4-min": "node build-v4.js -m > dist/bootstrap-native-v4.min.js",
"watch": "onchange \"lib/*\" -i -- npm run build"

@@ -12,0 +14,0 @@ },

@@ -56,3 +56,3 @@ # Native Javascript for Bootstrap

# Custom Builds
You can make a custom build of bootstrap-native, including only the modules you need, by using the `build.js` script.
You can make a custom build of bootstrap-native, including only the modules you need, by using the `build.js` and `build-v4.js` scripts.

@@ -59,0 +59,0 @@ ## Usage:

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc