??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/am1atec.co.uk/wp-admin/js/farbtastic.js
⬅ Kembali
/*!
* 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);
Nama
Tipe
Ukuran
Diubah
Aksi
📁 widgets
dir
—
2026-06-25 05:13
📜 accordion.js
js
2.9 KB
2024-10-13 19:09
📜 accordion.min.js
js
758 B
2025-02-06 17:27
📜 application-passwords.js
js
6.2 KB
2023-09-17 22:51
📜 application-passwords.min.js
js
3 KB
2025-02-06 17:27
📜 auth-app.js
js
5.7 KB
2021-02-23 19:45
📜 auth-app.min.js
js
2 KB
2025-02-06 17:27
📜 code-editor.js
js
17.5 KB
2026-05-19 12:24
📜 code-editor.min.js
js
3.5 KB
2026-05-19 12:24
📜 color-picker.js
js
9.5 KB
2021-03-18 19:01
📜 color-picker.min.js
js
3.4 KB
2025-02-06 17:27
📜 comment.js
js
2.9 KB
2024-02-11 19:14
📜 comment.min.js
js
1.3 KB
2022-04-08 20:07
📜 common.js
js
61.3 KB
2026-02-27 23:57
📜 common.min.js
js
23.2 KB
2026-02-27 23:57
📜 custom-background.js
js
3.4 KB
2021-03-18 19:01
📜 custom-background.min.js
js
1.2 KB
2025-02-06 17:27
📜 custom-header.js
js
2 KB
2021-02-23 19:45
📜 customize-controls.js
js
288.4 KB
2025-09-19 19:57
📜 customize-controls.min.js
js
109.7 KB
2025-09-19 19:57
📜 customize-nav-menus.js
js
111.5 KB
2025-09-30 16:28
📜 customize-nav-menus.min.js
js
47.1 KB
2025-09-30 16:28
📜 customize-widgets.js
js
70 KB
2024-06-21 18:17
📜 customize-widgets.min.js
js
27.4 KB
2025-02-06 17:27
📜 dashboard.js
js
27 KB
2025-03-16 19:40
📜 dashboard.min.js
js
8.7 KB
2025-03-16 19:40
📜 edit-comments.js
js
37.2 KB
2026-05-08 02:21
📜 edit-comments.min.js
js
15.2 KB
2026-05-08 02:21
📜 editor-expand.js
js
41.6 KB
2024-04-12 17:47
📜 editor-expand.min.js
js
13.1 KB
2025-02-06 17:27
📜 editor.js
js
44 KB
2025-09-28 23:40
📜 editor.min.js
js
12.8 KB
2025-09-28 23:40
📜 farbtastic.js
js
7.7 KB
2023-07-17 22:03
📜 gallery.js
js
5.4 KB
2023-10-09 21:31
📜 gallery.min.js
js
3.7 KB
2023-10-09 21:31
📜 image-edit.js
js
40 KB
2024-08-28 16:45
📜 image-edit.min.js
js
15.2 KB
2025-02-06 17:27
📜 inline-edit-post.js
js
20.2 KB
2026-05-08 15:59
📜 inline-edit-post.min.js
js
9.4 KB
2026-05-08 15:59
📜 inline-edit-tax.js
js
7.6 KB
2021-03-18 19:01
📜 inline-edit-tax.min.js
js
2.9 KB
2025-02-06 17:27
📜 iris.min.js
js
23.1 KB
2021-11-03 19:40
📜 language-chooser.js
js
890 B
2021-02-23 19:45
📜 language-chooser.min.js
js
423 B
2021-02-23 19:45
📜 link.js
js
4.8 KB
2026-02-27 22:49
📜 link.min.js
js
2.3 KB
2026-02-27 22:49
📜 media-gallery.js
js
1.3 KB
2021-02-23 19:45
📜 media-gallery.min.js
js
611 B
2022-04-08 20:07
📜 media-upload.js
js
3.4 KB
2021-01-22 12:32
📜 media-upload.min.js
js
1.1 KB
2025-02-06 17:27
📜 media.js
js
6.6 KB
2024-10-07 02:49
📜 media.min.js
js
2.4 KB
2025-02-06 17:27
📜 nav-menu.js
js
61.1 KB
2025-10-20 20:31
📜 nav-menu.min.js
js
30.1 KB
2025-10-20 20:31
📜 password-strength-meter.js
js
4.1 KB
2021-01-22 12:32
📜 password-strength-meter.min.js
js
1.1 KB
2025-02-06 17:27
📜 password-toggle.js
js
1.3 KB
2023-06-23 23:09
📜 password-toggle.min.js
js
847 B
2025-02-06 17:27
📜 plugin-install.js
js
6.9 KB
2021-03-18 19:01
📜 plugin-install.min.js
js
2.3 KB
2023-02-02 16:36
📜 post.js
js
39.5 KB
2026-04-27 02:24
📜 post.min.js
js
19 KB
2026-04-27 02:24
📜 postbox.js
js
18.5 KB
2025-03-16 19:40
📜 postbox.min.js
js
6.6 KB
2025-03-16 19:40
📜 privacy-tools.js
js
10.7 KB
2024-06-21 18:17
📜 privacy-tools.min.js
js
5 KB
2024-06-21 18:17
📜 revisions.js
js
33.9 KB
2024-10-13 20:49
📜 revisions.min.js
js
18 KB
2025-02-06 17:27
📜 set-post-thumbnail.js
js
876 B
2020-07-07 18:55
📜 set-post-thumbnail.min.js
js
620 B
2020-07-07 18:55
📜 site-health.js
js
13.6 KB
2026-02-11 21:10
📜 site-health.min.js
js
6.3 KB
2026-02-11 21:10
📜 site-icon.js
js
6.1 KB
2024-08-23 22:47
📜 site-icon.min.js
js
2.2 KB
2025-02-06 17:27
📜 svg-painter.js
js
3.2 KB
2024-09-07 22:44
📜 svg-painter.min.js
js
1.5 KB
2025-02-06 17:27
📜 tags-box.js
js
10.9 KB
2021-03-18 19:01
📜 tags-box.min.js
js
3 KB
2025-02-06 17:27
📜 tags-suggest.js
js
5.6 KB
2024-02-18 22:16
📜 tags-suggest.min.js
js
2.2 KB
2025-02-06 17:27
📜 tags.js
js
6 KB
2025-09-01 21:22
📜 tags.min.js
js
2.4 KB
2025-09-01 21:22
📜 theme-plugin-editor.js
js
25.6 KB
2026-02-04 07:03
📜 theme-plugin-editor.min.js
js
11.8 KB
2026-02-04 07:03
📜 theme.js
js
54.9 KB
2025-09-28 23:40
📜 theme.min.js
js
26.5 KB
2025-09-28 23:40
📜 updates.js
js
109.4 KB
2025-10-21 11:01
📜 updates.min.js
js
47.3 KB
2025-10-21 11:01
📜 user-profile.js
js
17.9 KB
2025-10-20 19:49
📜 user-profile.min.js
js
7.8 KB
2025-10-20 19:49
📜 user-suggest.js
js
2.2 KB
2021-03-18 19:01
📜 user-suggest.min.js
js
676 B
2025-02-06 17:27
📜 widgets.js
js
22.6 KB
2021-03-18 19:01
📜 widgets.min.js
js
12.3 KB
2025-02-06 17:27
📜 word-count.js
js
7.5 KB
2020-07-27 23:35
📜 word-count.min.js
js
1.5 KB
2025-02-06 17:27
📜 xfn.js
js
740 B
2021-03-18 19:01
📜 xfn.min.js
js
458 B
2021-03-18 19:01