HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: /home/madepabj/hc-cosmetics.com/wp-content/themes/dbea/assets/js/bootstrap-tabdrop.min.js
!function(t){var o=function(){var o,n=[],i=!1,e=function(){clearTimeout(o),o=setTimeout(d,100)},d=function(){for(var t=0,o=n.length;o>t;t++)n[t].apply()};return{register:function(o){n.push(o),i===!1&&(t(window).bind("resize",e),i=!0)},unregister:function(t){for(var o=0,i=n.length;i>o;o++)if(n[o]==t){delete n[o];break}}}}(),n=function(n,i){this.element=t(n),this.options=i,this.dropdown=t('<li class="dropdown hide pull-right tabdrop"><a class="dropdown-toggle" data-toggle="dropdown" href="#">'+i.text+' <b class="caret"></b></a><ul class="dropdown-menu"></ul></li>').prependTo(this.element),this.element.parent().is(".tabs-below")&&this.dropdown.addClass("dropup"),o.register(t.proxy(this.layout,this)),this.layout()};n.prototype={constructor:n,layout:function(){function o(t){e.find("a.dropdown-toggle").html('<span class="display-tab"> '+t+' </span><b class="caret"></b>')}function n(){e.find("a.dropdown-toggle").html(d.text+' <b class="caret"></b>')}var i=[],e=this.dropdown,d=this.options;this.dropdown.removeClass("hide"),this.element.append(this.dropdown.find("li")).find(">li").not(".tabdrop").each(function(){this.offsetTop>d.offsetTop&&i.push(this)}),this.element.find(">li").not(".tabdrop").off("click"),this.element.find(">li").not(".tabdrop").on("click",function(){n()}),i.length>0?(i=t(i),this.dropdown.find("ul").empty().append(i),this.dropdown.on("click","li",function(){var n=t(this).text();o(n)}),1==this.dropdown.find(".active").length?(this.dropdown.addClass("active"),o(this.dropdown.find(".active > a").text())):(this.dropdown.removeClass("active"),n())):this.dropdown.addClass("hide")}},t.fn.tabdrop=function(o){return this.each(function(){var i=t(this),e=i.data("tabdrop"),d="object"==typeof o&&o;e||i.data("tabdrop",e=new n(this,t.extend({},t.fn.tabdrop.defaults,d))),"string"==typeof o&&e[o]()})},t.fn.tabdrop.defaults={text:'<i class="fa fa-align-justify"></i>',offsetTop:0},t.fn.tabdrop.Constructor=n}(window.jQuery);