🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 15:28:23 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
momotimes.therahuldas.com
/
wp-content
/
themes
/
barlog
/
assets
/
js
/
customizer
📍 /home/therahul/momotimes.therahuldas.com/wp-content/themes/barlog/assets/js/customizer
🔄 Refresh
✏️
Editing: color-picker-alpha.min.js
Writable
!function(n){var o,s,a,r,i,l,p,c,d;n.wp.wpColorPicker.prototype._hasAlpha||(void 0===o&&"undefined"!=typeof Barlog_ColorPicker_L10n&&(o=Barlog_ColorPicker_L10n),s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",a='<div class="wp-picker-holder" />',r='<div class="wp-picker-container" />',i='<input type="button" class="button button-small" />',(l=void 0!==o&&void 0!==o.current)?p='<a tabindex="0" class="wp-color-result" />':(p='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',c="<label></label>",d='<span class="screen-reader-text"></span>'),Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);return this.error?"":"#"+(t=t.length<6?("00000"+t).substr(-6):t)},n.widget("wp.wpColorPicker",n.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(n.support.iris){var e=this,t=e.element;if(n.extend(e.options,t.data()),"hue"===e.options.type)return e._createHueOnly();e.close=n.proxy(e.close,e),e.initialValue=t.val(),t.addClass("wp-color-picker"),l?(t.hide().wrap(r),e.wrap=t.parent(),e.toggler=n(p).insertBefore(t).css({backgroundColor:e.initialValue}).attr("title",o.pick).attr("data-current",o.current),e.pickerContainer=n(a).insertAfter(t),e.button=n(i).addClass("hidden")):(t.parent("label").length||(t.wrap(c),e.wrappingLabelText=n(d).insertBefore(t).text(o.defaultLabel)),e.wrappingLabel=t.parent(),e.wrappingLabel.wrap(r),e.wrap=e.wrappingLabel.parent(),e.toggler=n(p).insertBefore(e.wrappingLabel).css({backgroundColor:e.initialValue}),e.toggler.find(".wp-color-result-text").text(o.pick),e.pickerContainer=n(a).insertAfter(e.wrappingLabel),e.button=n(i)),e.options.defaultColor?(e.button.addClass("wp-picker-default").val(o.defaultString),l||e.button.attr("aria-label",o.defaultAriaLabel)):(e.button.addClass("wp-picker-clear").val(o.clear),l||e.button.attr("aria-label",o.clearAriaLabel)),l?t.wrap('<span class="wp-picker-input-wrap" />').after(e.button):(e.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(e.button),e.inputWrapper=t.closest(".wp-picker-input-wrap")),t.iris({target:e.pickerContainer,hide:e.options.hide,width:e.options.width,mode:e.options.mode,palettes:e.options.palettes,change:function(t,o){e.options.alpha?(e.toggler.css({"background-image":"url("+s+")"}),l?e.toggler.html('<span class="color-alpha" />'):(e.toggler.css({position:"relative"}),0==e.toggler.find("span.color-alpha").length&&e.toggler.append('<span class="color-alpha" />')),e.toggler.find("span.color-alpha").css({width:"30px",height:"24px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:o.color.toString()})):e.toggler.css({backgroundColor:o.color.toString()}),n.isFunction(e.options.change)&&e.options.change.call(this,t,o)}}),t.val(e.initialValue),e._addListeners(),e.options.hide||e.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(t){t.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.on("change",function(t){""!==n(this).val()&&!o.element.hasClass("iris-error")||(o.options.alpha?(l&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),n.isFunction(o.options.clear)&&o.options.clear.call(this,t))}),o.button.on("click",function(t){n(this).hasClass("wp-picker-clear")?(o.element.val(""),o.options.alpha?(l&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),n.isFunction(o.options.clear)&&o.options.clear.call(this,t),o.element.trigger("change")):n(this).hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})}}),n.widget("a8c.iris",n.a8c.iris,{_create:function(){var e,t,o,a,r,i;this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),void 0!==this.options.alpha&&this.options.alpha&&(t=(e=this).element,a=(o=n('<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>').appendTo(e.picker.find(".iris-picker-inner"))).find(".iris-slider-offset-alpha"),o={aContainer:o,aSlider:a},void 0!==t.data("custom-width")?e.options.customWidth=parseInt(t.data("custom-width"))||0:e.options.customWidth=100,e.options.defaultWidth=t.width(),(e._color._alpha<1||-1!=e._color.toString().indexOf("rgb"))&&t.width(parseInt(e.options.defaultWidth+e.options.customWidth)),n.each(o,function(t,o){e.controls[t]=o}),e.controls.square.css({"margin-right":"0"}),a=e.picker.width()-e.controls.square.width()-20,r=Math.floor(a/6),i=a/2-r,0<r&&r--,n.each(["aContainer","strip"],function(t,o){e.controls[o].width(i).css({"margin-left":r+"px"})}),e._initControls(),e._change())},_initControls:function(){var e;this._super(),this.options.alpha&&(e=this).controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*e._color._alpha),slide:function(t,o){e._color._alpha=parseFloat(o.value/100),e._change.apply(e,arguments)}})},_change:function(){this._super();var t,o,e,a,r,i,n=this,l=n.element;this.options.alpha&&(t=n.controls,o=parseInt(100*n._color._alpha),e=["rgb("+(e=n._color.toRgb()).r+","+e.g+","+e.b+") 0%","rgba("+e.r+","+e.g+","+e.b+", 0) 100%"],a=n.options.defaultWidth,r=n.options.customWidth,i=n.picker.closest(".wp-picker-container").find(".wp-color-result"),t.aContainer.css({background:"linear-gradient(to bottom, "+e.join(", ")+"), url("+s+")"}),i.hasClass("wp-picker-open")&&(t.aSlider.slider("value",o),n._color._alpha<1?(t.strip.attr("style",t.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),l.width(parseInt(a+r))):l.width(a))),!l.data("reset-alpha")&&1||n.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){n._color._alpha=1,n.active="external",n._change()}),l.trigger("change")},_addInputListeners:function(a){function t(t){var o=new Color(a.val()),e=a.val();a.removeClass("iris-error"),o.error?""!==e&&a.addClass("iris-error"):o.toString()===r._color.toString()||"keyup"===t.type&&e.match(/^[0-9a-fA-F]{3}$/)||r._setOption("color",o.toString())}var r=this;a.on("change",t).on("keyup",r._debounce(t,100)),r.options.hide&&a.on("focus",function(){r.show()})}}))}(jQuery),jQuery(document).ready(function(t){t(".color-picker").wpColorPicker()});
💾 Save Changes
❌ Cancel