????

Your IP : 18.216.32.251


Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/js/lib/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/js/lib/jquery.customSelect.js

!function(e){"use strict";e.fn.extend({customSelect:function(t){if("undefined"==typeof document.body.style.maxHeight)return this;var s={customClass:"customSelect",mapClass:!0,mapStyle:!0},t=e.extend(s,t),n=t.customClass,o=function(t,s){var n=t.find(":selected"),o=s.children(":first"),c=n.html()||"&nbsp;";o.html(c),n.attr("disabled")?s.addClass(a("DisabledOption")):s.removeClass(a("DisabledOption")),setTimeout(function(){s.removeClass(a("Open")),e(document).off("mouseup.customSelect")},60)},a=function(e){return n+e};return this.each(function(){var s=e(this),c=e("<span />").addClass(a("Inner")),l=e("<span />");s.after(l.append(c)),l.addClass(n),t.mapClass&&l.addClass(s.attr("class")),t.mapStyle&&l.attr("style",s.attr("style")),s.addClass("hasCustomSelect").on("render.customSelect",function(){o(s,l),s.css("width","");var e=parseInt(s.outerWidth(),10)-(parseInt(l.outerWidth(),10)-parseInt(l.width(),10));l.css({display:"inline-block"});var t=l.outerHeight();s.attr("disabled")?l.addClass(a("Disabled")):l.removeClass(a("Disabled")),c.css({width:e,display:"inline-block"}),s.css({"-webkit-appearance":"menulist-button",width:l.outerWidth(),position:"absolute",opacity:0,height:t,fontSize:l.css("font-size")})}).on("change.customSelect",function(){l.addClass(a("Changed")),o(s,l)}).on("keyup.customSelect",function(e){l.hasClass(a("Open"))?(13==e.which||27==e.which)&&o(s,l):(s.trigger("blur.customSelect"),s.trigger("focus.customSelect"))}).on("mousedown.customSelect",function(){l.removeClass(a("Changed"))}).on("mouseup.customSelect",function(t){l.hasClass(a("Open"))||(e("."+a("Open")).not(l).length>0&&"undefined"!=typeof InstallTrigger?s.trigger("focus.customSelect"):(l.addClass(a("Open")),t.stopPropagation(),e(document).one("mouseup.customSelect",function(t){t.target!=s.get(0)&&e.inArray(t.target,s.find("*").get())<0?s.trigger("blur.customSelect"):o(s,l)})))}).on("focus.customSelect",function(){l.removeClass(a("Changed")).addClass(a("Focus"))}).on("blur.customSelect",function(){l.removeClass(a("Focus")+" "+a("Open"))}).on("mouseenter.customSelect",function(){l.addClass(a("Hover"))}).on("mouseleave.customSelect",function(){l.removeClass(a("Hover"))}).trigger("render.customSelect")})}})}(jQuery);