Submit
Path:
F:
/
Inetpub
/
vhosts
/
solasmarine.com.tr
/
httpdocs
/
wp-includes
/
js
/
File Content:
hoverIntent.js
/*! * hoverIntent v1.10.2 // 2020.04.28 // jQuery v1.7.0+ * http://briancherne.github.io/jquery-hoverIntent/ * * You may use hoverIntent under the terms of the MIT license. Basically that * means you are free to use hoverIntent as long as this header is left intact. * Copyright 2007-2019 Brian Cherne */ /** * hoverIntent is similar to jQuery's built-in "hover" method except that * instead of firing the handlerIn function immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the event. The handlerOut function is only * called after a matching handlerIn. * * // basic usage ... just like .hover() * .hoverIntent( handlerIn, handlerOut ) * .hoverIntent( handlerInOut ) * * // basic usage ... with event delegation! * .hoverIntent( handlerIn, handlerOut, selector ) * .hoverIntent( handlerInOut, selector ) * * // using a basic configuration object * .hoverIntent( config ) * * @param handlerIn function OR configuration object * @param handlerOut function OR selector for delegation OR undefined * @param selector selector OR undefined * @author Brian Cherne <brian(at)cherne(dot)net> */ ;(function(factory) { 'use strict'; if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = factory(require('jquery')); } else if (jQuery && !jQuery.fn.hoverIntent) { factory(jQuery); } })(function($) { 'use strict'; // default configuration values var _cfg = { interval: 100, sensitivity: 6, timeout: 0 }; // counter used to generate an ID for each instance var INSTANCE_COUNT = 0; // current X and Y position of mouse, updated during mousemove tracking (shared across instances) var cX, cY; // saves the current pointer position coordinates based on the given mousemove event var track = function(ev) { cX = ev.pageX; cY = ev.pageY; }; // compares current and previous mouse positions var compare = function(ev,$el,s,cfg) { // compare mouse positions to see if pointer has slowed enough to trigger `over` function if ( Math.sqrt( (s.pX-cX)*(s.pX-cX) + (s.pY-cY)*(s.pY-cY) ) < cfg.sensitivity ) { $el.off(s.event,track); delete s.timeoutId; // set hoverIntent state as active for this element (permits `out` handler to trigger) s.isActive = true; // overwrite old mouseenter event coordinates with most recent pointer position ev.pageX = cX; ev.pageY = cY; // clear coordinate data from state object delete s.pX; delete s.pY; return cfg.over.apply($el[0],[ev]); } else { // set previous coordinates for next comparison s.pX = cX; s.pY = cY; // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) s.timeoutId = setTimeout( function(){compare(ev, $el, s, cfg);} , cfg.interval ); } }; // triggers given `out` function at configured `timeout` after a mouseleave and clears state var delay = function(ev,$el,s,out) { var data = $el.data('hoverIntent'); if (data) { delete data[s.id]; } return out.apply($el[0],[ev]); }; // checks if `value` is a function var isFunction = function(value) { return typeof value === 'function'; }; $.fn.hoverIntent = function(handlerIn,handlerOut,selector) { // instance ID, used as a key to store and retrieve state information on an element var instanceId = INSTANCE_COUNT++; // extend the default configuration and parse parameters var cfg = $.extend({}, _cfg); if ( $.isPlainObject(handlerIn) ) { cfg = $.extend(cfg, handlerIn); if ( !isFunction(cfg.out) ) { cfg.out = cfg.over; } } else if ( isFunction(handlerOut) ) { cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } ); } else { cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } ); } // A private function for handling mouse 'hovering' var handleHover = function(e) { // cloned event to pass to handlers (copy required for event object to be passed in IE) var ev = $.extend({},e); // the current target of the mouse event, wrapped in a jQuery object var $el = $(this); // read hoverIntent data from element (or initialize if not present) var hoverIntentData = $el.data('hoverIntent'); if (!hoverIntentData) { $el.data('hoverIntent', (hoverIntentData = {})); } // read per-instance state from element (or initialize if not present) var state = hoverIntentData[instanceId]; if (!state) { hoverIntentData[instanceId] = state = { id: instanceId }; } // state properties: // id = instance ID, used to clean up data // timeoutId = timeout ID, reused for tracking mouse position and delaying "out" handler // isActive = plugin state, true after `over` is called just until `out` is called // pX, pY = previously-measured pointer coordinates, updated at each polling interval // event = string representing the namespaced event used for mouse tracking // clear any existing timeout if (state.timeoutId) { state.timeoutId = clearTimeout(state.timeoutId); } // namespaced event used to register and unregister mousemove tracking var mousemove = state.event = 'mousemove.hoverIntent.hoverIntent'+instanceId; // handle the event, based on its type if (e.type === 'mouseenter') { // do nothing if already active if (state.isActive) { return; } // set "previous" X and Y position based on initial entry point state.pX = ev.pageX; state.pY = ev.pageY; // update "current" X and Y position based on mousemove $el.off(mousemove,track).on(mousemove,track); // start polling interval (self-calling timeout) to compare mouse coordinates over time state.timeoutId = setTimeout( function(){compare(ev,$el,state,cfg);} , cfg.interval ); } else { // "mouseleave" // do nothing if not already active if (!state.isActive) { return; } // unbind expensive mousemove event $el.off(mousemove,track); // if hoverIntent state is true, then call the mouseOut function after the specified delay state.timeoutId = setTimeout( function(){delay(ev,$el,state,cfg.out);} , cfg.timeout ); } }; // listen for mouseenter and mouseleave return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector); }; });
Edit
Rename
Chmod
Delete
FILE
DIR
INFO
CMD
Name
Size
Permission
Action
codemirror
---
0777
crop
---
0777
dist
---
0777
imgareaselect
---
0777
jcrop
---
0777
jquery
---
0777
mediaelement
---
0777
plupload
---
0777
swfupload
---
0777
thickbox
---
0777
tinymce
---
0777
admin-bar.js
10547bytes
0666
admin-bar.min.js
3487bytes
0666
api-request.js
3324bytes
0666
api-request.min.js
1023bytes
0666
autosave.js
22476bytes
0666
autosave.min.js
5807bytes
0666
backbone.js
80436bytes
0666
backbone.min.js
24314bytes
0666
clipboard.js
26807bytes
0666
clipboard.min.js
9009bytes
0666
colorpicker.js
29083bytes
0666
colorpicker.min.js
16498bytes
0666
comment-reply.js
12513bytes
0666
comment-reply.min.js
3026bytes
0666
customize-base.js
25822bytes
0666
customize-base.min.js
7852bytes
0666
customize-loader.js
7903bytes
0666
customize-loader.min.js
3551bytes
0666
customize-models.js
6821bytes
0666
customize-models.min.js
3681bytes
0666
customize-preview-nav-menus.js
15024bytes
0666
customize-preview-nav-menus.min.js
5033bytes
0666
customize-preview-widgets.js
23253bytes
0666
customize-preview-widgets.min.js
7820bytes
0666
customize-preview.js
28597bytes
0666
customize-preview.min.js
11011bytes
0666
customize-selective-refresh.js
33335bytes
0666
customize-selective-refresh.min.js
10693bytes
0666
customize-views.js
5222bytes
0666
customize-views.min.js
2567bytes
0666
heartbeat.js
24052bytes
0666
heartbeat.min.js
5947bytes
0666
hoverIntent.js
7225bytes
0666
hoverIntent.min.js
1499bytes
0666
hoverintent-js.min.js
1718bytes
0666
imagesloaded.min.js
5520bytes
0666
json2.js
31bytes
0666
json2.min.js
35bytes
0666
masonry.min.js
24138bytes
0666
mce-view.js
25849bytes
0666
mce-view.min.js
9770bytes
0666
media-audiovideo.js
24711bytes
0666
media-audiovideo.min.js
12043bytes
0666
media-editor.js
29460bytes
0666
media-editor.min.js
11092bytes
0666
media-grid.js
26673bytes
0666
media-grid.min.js
13285bytes
0666
media-models.js
43544bytes
0666
media-models.min.js
13279bytes
0666
media-views.js
272888bytes
0666
media-views.min.js
110657bytes
0666
quicktags.js
22601bytes
0666
quicktags.min.js
11132bytes
0666
shortcode.js
10758bytes
0666
shortcode.min.js
2643bytes
0666
swfobject.js
0bytes
0666
swfobject.min.js
35bytes
0666
tw-sack.js
4970bytes
0666
tw-sack.min.js
3288bytes
0666
twemoji.js
37190bytes
0666
twemoji.min.js
19858bytes
0666
underscore.js
68873bytes
0666
underscore.min.js
19012bytes
0666
utils.js
4665bytes
0666
utils.min.js
1864bytes
0666
wp-ajax-response.js
3903bytes
0666
wp-ajax-response.min.js
2571bytes
0666
wp-api.js
46983bytes
0666
wp-api.min.js
14682bytes
0666
wp-auth-check.js
4444bytes
0666
wp-auth-check.min.js
1689bytes
0666
wp-backbone.js
15241bytes
0666
wp-backbone.min.js
3039bytes
0666
wp-custom-header.js
10465bytes
0666
wp-custom-header.min.js
4442bytes
0666
wp-embed-template.js
6779bytes
0666
wp-embed-template.min.js
3174bytes
0666
wp-embed.js
3214bytes
0666
wp-embed.min.js
1251bytes
0666
wp-emoji-loader.js
13203bytes
0666
wp-emoji-loader.min.js
2890bytes
0666
wp-emoji-release.min.js
22762bytes
0666
wp-emoji.js
8792bytes
0666
wp-emoji.min.js
2855bytes
0666
wp-list-revisions.js
970bytes
0666
wp-list-revisions.min.js
597bytes
0666
wp-lists.js
25315bytes
0666
wp-lists.min.js
7521bytes
0666
wp-pointer.js
10233bytes
0666
wp-pointer.min.js
3621bytes
0666
wp-sanitize.js
1622bytes
0666
wp-sanitize.min.js
402bytes
0666
wp-util.js
4689bytes
0666
wp-util.min.js
1431bytes
0666
wpdialog.js
569bytes
0666
wpdialog.min.js
281bytes
0666
wplink.js
21240bytes
0666
wplink.min.js
11317bytes
0666
zxcvbn-async.js
821bytes
0666
zxcvbn-async.min.js
351bytes
0666
zxcvbn.min.js
822237bytes
0666