diff --git a/css/bootstrap-select.min.css b/css/bootstrap-select.min.css new file mode 100755 index 0000000..9d96ebb --- /dev/null +++ b/css/bootstrap-select.min.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select) + * + * Copyright 2013-2017 bootstrap-select + * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) + */select.bs-select-hidden,select.selectpicker{display:none!important}.bootstrap-select{width:220px\9}.bootstrap-select>.dropdown-toggle{width:100%;padding-right:25px;z-index:1}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:active,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:#999}.bootstrap-select>select{position:absolute!important;bottom:0;left:50%;display:block!important;width:.5px!important;height:100%!important;padding:0!important;opacity:0!important;border:none}.bootstrap-select>select.mobile-device{top:0;left:0;display:block!important;width:100%!important;z-index:2}.error .bootstrap-select .dropdown-toggle,.has-error .bootstrap-select .dropdown-toggle{border-color:#b94a48}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select .dropdown-toggle:focus{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none}.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.form-control.input-group-btn{z-index:auto}.bootstrap-select.form-control.input-group-btn:not(:first-child):not(:last-child)>.btn{border-radius:0}.bootstrap-select.btn-group:not(.input-group-btn),.bootstrap-select.btn-group[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.btn-group.dropdown-menu-right,.bootstrap-select.btn-group[class*=col-].dropdown-menu-right,.row .bootstrap-select.btn-group[class*=col-].dropdown-menu-right{float:right}.form-group .bootstrap-select.btn-group,.form-horizontal .bootstrap-select.btn-group,.form-inline .bootstrap-select.btn-group{margin-bottom:0}.form-group-lg .bootstrap-select.btn-group.form-control,.form-group-sm .bootstrap-select.btn-group.form-control{padding:0}.form-group-lg .bootstrap-select.btn-group.form-control .dropdown-toggle,.form-group-sm .bootstrap-select.btn-group.form-control .dropdown-toggle{height:100%;font-size:inherit;line-height:inherit;border-radius:inherit}.form-inline .bootstrap-select.btn-group .form-control{width:100%}.bootstrap-select.btn-group.disabled,.bootstrap-select.btn-group>.disabled{cursor:not-allowed}.bootstrap-select.btn-group.disabled:focus,.bootstrap-select.btn-group>.disabled:focus{outline:0!important}.bootstrap-select.btn-group.bs-container{position:absolute;height:0!important;padding:0!important}.bootstrap-select.btn-group.bs-container .dropdown-menu{z-index:1060}.bootstrap-select.btn-group .dropdown-toggle .filter-option{display:inline-block;overflow:hidden;width:100%;text-align:left}.bootstrap-select.btn-group .dropdown-toggle .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.bootstrap-select.btn-group[class*=col-] .dropdown-toggle{width:100%}.bootstrap-select.btn-group .dropdown-menu{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .dropdown-menu.inner{position:static;float:none;border:0;padding:0;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.bootstrap-select.btn-group .dropdown-menu li{position:relative}.bootstrap-select.btn-group .dropdown-menu li.active small{color:#fff}.bootstrap-select.btn-group .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select.btn-group .dropdown-menu li a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bootstrap-select.btn-group .dropdown-menu li a.opt{position:relative;padding-left:2.25em}.bootstrap-select.btn-group .dropdown-menu li a span.check-mark{display:none}.bootstrap-select.btn-group .dropdown-menu li a span.text{display:inline-block}.bootstrap-select.btn-group .dropdown-menu li small{padding-left:.5em}.bootstrap-select.btn-group .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .no-results{padding:3px;background:#f5f5f5;margin:0 5px;white-space:nowrap}.bootstrap-select.btn-group.fit-width .dropdown-toggle .filter-option{position:static}.bootstrap-select.btn-group.fit-width .dropdown-toggle .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark{position:absolute;display:inline-block;right:15px;margin-top:5px}.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle{z-index:1061}.bootstrap-select.show-menu-arrow .dropdown-toggle:before{content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(204,204,204,.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle:after{content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before{bottom:auto;top:-3px;border-top:7px solid rgba(204,204,204,.2);border-bottom:0}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after{bottom:auto;top:-3px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:after,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:before{display:block}.bs-actionsbox,.bs-donebutton,.bs-searchbox{padding:4px 8px}.bs-actionsbox{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-actionsbox .btn-group button{width:50%}.bs-donebutton{float:left;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-donebutton .btn-group button{width:100%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox .form-control{margin-bottom:0;width:100%;float:none} \ No newline at end of file diff --git a/img/cryptologo/ANC.png b/img/cryptologo/ANC.png new file mode 100644 index 0000000..8d78f3b Binary files /dev/null and b/img/cryptologo/ANC.png differ diff --git a/img/cryptologo/AUD.png b/img/cryptologo/AUD.png new file mode 100755 index 0000000..8a62bcf Binary files /dev/null and b/img/cryptologo/AUD.png differ diff --git a/img/cryptologo/BET.png b/img/cryptologo/BET.png new file mode 100644 index 0000000..3ccc4dc Binary files /dev/null and b/img/cryptologo/BET.png differ diff --git a/img/cryptologo/BGN.png b/img/cryptologo/BGN.png new file mode 100755 index 0000000..bd52272 Binary files /dev/null and b/img/cryptologo/BGN.png differ diff --git a/img/cryptologo/BOTS.png b/img/cryptologo/BOTS.png new file mode 100644 index 0000000..748ba33 Binary files /dev/null and b/img/cryptologo/BOTS.png differ diff --git a/img/cryptologo/BRL.png b/img/cryptologo/BRL.png new file mode 100755 index 0000000..5b39d56 Binary files /dev/null and b/img/cryptologo/BRL.png differ diff --git a/img/cryptologo/BTCD.png b/img/cryptologo/BTCD.png new file mode 100755 index 0000000..32bf5a4 Binary files /dev/null and b/img/cryptologo/BTCD.png differ diff --git a/img/cryptologo/BTM.png b/img/cryptologo/BTM.png new file mode 100644 index 0000000..6aa3827 Binary files /dev/null and b/img/cryptologo/BTM.png differ diff --git a/img/cryptologo/CAD.png b/img/cryptologo/CAD.png new file mode 100755 index 0000000..28464df Binary files /dev/null and b/img/cryptologo/CAD.png differ diff --git a/img/cryptologo/CARB.png b/img/cryptologo/CARB.png new file mode 100644 index 0000000..2438c27 Binary files /dev/null and b/img/cryptologo/CARB.png differ diff --git a/img/cryptologo/CEAL.png b/img/cryptologo/CEAL.png new file mode 100644 index 0000000..4d31544 Binary files /dev/null and b/img/cryptologo/CEAL.png differ diff --git a/img/cryptologo/CHF.png b/img/cryptologo/CHF.png new file mode 100755 index 0000000..fed5111 Binary files /dev/null and b/img/cryptologo/CHF.png differ diff --git a/img/cryptologo/CNY.png b/img/cryptologo/CNY.png new file mode 100755 index 0000000..63c2b87 Binary files /dev/null and b/img/cryptologo/CNY.png differ diff --git a/img/cryptologo/CRYPTO.png b/img/cryptologo/CRYPTO.png new file mode 100644 index 0000000..57def47 Binary files /dev/null and b/img/cryptologo/CRYPTO.png differ diff --git a/img/cryptologo/CZK.png b/img/cryptologo/CZK.png new file mode 100755 index 0000000..fb84624 Binary files /dev/null and b/img/cryptologo/CZK.png differ diff --git a/img/cryptologo/DGB.png b/img/cryptologo/DGB.png new file mode 100644 index 0000000..bb4a714 Binary files /dev/null and b/img/cryptologo/DGB.png differ diff --git a/img/cryptologo/DKK.png b/img/cryptologo/DKK.png new file mode 100755 index 0000000..44c5e62 Binary files /dev/null and b/img/cryptologo/DKK.png differ diff --git a/img/cryptologo/DOGE.png b/img/cryptologo/DOGE.png new file mode 100644 index 0000000..17b02c4 Binary files /dev/null and b/img/cryptologo/DOGE.png differ diff --git a/img/cryptologo/EUR.png b/img/cryptologo/EUR.png new file mode 100644 index 0000000..fd2e8b3 Binary files /dev/null and b/img/cryptologo/EUR.png differ diff --git a/img/cryptologo/FRK.png b/img/cryptologo/FRK.png new file mode 100644 index 0000000..1a28c0b Binary files /dev/null and b/img/cryptologo/FRK.png differ diff --git a/img/cryptologo/GAME.png b/img/cryptologo/GAME.png new file mode 100644 index 0000000..17ddaf4 Binary files /dev/null and b/img/cryptologo/GAME.png differ diff --git a/img/cryptologo/GBP.png b/img/cryptologo/GBP.png new file mode 100755 index 0000000..4dbeec1 Binary files /dev/null and b/img/cryptologo/GBP.png differ diff --git a/img/cryptologo/HKD.png b/img/cryptologo/HKD.png new file mode 100755 index 0000000..5ed84b2 Binary files /dev/null and b/img/cryptologo/HKD.png differ diff --git a/img/cryptologo/HODL.png b/img/cryptologo/HODL.png new file mode 100644 index 0000000..7289d2e Binary files /dev/null and b/img/cryptologo/HODL.png differ diff --git a/img/cryptologo/HRK.png b/img/cryptologo/HRK.png new file mode 100755 index 0000000..c1923c5 Binary files /dev/null and b/img/cryptologo/HRK.png differ diff --git a/img/cryptologo/HUF.png b/img/cryptologo/HUF.png new file mode 100755 index 0000000..8d93b5e Binary files /dev/null and b/img/cryptologo/HUF.png differ diff --git a/img/cryptologo/HUSH.png b/img/cryptologo/HUSH.png new file mode 100755 index 0000000..eca9063 Binary files /dev/null and b/img/cryptologo/HUSH.png differ diff --git a/img/cryptologo/IDR.png b/img/cryptologo/IDR.png new file mode 100755 index 0000000..da4e5a6 Binary files /dev/null and b/img/cryptologo/IDR.png differ diff --git a/img/cryptologo/ILS.png b/img/cryptologo/ILS.png new file mode 100755 index 0000000..23bb4ff Binary files /dev/null and b/img/cryptologo/ILS.png differ diff --git a/img/cryptologo/INR.png b/img/cryptologo/INR.png new file mode 100755 index 0000000..8a361de Binary files /dev/null and b/img/cryptologo/INR.png differ diff --git a/img/cryptologo/JPY.png b/img/cryptologo/JPY.png new file mode 100644 index 0000000..dbbcac1 Binary files /dev/null and b/img/cryptologo/JPY.png differ diff --git a/img/cryptologo/JUMBLR.png b/img/cryptologo/JUMBLR.png new file mode 100644 index 0000000..28d4ea2 Binary files /dev/null and b/img/cryptologo/JUMBLR.png differ diff --git a/img/cryptologo/KRW.png b/img/cryptologo/KRW.png new file mode 100755 index 0000000..e33deb5 Binary files /dev/null and b/img/cryptologo/KRW.png differ diff --git a/img/cryptologo/KV.png b/img/cryptologo/KV.png new file mode 100644 index 0000000..e7c2fdf Binary files /dev/null and b/img/cryptologo/KV.png differ diff --git a/img/cryptologo/LTC.png b/img/cryptologo/LTC.png new file mode 100644 index 0000000..42fad23 Binary files /dev/null and b/img/cryptologo/LTC.png differ diff --git a/img/cryptologo/MESH.png b/img/cryptologo/MESH.png new file mode 100644 index 0000000..890199e Binary files /dev/null and b/img/cryptologo/MESH.png differ diff --git a/img/cryptologo/MGW.png b/img/cryptologo/MGW.png new file mode 100644 index 0000000..f9a8626 Binary files /dev/null and b/img/cryptologo/MGW.png differ diff --git a/img/cryptologo/MVP.png b/img/cryptologo/MVP.png new file mode 100644 index 0000000..d4d6824 Binary files /dev/null and b/img/cryptologo/MVP.png differ diff --git a/img/cryptologo/MXN.png b/img/cryptologo/MXN.png new file mode 100755 index 0000000..d4762ca Binary files /dev/null and b/img/cryptologo/MXN.png differ diff --git a/img/cryptologo/MYR.png b/img/cryptologo/MYR.png new file mode 100755 index 0000000..aa8fc68 Binary files /dev/null and b/img/cryptologo/MYR.png differ diff --git a/img/cryptologo/MZC.png b/img/cryptologo/MZC.png new file mode 100644 index 0000000..4642345 Binary files /dev/null and b/img/cryptologo/MZC.png differ diff --git a/img/cryptologo/NMC.png b/img/cryptologo/NMC.png new file mode 100644 index 0000000..b0f1d2d Binary files /dev/null and b/img/cryptologo/NMC.png differ diff --git a/img/cryptologo/NOK.png b/img/cryptologo/NOK.png new file mode 100755 index 0000000..1150313 Binary files /dev/null and b/img/cryptologo/NOK.png differ diff --git a/img/cryptologo/NZD.png b/img/cryptologo/NZD.png new file mode 100755 index 0000000..f6b2d29 Binary files /dev/null and b/img/cryptologo/NZD.png differ diff --git a/img/cryptologo/PANGEA.png b/img/cryptologo/PANGEA.png new file mode 100644 index 0000000..153fa6a Binary files /dev/null and b/img/cryptologo/PANGEA.png differ diff --git a/img/cryptologo/PHP.png b/img/cryptologo/PHP.png new file mode 100755 index 0000000..c176158 Binary files /dev/null and b/img/cryptologo/PHP.png differ diff --git a/img/cryptologo/PLN.png b/img/cryptologo/PLN.png new file mode 100755 index 0000000..876ff3a Binary files /dev/null and b/img/cryptologo/PLN.png differ diff --git a/img/cryptologo/REVS.png b/img/cryptologo/REVS.png new file mode 100644 index 0000000..4b2a230 Binary files /dev/null and b/img/cryptologo/REVS.png differ diff --git a/img/cryptologo/RON.png b/img/cryptologo/RON.png new file mode 100755 index 0000000..48e0fa3 Binary files /dev/null and b/img/cryptologo/RON.png differ diff --git a/img/cryptologo/RUB.png b/img/cryptologo/RUB.png new file mode 100755 index 0000000..c0bd675 Binary files /dev/null and b/img/cryptologo/RUB.png differ diff --git a/img/cryptologo/SEK.png b/img/cryptologo/SEK.png new file mode 100755 index 0000000..d84b115 Binary files /dev/null and b/img/cryptologo/SEK.png differ diff --git a/img/cryptologo/SGD.png b/img/cryptologo/SGD.png new file mode 100755 index 0000000..c085972 Binary files /dev/null and b/img/cryptologo/SGD.png differ diff --git a/img/cryptologo/SHARK.png b/img/cryptologo/SHARK.png new file mode 100644 index 0000000..f321f3c Binary files /dev/null and b/img/cryptologo/SHARK.png differ diff --git a/img/cryptologo/SUPERNET.png b/img/cryptologo/SUPERNET.png new file mode 100644 index 0000000..9222155 Binary files /dev/null and b/img/cryptologo/SUPERNET.png differ diff --git a/img/cryptologo/SYS.png b/img/cryptologo/SYS.png new file mode 100644 index 0000000..d0a4f66 Binary files /dev/null and b/img/cryptologo/SYS.png differ diff --git a/img/cryptologo/THB.png b/img/cryptologo/THB.png new file mode 100755 index 0000000..27feba1 Binary files /dev/null and b/img/cryptologo/THB.png differ diff --git a/img/cryptologo/TRY.png b/img/cryptologo/TRY.png new file mode 100644 index 0000000..390b48f Binary files /dev/null and b/img/cryptologo/TRY.png differ diff --git a/img/cryptologo/UNO.png b/img/cryptologo/UNO.png new file mode 100644 index 0000000..c607df4 Binary files /dev/null and b/img/cryptologo/UNO.png differ diff --git a/img/cryptologo/VPN.png b/img/cryptologo/VPN.png new file mode 100644 index 0000000..04d93f0 Binary files /dev/null and b/img/cryptologo/VPN.png differ diff --git a/img/cryptologo/WLC.png b/img/cryptologo/WLC.png new file mode 100644 index 0000000..bd100c0 Binary files /dev/null and b/img/cryptologo/WLC.png differ diff --git a/img/cryptologo/ZAR.png b/img/cryptologo/ZAR.png new file mode 100755 index 0000000..e948d74 Binary files /dev/null and b/img/cryptologo/ZAR.png differ diff --git a/img/cryptologo/ZEC.png b/img/cryptologo/ZEC.png new file mode 100644 index 0000000..d2c5fb9 Binary files /dev/null and b/img/cryptologo/ZEC.png differ diff --git a/img/cryptologo/ZET.png b/img/cryptologo/ZET.png new file mode 100644 index 0000000..d2ae4b5 Binary files /dev/null and b/img/cryptologo/ZET.png differ diff --git a/img/cryptologo/bitcoin.png b/img/cryptologo/bitcoin.png new file mode 100755 index 0000000..60928ba Binary files /dev/null and b/img/cryptologo/bitcoin.png differ diff --git a/img/cryptologo/dex.png b/img/cryptologo/dex.png new file mode 100644 index 0000000..3c9c677 Binary files /dev/null and b/img/cryptologo/dex.png differ diff --git a/img/cryptologo/gamerscoin.png b/img/cryptologo/gamerscoin.png new file mode 100644 index 0000000..4546efd Binary files /dev/null and b/img/cryptologo/gamerscoin.png differ diff --git a/img/cryptologo/komodo.png b/img/cryptologo/komodo.png new file mode 100644 index 0000000..0a332ec Binary files /dev/null and b/img/cryptologo/komodo.png differ diff --git a/img/cryptologo/usd.png b/img/cryptologo/usd.png new file mode 100755 index 0000000..2b84ea7 Binary files /dev/null and b/img/cryptologo/usd.png differ diff --git a/index.html b/index.html index 94c18bf..3fd936b 100644 --- a/index.html +++ b/index.html @@ -11,6 +11,7 @@ + @@ -354,6 +355,54 @@
+
+
Trading Pair
+
+
':"",g=this.multiple&&this.options.actionsBox?'
":"",h=this.multiple&&this.options.doneButton?'
":"",i='
";return a(i)},createView:function(){var a=this.createDropdown(),b=this.createLi();return a.find("ul")[0].innerHTML=b,a},reloadLi:function(){var a=this.createLi();this.$menuInner[0].innerHTML=a},createLi:function(){var c=this,d=[],e=0,f=document.createElement("option"),g=-1,h=function(a,b,c,d){return""+a+""},i=function(d,e,f,g){return''+d+''};if(this.options.title&&!this.multiple&&(g--,!this.$element.find(".bs-title-option").length)){var k=this.$element[0];f.className="bs-title-option",f.innerHTML=this.options.title,f.value="",k.insertBefore(f,k.firstChild);var l=a(k.options[k.selectedIndex]);void 0===l.attr("selected")&&void 0===this.$element.data("selected")&&(f.selected=!0)}var m=this.$element.find("option");return m.each(function(b){var f=a(this);if(g++,!f.hasClass("bs-title-option")){var k,l=this.className||"",n=j(this.style.cssText),o=f.data("content")?f.data("content"):f.html(),p=f.data("tokens")?f.data("tokens"):null,q="undefined"!=typeof f.data("subtext")?''+f.data("subtext")+"":"",r="undefined"!=typeof f.data("icon")?' ':"",s=f.parent(),t="OPTGROUP"===s[0].tagName,u=t&&s[0].disabled,v=this.disabled||u;if(""!==r&&v&&(r=""+r+""),c.options.hideDisabled&&(v&&!t||u))return k=f.data("prevHiddenIndex"),f.next().data("prevHiddenIndex",void 0!==k?k:b),void g--;if(f.data("content")||(o=r+''+o+q+""),t&&f.data("divider")!==!0){if(c.options.hideDisabled&&v){if(void 0===s.data("allOptionsDisabled")){var w=s.children();s.data("allOptionsDisabled",w.filter(":disabled").length===w.length)}if(s.data("allOptionsDisabled"))return void g--}var x=" "+s[0].className||"";if(0===f.index()){e+=1;var y=s[0].label,z="undefined"!=typeof s.data("subtext")?''+s.data("subtext")+"":"",A=s.data("icon")?' ':"";y=A+''+j(y)+z+"",0!==b&&d.length>0&&(g++,d.push(h("",null,"divider",e+"div"))),g++,d.push(h(y,null,"dropdown-header"+x,e))}if(c.options.hideDisabled&&v)return void g--;d.push(h(i(o,"opt "+l+x,n,p),b,"",e))}else if(f.data("divider")===!0)d.push(h("",b,"divider"));else if(f.data("hidden")===!0)k=f.data("prevHiddenIndex"),f.next().data("prevHiddenIndex",void 0!==k?k:b),d.push(h(i(o,l,n,p),b,"hidden is-hidden"));else{var B=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName;if(!B&&c.options.hideDisabled&&(k=f.data("prevHiddenIndex"),void 0!==k)){var C=m.eq(k)[0].previousElementSibling;C&&"OPTGROUP"===C.tagName&&!C.disabled&&(B=!0)}B&&(g++,d.push(h("",null,"divider",e+"div"))),d.push(h(i(o,l,n,p),b))}c.liObj[b]=g}}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),d.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(b){var c,d=this,e=this.$element.find("option");b!==!1&&e.each(function(a){var b=d.findLis().eq(d.liObj[a]);d.setDisabled(a,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,b),d.setSelected(a,this.selected,b)}),this.togglePlaceholder(),this.tabIndex();var f=e.map(function(){if(this.selected){if(d.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled))return;var b,c=a(this),e=c.data("icon")&&d.options.showIcon?' ':"";return b=d.options.showSubtext&&c.data("subtext")&&!d.multiple?' '+c.data("subtext")+"":"","undefined"!=typeof c.attr("title")?c.attr("title"):c.data("content")&&d.options.showContent?c.data("content").toString():e+c.html()+b}}).toArray(),g=this.multiple?f.join(this.options.multipleSeparator):f[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var h=this.options.selectedTextFormat.split(">");if(h.length>1&&f.length>h[1]||1==h.length&&f.length>=2){c=this.options.hideDisabled?", [disabled]":"";var i=e.not('[data-divider="true"], [data-hidden="true"]'+c).length,j="function"==typeof this.options.countSelectedText?this.options.countSelectedText(f.length,i):this.options.countSelectedText;g=j.replace("{0}",f.length.toString()).replace("{1}",i.toString())}}void 0==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(g=this.options.title),g||(g="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",k(a.trim(g.replace(/<[^>]*>?/g,"")))),this.$button.children(".filter-option").html(g),this.$element.trigger("rendered.bs.select")},setStyle:function(a,b){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var c=a?a:this.options.style;"add"==b?this.$button.addClass(c):"remove"==b?this.$button.removeClass(c):(this.$button.removeClass(this.options.style),this.$button.addClass(c))},liHeight:function(b){if(b||this.options.size!==!1&&!this.sizeInfo){var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("ul"),f=document.createElement("li"),g=document.createElement("li"),h=document.createElement("a"),i=document.createElement("span"),j=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,k=this.options.liveSearch?document.createElement("div"):null,l=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,m=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(i.className="text",c.className=this.$menu[0].parentNode.className+" open",d.className="dropdown-menu open",e.className="dropdown-menu inner",f.className="divider",i.appendChild(document.createTextNode("Inner text")),h.appendChild(i),g.appendChild(h),e.appendChild(g),e.appendChild(f),j&&d.appendChild(j),k){var n=document.createElement("input");k.className="bs-searchbox",n.className="form-control",k.appendChild(n),d.appendChild(k)}l&&d.appendChild(l),d.appendChild(e),m&&d.appendChild(m),c.appendChild(d),document.body.appendChild(c);var o=h.offsetHeight,p=j?j.offsetHeight:0,q=k?k.offsetHeight:0,r=l?l.offsetHeight:0,s=m?m.offsetHeight:0,t=a(f).outerHeight(!0),u="function"==typeof getComputedStyle&&getComputedStyle(d),v=u?null:a(d),w={vert:parseInt(u?u.paddingTop:v.css("paddingTop"))+parseInt(u?u.paddingBottom:v.css("paddingBottom"))+parseInt(u?u.borderTopWidth:v.css("borderTopWidth"))+parseInt(u?u.borderBottomWidth:v.css("borderBottomWidth")),horiz:parseInt(u?u.paddingLeft:v.css("paddingLeft"))+parseInt(u?u.paddingRight:v.css("paddingRight"))+parseInt(u?u.borderLeftWidth:v.css("borderLeftWidth"))+parseInt(u?u.borderRightWidth:v.css("borderRightWidth"))},x={vert:w.vert+parseInt(u?u.marginTop:v.css("marginTop"))+parseInt(u?u.marginBottom:v.css("marginBottom"))+2,horiz:w.horiz+parseInt(u?u.marginLeft:v.css("marginLeft"))+parseInt(u?u.marginRight:v.css("marginRight"))+2};document.body.removeChild(c),this.sizeInfo={liHeight:o,headerHeight:p,searchHeight:q,actionsHeight:r,doneButtonHeight:s,dividerHeight:t,menuPadding:w,menuExtras:x}}},setSize:function(){if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var b,c,d,e,f,g,h,i,j=this,k=this.$menu,l=this.$menuInner,m=a(window),n=this.$newElement[0].offsetHeight,o=this.$newElement[0].offsetWidth,p=this.sizeInfo.liHeight,q=this.sizeInfo.headerHeight,r=this.sizeInfo.searchHeight,s=this.sizeInfo.actionsHeight,t=this.sizeInfo.doneButtonHeight,u=this.sizeInfo.dividerHeight,v=this.sizeInfo.menuPadding,w=this.sizeInfo.menuExtras,x=this.options.hideDisabled?".disabled":"",y=function(){var b,c=j.$newElement.offset(),d=a(j.options.container);j.options.container&&!d.is("body")?(b=d.offset(),b.top+=parseInt(d.css("borderTopWidth")),b.left+=parseInt(d.css("borderLeftWidth"))):b={top:0,left:0};var e=j.options.windowPadding;f=c.top-b.top-m.scrollTop(),g=m.height()-f-n-b.top-e[2],h=c.left-b.left-m.scrollLeft(),i=m.width()-h-o-b.left-e[1],f-=e[0],h-=e[3]};if(y(),"auto"===this.options.size){var z=function(){var m,n=function(b,c){return function(d){return c?d.classList?d.classList.contains(b):a(d).hasClass(b):!(d.classList?d.classList.contains(b):a(d).hasClass(b))}},u=j.$menuInner[0].getElementsByTagName("li"),x=Array.prototype.filter?Array.prototype.filter.call(u,n("hidden",!1)):j.$lis.not(".hidden"),z=Array.prototype.filter?Array.prototype.filter.call(x,n("dropdown-header",!0)):x.filter(".dropdown-header");y(),b=g-w.vert,c=i-w.horiz,j.options.container?(k.data("height")||k.data("height",k.height()),d=k.data("height"),k.data("width")||k.data("width",k.width()),e=k.data("width")):(d=k.height(),e=k.width()),j.options.dropupAuto&&j.$newElement.toggleClass("dropup",f>g&&b-w.verti&&c-w.horiz3?3*p+w.vert-2:0,k.css({"max-height":b+"px",overflow:"hidden","min-height":m+q+r+s+t+"px"}),l.css({"max-height":b-q-r-s-t-v.vert+"px","overflow-y":"auto","min-height":Math.max(m-v.vert,0)+"px"})};z(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",z),m.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",z)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(x).length>this.options.size){var A=this.$lis.not(".divider").not(x).children().slice(0,this.options.size).last().parent().index(),B=this.$lis.slice(0,A+1).filter(".divider").length;b=p*this.options.size+B*u+v.vert,j.options.container?(k.data("height")||k.data("height",k.height()),d=k.data("height")):d=k.height(),j.options.dropupAuto&&this.$newElement.toggleClass("dropup",f>g&&b-w.vert');var b,c,d,e=this,f=a(this.options.container),g=function(a){e.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",a.hasClass("dropup")),b=a.offset(),f.is("body")?c={top:0,left:0}:(c=f.offset(),c.top+=parseInt(f.css("borderTopWidth"))-f.scrollTop(),c.left+=parseInt(f.css("borderLeftWidth"))-f.scrollLeft()),d=a.hasClass("dropup")?0:a[0].offsetHeight,e.$bsContainer.css({top:b.top-c.top+d,left:b.left-c.left,width:a[0].offsetWidth})};this.$button.on("click",function(){var b=a(this);e.isDisabled()||(g(e.$newElement),e.$bsContainer.appendTo(e.options.container).toggleClass("open",!b.hasClass("open")).append(e.$menu))}),a(window).on("resize scroll",function(){g(e.$newElement)}),this.$element.on("hide.bs.select",function(){e.$menu.data("height",e.$menu.height()),e.$bsContainer.detach()})},setSelected:function(a,b,c){c||(this.togglePlaceholder(),c=this.findLis().eq(this.liObj[a])),c.toggleClass("selected",b).find("a").attr("aria-selected",b)},setDisabled:function(a,b,c){c||(c=this.findLis().eq(this.liObj[a])),b?c.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",!0):c.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",!1)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var a=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled").attr("aria-disabled",!1)),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!a.isDisabled()})},togglePlaceholder:function(){var a=this.$element.val();this.$button.toggleClass("bs-placeholder",null===a||""===a||a.constructor===Array&&0===a.length)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&this.$element.attr("tabindex")!==-98&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var b=this,c=a(document);c.data("spaceSelect",!1),this.$button.on("keyup",function(a){/(32)/.test(a.keyCode.toString(10))&&c.data("spaceSelect")&&(a.preventDefault(),c.data("spaceSelect",!1))}),this.$button.on("click",function(){b.setSize()}),this.$element.on("shown.bs.select",function(){if(b.options.liveSearch||b.multiple){if(!b.multiple){var a=b.liObj[b.$element[0].selectedIndex];if("number"!=typeof a||b.options.size===!1)return;var c=b.$lis.eq(a)[0].offsetTop-b.$menuInner[0].offsetTop;c=c-b.$menuInner[0].offsetHeight/2+b.sizeInfo.liHeight/2,b.$menuInner[0].scrollTop=c}}else b.$menuInner.find(".selected a").focus()}),this.$menuInner.on("click","li a",function(c){var d=a(this),f=d.parent().data("originalIndex"),g=b.$element.val(),h=b.$element.prop("selectedIndex"),i=!0;if(b.multiple&&1!==b.options.maxOptions&&c.stopPropagation(),c.preventDefault(),!b.isDisabled()&&!d.parent().hasClass("disabled")){var j=b.$element.find("option"),k=j.eq(f),l=k.prop("selected"),m=k.parent("optgroup"),n=b.options.maxOptions,o=m.data("maxOptions")||!1;if(b.multiple){if(k.prop("selected",!l),b.setSelected(f,!l),d.blur(),n!==!1||o!==!1){var p=n
');t[2]&&(u=u.replace("{var}",t[2][n>1?0:1]),v=v.replace("{var}",t[2][o>1?0:1])),k.prop("selected",!1),b.$menu.append(w),n&&p&&(w.append(a("
"+u+"
")),i=!1,b.$element.trigger("maxReached.bs.select")),o&&q&&(w.append(a("
"+v+"
")),i=!1,b.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){b.setSelected(f,!1)},10),w.delay(750).fadeOut(300,function(){a(this).remove()})}}}else j.prop("selected",!1),k.prop("selected",!0),b.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",!1),b.setSelected(f,!0);!b.multiple||b.multiple&&1===b.options.maxOptions?b.$button.focus():b.options.liveSearch&&b.$searchbox.focus(),i&&(g!=b.$element.val()&&b.multiple||h!=b.$element.prop("selectedIndex")&&!b.multiple)&&(e=[f,k.prop("selected"),l],b.$element.triggerNative("change"))}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(c){c.currentTarget==this&&(c.preventDefault(),c.stopPropagation(),b.options.liveSearch&&!a(c.target).hasClass("close")?b.$searchbox.focus():b.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(a){a.preventDefault(),a.stopPropagation(),b.options.liveSearch?b.$searchbox.focus():b.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){b.$button.click()}),this.$searchbox.on("click",function(a){a.stopPropagation()}),this.$menu.on("click",".actions-btn",function(c){b.options.liveSearch?b.$searchbox.focus():b.$button.focus(),c.preventDefault(),c.stopPropagation(),a(this).hasClass("bs-select-all")?b.selectAll():b.deselectAll()}),this.$element.change(function(){b.render(!1),b.$element.trigger("changed.bs.select",e),e=null})},liveSearchListener:function(){var c=this,d=a('
  • ');this.$button.on("click.dropdown.data-api",function(){c.$menuInner.find(".active").removeClass("active"),c.$searchbox.val()&&(c.$searchbox.val(""),c.$lis.not(".is-hidden").removeClass("hidden"),d.parent().length&&d.remove()),c.multiple||c.$menuInner.find(".selected").addClass("active"),setTimeout(function(){c.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(a){a.stopPropagation()}),this.$searchbox.on("input propertychange",function(){if(c.$lis.not(".is-hidden").removeClass("hidden"),c.$lis.filter(".active").removeClass("active"),d.remove(),c.$searchbox.val()){var e,f=c.$lis.not(".is-hidden, .divider, .dropdown-header");if(e=c.options.liveSearchNormalize?f.not(":a"+c._searchStyle()+'("'+b(c.$searchbox.val())+'")'):f.not(":"+c._searchStyle()+'("'+c.$searchbox.val()+'")'),e.length===f.length)d.html(c.options.noneResultsText.replace("{0}",'"'+j(c.$searchbox.val())+'"')),c.$menuInner.append(d),c.$lis.addClass("hidden");else{e.addClass("hidden");var g,h=c.$lis.not(".hidden");h.each(function(b){var c=a(this);c.hasClass("divider")?void 0===g?c.addClass("hidden"):(g&&g.addClass("hidden"),g=c):c.hasClass("dropdown-header")&&h.eq(b+1).data("optgroup")!==c.data("optgroup")?c.addClass("hidden"):g=null}),g&&g.addClass("hidden"),f.not(".hidden").first().addClass("active"),c.$menuInner.scrollTop(0)}}})},_searchStyle:function(){var a={begins:"ibegins",startsWith:"ibegins"};return a[this.options.liveSearchStyle]||"icontains"},val:function(a){return"undefined"!=typeof a?(this.$element.val(a),this.render(),this.$element):this.$element.val()},changeAll:function(b){if(this.multiple){"undefined"==typeof b&&(b=!0),this.findLis();var c=this.$element.find("option"),d=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),e=d.length,f=[];if(b){if(d.filter(".selected").length===d.length)return}else if(0===d.filter(".selected").length)return;d.toggleClass("selected",b);for(var g=0;g=48&&b.keyCode<=57||b.keyCode>=96&&b.keyCode<=105||b.keyCode>=65&&b.keyCode<=90))return i.options.container?i.$button.trigger("click"):(i.setSize(),i.$menu.parent().addClass("open"),f=!0),void i.$searchbox.focus();if(i.options.liveSearch&&/(^9$|27)/.test(b.keyCode.toString(10))&&f&&(b.preventDefault(),b.stopPropagation(),i.$menuInner.click(),i.$button.focus()),/(38|40)/.test(b.keyCode.toString(10))){if(c=i.$lis.filter(j),!c.length)return;d=i.options.liveSearch?c.index(c.filter(".active")):c.index(c.find("a").filter(":focus").parent()),e=i.$menuInner.data("prevIndex"),38==b.keyCode?(!i.options.liveSearch&&d!=e||d==-1||d--,d<0&&(d+=c.length)):40==b.keyCode&&((i.options.liveSearch||d==e)&&d++,d%=c.length),i.$menuInner.data("prevIndex",d),i.options.liveSearch?(b.preventDefault(),g.hasClass("dropdown-toggle")||(c.removeClass("active").eq(d).addClass("active").children("a").focus(),g.focus())):c.eq(d).children("a").focus()}else if(!g.is("input")){var l,m,n=[];c=i.$lis.filter(j),c.each(function(c){a.trim(a(this).children("a").text().toLowerCase()).substring(0,1)==k[b.keyCode]&&n.push(c)}),l=a(document).data("keycount"),l++,a(document).data("keycount",l),m=a.trim(a(":focus").text().toLowerCase()).substring(0,1),m!=k[b.keyCode]?(l=1,a(document).data("keycount",l)):l>=n.length&&(a(document).data("keycount",0),l>n.length&&(l=1)),c.eq(n[l-1]).children("a").focus()}if((/(13|32)/.test(b.keyCode.toString(10))||/(^9$)/.test(b.keyCode.toString(10))&&i.options.selectOnTab)&&f){if(/(32)/.test(b.keyCode.toString(10))||b.preventDefault(),i.options.liveSearch)/(32)/.test(b.keyCode.toString(10))||(i.$menuInner.find(".active a").click(),g.focus());else{var o=a(":focus");o.click(),o.focus(),b.preventDefault(),a(document).data("spaceSelect",!0)}a(document).data("keycount",0)}(/(^9$|27)/.test(b.keyCode.toString(10))&&f&&(i.multiple||i.options.liveSearch)||/(27)/.test(b.keyCode.toString(10))&&!f)&&(i.$menu.parent().removeClass("open"),i.options.container&&i.$newElement.removeClass("open"),i.$button.focus())},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(), +this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var m=a.fn.selectpicker;a.fn.selectpicker=c,a.fn.selectpicker.Constructor=l,a.fn.selectpicker.noConflict=function(){return a.fn.selectpicker=m,this},a(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',l.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(a){a.stopPropagation()}),a(window).on("load.bs.select.data-api",function(){a(".selectpicker").each(function(){var b=a(this);c.call(b,b.data())})})}(a)}); +//# sourceMappingURL=bootstrap-select.js.map \ No newline at end of file