??????????????
??????????????
??????????????
??????????????
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/netecfwd.co.uk/wp-includes/js/wp-pointer.js
⬅ Kembali
/**
* @output wp-includes/js/wp-pointer.js
*/
/**
* Initializes the wp-pointer widget using jQuery UI Widget Factory.
*/
(function($){
var identifier = 0,
zindex = 9999;
$.widget('wp.pointer',/** @lends $.widget.wp.pointer.prototype */{
options: {
pointerClass: 'wp-pointer',
pointerWidth: 320,
content: function() {
return $(this).text();
},
buttons: function( event, t ) {
var button = $('<a class="close" href="#"></a>').text( wp.i18n.__( 'Dismiss' ) );
return button.on( 'click.pointer', function(e) {
e.preventDefault();
t.element.pointer('close');
});
},
position: 'top',
show: function( event, t ) {
t.pointer.show();
t.opened();
},
hide: function( event, t ) {
t.pointer.hide();
t.closed();
},
document: document
},
/**
* A class that represents a WordPress pointer.
*
* @since 3.3.0
* @private
*
* @constructs $.widget.wp.pointer
*/
_create: function() {
var positioning,
family;
this.content = $('<div class="wp-pointer-content"></div>');
this.arrow = $('<div class="wp-pointer-arrow"><div class="wp-pointer-arrow-inner"></div></div>');
family = this.element.parents().add( this.element );
positioning = 'absolute';
if ( family.filter(function(){ return 'fixed' === $(this).css('position'); }).length )
positioning = 'fixed';
this.pointer = $('<div />')
.append( this.content )
.append( this.arrow )
.attr('id', 'wp-pointer-' + identifier++)
.addClass( this.options.pointerClass )
.css({'position': positioning, 'width': this.options.pointerWidth+'px', 'display': 'none'})
.appendTo( this.options.document.body );
},
/**
* Sets an option on the pointer instance.
*
* There are 4 special values that do something extra:
*
* - `document` will transfer the pointer to the body of the new document
* specified by the value.
* - `pointerClass` will change the class of the pointer element.
* - `position` will reposition the pointer.
* - `content` will update the content of the pointer.
*
* @since 3.3.0
* @private
*
* @param {string} key The key of the option to set.
* @param {*} value The value to set the option to.
*/
_setOption: function( key, value ) {
var o = this.options,
tip = this.pointer;
// Handle document transfer.
if ( key === 'document' && value !== o.document ) {
tip.detach().appendTo( value.body );
// Handle class change.
} else if ( key === 'pointerClass' ) {
tip.removeClass( o.pointerClass ).addClass( value );
}
// Call super method.
$.Widget.prototype._setOption.apply( this, arguments );
// Reposition automatically.
if ( key === 'position' ) {
this.reposition();
// Update content automatically if pointer is open.
} else if ( key === 'content' && this.active ) {
this.update();
}
},
/**
* Removes the pointer element from of the DOM.
*
* Makes sure that the widget and all associated bindings are destroyed.
*
* @since 3.3.0
*/
destroy: function() {
this.pointer.remove();
$.Widget.prototype.destroy.call( this );
},
/**
* Returns the pointer element.
*
* @since 3.3.0
*
* @return {Object} Pointer The pointer object.
*/
widget: function() {
return this.pointer;
},
/**
* Updates the content of the pointer.
*
* This function doesn't update the content of the pointer itself. That is done
* by the `_update` method. This method will make sure that the `_update` method
* is called with the right content.
*
* The content in the options can either be a string or a callback. If it is a
* callback the result of this callback is used as the content.
*
* @since 3.3.0
*
* @param {Object} event The event that caused the update.
*
* @return {Promise} Resolves when the update has been executed.
*/
update: function( event ) {
var self = this,
o = this.options,
dfd = $.Deferred(),
content;
if ( o.disabled )
return;
dfd.done( function( content ) {
self._update( event, content );
});
// Either o.content is a string...
if ( typeof o.content === 'string' ) {
content = o.content;
// ...or o.content is a callback.
} else {
content = o.content.call( this.element[0], dfd.resolve, event, this._handoff() );
}
// If content is set, then complete the update.
if ( content )
dfd.resolve( content );
return dfd.promise();
},
/**
* Updates the content of the pointer.
*
* Will make sure that the pointer is correctly positioned.
*
* @since 3.3.0
* @private
*
* @param {Object} event The event that caused the update.
* @param {*} content The content object. Either a string or a jQuery tree.
*/
_update: function( event, content ) {
var buttons,
o = this.options;
if ( ! content )
return;
// Kill any animations on the pointer.
this.pointer.stop();
this.content.html( content );
buttons = o.buttons.call( this.element[0], event, this._handoff() );
if ( buttons ) {
buttons.wrap('<div class="wp-pointer-buttons" />').parent().appendTo( this.content );
}
this.reposition();
},
/**
* Repositions the pointer.
*
* Makes sure the pointer is the correct size for its content and makes sure it
* is positioned to point to the right element.
*
* @since 3.3.0
*/
reposition: function() {
var position;
if ( this.options.disabled )
return;
position = this._processPosition( this.options.position );
// Reposition pointer.
this.pointer.css({
top: 0,
left: 0,
zIndex: zindex++ // Increment the z-index so that it shows above other opened pointers.
}).show().position($.extend({
of: this.element,
collision: 'fit none'
}, position )); // The object comes before this.options.position so the user can override position.of.
this.repoint();
},
/**
* Sets the arrow of the pointer to the correct side of the pointer element.
*
* @since 3.3.0
*/
repoint: function() {
var o = this.options,
edge;
if ( o.disabled )
return;
edge = ( typeof o.position == 'string' ) ? o.position : o.position.edge;
// Remove arrow classes.
this.pointer[0].className = this.pointer[0].className.replace( /wp-pointer-[^\s'"]*/, '' );
// Add arrow class.
this.pointer.addClass( 'wp-pointer-' + edge );
},
/**
* Calculates the correct position based on a position in the settings.
*
* @since 3.3.0
* @private
*
* @param {string|Object} position Either a side of a pointer or an object
* containing a pointer.
*
* @return {Object} result An object containing position related data.
*/
_processPosition: function( position ) {
var opposite = {
top: 'bottom',
bottom: 'top',
left: 'right',
right: 'left'
},
result;
// If the position object is a string, it is shorthand for position.edge.
if ( typeof position == 'string' ) {
result = {
edge: position + ''
};
} else {
result = $.extend( {}, position );
}
if ( ! result.edge )
return result;
if ( result.edge == 'top' || result.edge == 'bottom' ) {
result.align = result.align || 'left';
result.at = result.at || result.align + ' ' + opposite[ result.edge ];
result.my = result.my || result.align + ' ' + result.edge;
} else {
result.align = result.align || 'top';
result.at = result.at || opposite[ result.edge ] + ' ' + result.align;
result.my = result.my || result.edge + ' ' + result.align;
}
return result;
},
/**
* Opens the pointer.
*
* Only opens the pointer widget in case it is closed and not disabled, and
* calls 'update' before doing so. Calling update makes sure that the pointer
* is correctly sized and positioned.
*
* @since 3.3.0
*
* @param {Object} event The event that triggered the opening of this pointer.
*/
open: function( event ) {
var self = this,
o = this.options;
if ( this.active || o.disabled || this.element.is(':hidden') )
return;
this.update().done( function() {
self._open( event );
});
},
/**
* Opens and shows the pointer element.
*
* @since 3.3.0
* @private
*
* @param {Object} event An event object.
*/
_open: function( event ) {
var self = this,
o = this.options;
if ( this.active || o.disabled || this.element.is(':hidden') )
return;
this.active = true;
this._trigger( 'open', event, this._handoff() );
this._trigger( 'show', event, this._handoff({
opened: function() {
self._trigger( 'opened', event, self._handoff() );
}
}));
},
/**
* Closes and hides the pointer element.
*
* @since 3.3.0
*
* @param {Object} event An event object.
*/
close: function( event ) {
if ( !this.active || this.options.disabled )
return;
var self = this;
this.active = false;
this._trigger( 'close', event, this._handoff() );
this._trigger( 'hide', event, this._handoff({
closed: function() {
self._trigger( 'closed', event, self._handoff() );
}
}));
},
/**
* Puts the pointer on top by increasing the z-index.
*
* @since 3.3.0
*/
sendToTop: function() {
if ( this.active )
this.pointer.css( 'z-index', zindex++ );
},
/**
* Toggles the element between shown and hidden.
*
* @since 3.3.0
*
* @param {Object} event An event object.
*/
toggle: function( event ) {
if ( this.pointer.is(':hidden') )
this.open( event );
else
this.close( event );
},
/**
* Extends the pointer and the widget element with the supplied parameter, which
* is either an element or a function.
*
* @since 3.3.0
* @private
*
* @param {Object} extend The object to be merged into the original object.
*
* @return {Object} The extended object.
*/
_handoff: function( extend ) {
return $.extend({
pointer: this.pointer,
element: this.element
}, extend);
}
});
})(jQuery);
Nama
Tipe
Ukuran
Diubah
Aksi
📁 codemirror
dir
—
2026-06-20 08:29
📁 crop
dir
—
2026-06-20 08:29
📁 dist
dir
—
2026-06-20 08:29
📁 imgareaselect
dir
—
2026-06-20 08:29
📁 jcrop
dir
—
2026-06-20 08:29
📁 jquery
dir
—
2026-06-20 08:29
📁 mediaelement
dir
—
2026-06-20 08:29
📁 plupload
dir
—
2026-06-20 08:29
📁 swfupload
dir
—
2026-06-20 08:29
📁 thickbox
dir
—
2026-06-20 08:29
📁 tinymce
dir
—
2026-06-20 08:29
📜 admin-bar.js
js
10.3 KB
2024-05-11 14:28
📜 admin-bar.min.js
js
3.4 KB
2025-02-06 12:27
📜 api-request.js
js
3.2 KB
2020-11-30 22:44
📜 api-request.min.js
js
1023 B
2025-02-06 12:27
📜 autosave.js
js
21.9 KB
2025-01-23 18:54
📜 autosave.min.js
js
5.7 KB
2025-02-06 12:27
📜 backbone.js
js
78.6 KB
2026-05-20 20:16
📜 backbone.min.js
js
23.7 KB
2026-05-20 20:16
📜 clipboard.js
js
26.2 KB
2022-10-04 11:55
📜 clipboard.min.js
js
8.8 KB
2025-02-06 12:27
📜 colorpicker.js
js
28.4 KB
2012-11-17 10:11
📜 colorpicker.min.js
js
16.1 KB
2024-12-13 14:06
📜 comment-reply.js
js
12.2 KB
2024-09-03 16:36
📜 comment-reply.min.js
js
3 KB
2025-02-06 12:27
📜 customize-base.js
js
25.2 KB
2023-05-20 06:19
📜 customize-base.min.js
js
7.7 KB
2025-02-06 12:27
📜 customize-loader.js
js
7.7 KB
2024-04-12 13:47
📜 customize-loader.min.js
js
3.5 KB
2025-02-06 12:27
📜 customize-models.js
js
6.7 KB
2020-06-25 08:43
📜 customize-models.min.js
js
3.6 KB
2025-02-06 12:27
📜 customize-preview-nav-menus.js
js
14.7 KB
2020-07-27 19:35
📜 customize-preview-nav-menus.min.js
js
4.9 KB
2025-02-06 12:27
📜 customize-preview-widgets.js
js
22.7 KB
2020-06-20 08:58
📜 customize-preview-widgets.min.js
js
7.6 KB
2025-02-06 12:27
📜 customize-preview.js
js
27.9 KB
2025-07-30 00:24
📜 customize-preview.min.js
js
10.8 KB
2025-07-30 00:24
📜 customize-selective-refresh.js
js
32.6 KB
2024-04-12 13:47
📜 customize-selective-refresh.min.js
js
10.4 KB
2025-02-06 12:27
📜 customize-views.js
js
5.1 KB
2025-08-18 16:27
📜 customize-views.min.js
js
2.5 KB
2025-08-18 16:27
📜 heartbeat.js
js
23.5 KB
2024-09-11 19:09
📜 heartbeat.min.js
js
5.8 KB
2025-02-06 12:27
📜 hoverIntent.js
js
7.1 KB
2022-01-03 10:03
📜 hoverIntent.min.js
js
1.5 KB
2025-02-06 12:27
📜 hoverintent-js.min.js
js
1.7 KB
2019-12-09 20:03
📜 imagesloaded.min.js
js
5.4 KB
2023-08-11 14:18
📜 json2.js
js
31 B
2025-10-16 16:01
📜 json2.min.js
js
35 B
2025-10-16 16:01
📜 masonry.min.js
js
23.6 KB
2020-06-13 14:53
📜 mce-view.js
js
25.2 KB
2023-10-09 17:31
📜 mce-view.min.js
js
9.5 KB
2025-02-06 12:27
📜 media-audiovideo.js
js
24.1 KB
2026-05-20 20:16
📜 media-audiovideo.min.js
js
11.8 KB
2026-05-20 20:16
📜 media-editor.js
js
28.8 KB
2026-05-20 20:16
📜 media-editor.min.js
js
10.8 KB
2026-05-20 20:16
📜 media-grid.js
js
26 KB
2026-05-20 20:16
📜 media-grid.min.js
js
13 KB
2026-05-20 20:16
📜 media-models.js
js
42.5 KB
2026-05-20 20:16
📜 media-models.min.js
js
13 KB
2026-05-20 20:16
📜 media-views.js
js
266.5 KB
2026-05-20 20:16
📜 media-views.min.js
js
108.1 KB
2026-05-20 20:16
📜 quicktags.js
js
22.1 KB
2021-09-08 19:29
📜 quicktags.min.js
js
10.9 KB
2025-02-06 12:27
📜 shortcode.js
js
10.5 KB
2020-01-28 19:45
📜 shortcode.min.js
js
2.6 KB
2022-09-23 15:55
📜 swfobject.js
js
0 B
2025-06-05 06:14
📜 swfobject.min.js
js
35 B
2025-06-05 06:14
📜 tw-sack.js
js
4.9 KB
2025-08-11 23:56
📜 tw-sack.min.js
js
3.2 KB
2022-04-08 16:07
📜 twemoji.js
js
36.3 KB
2025-11-10 16:06
📜 twemoji.min.js
js
19.4 KB
2025-11-07 09:44
📜 underscore.js
js
67.3 KB
2026-05-20 20:16
📜 underscore.min.js
js
18.6 KB
2026-05-20 20:16
📜 utils.js
js
4.6 KB
2020-01-28 19:45
📜 utils.min.js
js
1.8 KB
2022-09-23 15:55
📜 wp-ajax-response.js
js
3.8 KB
2025-02-08 10:53
📜 wp-ajax-response.min.js
js
2.5 KB
2025-02-08 10:53
📜 wp-api.js
js
45.9 KB
2023-01-10 04:30
📜 wp-api.min.js
js
14.3 KB
2025-02-06 12:27
📜 wp-auth-check.js
js
4.3 KB
2026-05-20 20:16
📜 wp-auth-check.min.js
js
1.6 KB
2026-05-20 20:16
📜 wp-backbone.js
js
14.9 KB
2024-04-12 13:47
📜 wp-backbone.min.js
js
3 KB
2025-02-06 12:27
📜 wp-custom-header.js
js
10.2 KB
2021-04-10 08:40
📜 wp-custom-header.min.js
js
4.3 KB
2025-02-06 12:27
📜 wp-embed-template.js
js
6.6 KB
2021-11-10 21:49
📜 wp-embed-template.min.js
js
3.1 KB
2025-02-06 12:27
📜 wp-embed.js
js
3.1 KB
2023-08-10 15:49
📜 wp-embed.min.js
js
1.2 KB
2025-02-06 12:27
📜 wp-emoji-loader.js
js
12.9 KB
2025-11-04 13:18
📜 wp-emoji-loader.min.js
js
2.8 KB
2025-11-04 13:18
📜 wp-emoji-release.min.js
js
22.2 KB
2025-11-07 09:44
📜 wp-emoji.js
js
8.6 KB
2025-10-06 00:51
📜 wp-emoji.min.js
js
2.8 KB
2025-10-06 00:51
📜 wp-list-revisions.js
js
970 B
2018-06-27 22:30
📜 wp-list-revisions.min.js
js
597 B
2025-02-06 12:27
📜 wp-lists.js
js
24.7 KB
2023-06-24 10:32
📜 wp-lists.min.js
js
7.3 KB
2025-02-06 12:27
📜 wp-pointer.js
js
10 KB
2021-02-16 15:25
📜 wp-pointer.min.js
js
3.5 KB
2025-02-06 12:27
📜 wp-sanitize.js
js
1.6 KB
2026-05-20 20:16
📜 wp-sanitize.min.js
js
402 B
2026-05-20 20:16
📜 wp-util.js
js
4.6 KB
2026-03-10 10:05
📜 wp-util.min.js
js
1.4 KB
2026-03-10 10:05
📜 wpdialog.js
js
569 B
2023-01-24 16:13
📜 wpdialog.min.js
js
281 B
2025-02-06 12:27
📜 wplink.js
js
20.7 KB
2025-01-23 18:54
📜 wplink.min.js
js
11.1 KB
2025-02-06 12:27
📜 zxcvbn-async.js
js
821 B
2018-06-27 22:30
📜 zxcvbn-async.min.js
js
351 B
2021-02-23 11:45
📜 zxcvbn.min.js
js
803 KB
2019-10-25 20:17