/
home
/
suroeste
/
public_html
/
wp-content
/
plugins
/
akeebabackupwp
/
app
/
media
/
js
/
solo
/
/home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/media/js/solo
mkdir
upload
Name
Size
Mode
Actions
ajax.js
9696
0644
edit
dl
rm
ajax.min.js
3438
0644
edit
dl
rm
ajax.min.js.map
17483
0644
edit
dl
rm
backup.min.js
10466
0644
edit
dl
rm
backup.min.js.map
36399
0644
edit
dl
rm
browser.js
852
0644
edit
dl
rm
browser.min.js
547
0644
edit
dl
rm
browser.min.js.map
1952
0644
edit
dl
rm
configuration.min.js
36980
0644
edit
dl
rm
configuration.min.js.map
137014
0644
edit
dl
rm
dbfilters.min.js
7751
0644
edit
dl
rm
dbfilters.min.js.map
28768
0644
edit
dl
rm
discover.js
717
0644
edit
dl
rm
discover.min.js
442
0644
edit
dl
rm
discover.min.js.map
1581
0644
edit
dl
rm
extradirs.min.js.map
23454
0644
edit
dl
rm
fsfilters.min.js
15091
0644
edit
dl
rm
fsfilters.min.js.map
60366
0644
edit
dl
rm
gui-helpers.min.js
7604
0644
edit
dl
rm
gui-helpers.min.js.map
40838
0644
edit
dl
rm
log.js
872
0644
edit
dl
rm
log.min.js
568
0644
edit
dl
rm
log.min.js.map
1967
0644
edit
dl
rm
main.js
6469
0644
edit
dl
rm
main.min.js
3734
0644
edit
dl
rm
main.min.js.map
12115
0644
edit
dl
rm
manage.js
5914
0644
edit
dl
rm
manage.min.js
3541
0644
edit
dl
rm
manage.min.js.map
11993
0644
edit
dl
rm
modal.js
11029
0644
edit
dl
rm
modal.min.js
4882
0644
edit
dl
rm
modal.min.js.map
22351
0644
edit
dl
rm
multidb.min.js.map
31604
0644
edit
dl
rm
regexdbfilters.min.js.map
21450
0644
edit
dl
rm
regexfsfilters.min.js.map
21737
0644
edit
dl
rm
remotefiles.js
1700
0644
edit
dl
rm
remotefiles.min.js
790
0644
edit
dl
rm
remotefiles.min.js.map
2917
0644
edit
dl
rm
restore.min.js.map
26410
0644
edit
dl
rm
s3import.js
2806
0644
edit
dl
rm
s3import.min.js
1621
0644
edit
dl
rm
s3import.min.js.map
5608
0644
edit
dl
rm
setup.min.js.map
40294
0644
edit
dl
rm
showon.js
7583
0644
edit
dl
rm
showon.min.js
4206
0644
edit
dl
rm
showon.min.js.map
15553
0644
edit
dl
rm
system.min.js
14806
0644
edit
dl
rm
system.min.js.map
81766
0644
edit
dl
rm
tooltip.js
8070
0644
edit
dl
rm
tooltip.min.js
3726
0644
edit
dl
rm
tooltip.min.js.map
15163
0644
edit
dl
rm
transfer.js
18711
0644
edit
dl
rm
transfer.min.js.map
35219
0644
edit
dl
rm
update.min.js
5583
0644
edit
dl
rm
update.min.js.map
20544
0644
edit
dl
rm
upload.js
1051
0644
edit
dl
rm
upload.min.js
496
0644
edit
dl
rm
upload.min.js.map
2108
0644
edit
dl
rm
users.js
913
0644
edit
dl
rm
users.min.js.map
2118
0644
edit
dl
rm
wizard.min.js
10656
0644
edit
dl
rm
wizard.min.js.map
32501
0644
edit
dl
rm
Edit:
/home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/media/js/solo/tooltip.js
(8070B)
/** * @package solo * @copyright Copyright (c)2014-2024 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ // Object initialisation if (typeof akeeba == 'undefined') { var akeeba = {}; } if (typeof akeeba.Tooltip == 'undefined') { akeeba.Tooltip = {}; } akeeba.Tooltip.enableFor = function (el, clickToStick) { if ((typeof clickToStick == "undefined") || (clickToStick === null)) { clickToStick = true; } if ((typeof el == 'object') && NodeList.prototype.isPrototypeOf(el)) { for (i = 0; i < el.length; i++) { var e = el[i]; akeeba.Tooltip.enableFor(e, clickToStick); } return; } akeeba.System.addEventListener(el, 'mouseenter', akeeba.Tooltip.onMouseEnter); akeeba.System.addEventListener(el, 'mouseleave', akeeba.Tooltip.onMouseLeave); if (clickToStick) { akeeba.System.addEventListener(el, 'click', akeeba.Tooltip.onClick); } }; /** * Converts the contents of the "title" attribute into a simple CSS tooltip. * * @param {HTMLElement} el The element which we're applying the tooltip for. */ akeeba.Tooltip.simpleTooltip = function(el) { if (!el.hasAttribute('title')) { return; } var content = el.getAttribute('title'); var position = 'right'; if (el.hasAttribute('data-akeeba-tooltip-position')) { position = el.getAttribute('data-akeeba-tooltip-position'); } // Mark the element as having a tooltip akeeba.System.addClass(el, 'akeeba-hasTooltip'); // Create the tooltip text div var elTooltip = document.createElement('div'); elTooltip.className = 'akeeba-tooltip-text akeeba-tooltip-text-' + position; elTooltip.innerHTML = content; // Append the tooltip to the target element el.appendChild(elTooltip); // Remove the title attribute from the target element el.removeAttribute('title'); }; /** * Handles the mouseenter event for a target element (mousing over it will render the tooltip). Basically, shows the * tooltip. * * @param {Event} e The event we're handling */ akeeba.Tooltip.onMouseEnter = function (e) { // If there's no tooltip content quit if (!e.target.hasAttribute('data-content')) { return; } // Get the tooltip UUID stored in the target element. If none exists then create one. var uuid = ''; if (!e.target.hasAttribute('data-tooltip-uuid')) { uuid = Math.uuid(); e.target.setAttribute('data-tooltip-uuid', uuid); } else { uuid = e.target.getAttribute('data-tooltip-uuid'); } // Do I have an open tooltip? var oldTooltip = document.getElementById('akeeba-tooltip-' + uuid); if (oldTooltip != null) { return; } // Get the tooltip positioning var pos = e.target.getAttribute('data-position') || "center bottom", posHorizontal = pos.split(" ")[0], posVertical = pos.split(" ")[1]; // Create the outer tooltip wrapper element var tooltipWrapper = document.createElement('div'); tooltipWrapper.className = 'akeeba-popover'; tooltipWrapper.id = 'akeeba-tooltip-' + uuid; tooltipWrapper.style.display = 'block'; // Assign the position as a class to the tooltip wrapper (required by BS to render the arrow correctly) tooltipWrapper.className += ' ' + pos; // Add the pointed arrow to the tooltip tooltipWrapper.insertAdjacentHTML('afterbegin', '<div class="arrow"></div>'); // Create the tooltip inner wrapper var tooltipInner = document.createElement('div'); tooltipInner.className = 'akeeba-popover-inner'; tooltipWrapper.appendChild(tooltipInner); // If we have a tooltip title, render it if (e.target.hasAttribute('data-original-title')) { var elTitle = document.createElement('h3'); elTitle.className = 'akeeba-popover-title'; elTitle.innerHTML = e.target.getAttribute('data-original-title'); tooltipInner.appendChild(elTitle); } // Render the tooltip content var elContent = document.createElement('div'); elContent.className = 'akeeba-popover-content'; elContent.innerHTML = e.target.getAttribute('data-content'); tooltipInner.appendChild(elContent); // Append the tooltip to the HTML body document.body.appendChild(tooltipWrapper); // Position the tooltip relative to the target element akeeba.Tooltip.positionAt(e.target, tooltipWrapper, posHorizontal, posVertical); }; /** * Handles the mouseleave event for a target element (mousing out of it will close the tooltip). Basically, hides the * tooltip unless it's marked as 'do not hide'. * * @param {Event} e The event we're handling */ akeeba.Tooltip.onMouseLeave = function (e) { // If this marked as "no close" do nothing if (e.target.hasAttribute('data-tooltip-noclose')) { return; } // Close the tooltip akeeba.Tooltip.hideTooltip(e.target); }; /** * Handles the click event on a target element. Clicking on the target element while the tooltip is open will mark the * tooltip as "no close", i.e. mousing out of the target will do nothing. A second click will, however, reset this * behaviour and let the tooltip disappear. * * @param e */ akeeba.Tooltip.onClick = function (e) { // If there is no tooltip UUID attached to the element we can do nothing if (!e.target.hasAttribute('data-tooltip-uuid')) { return; } // If it's already marked as "no close" this is the second click. Therefore it's time to unset the "no close" // attribute. if (e.target.hasAttribute('data-tooltip-noclose')) { e.target.removeAttribute('data-tooltip-noclose'); return; } // Is the tooltip actually open? var uuid = e.target.getAttribute('data-tooltip-uuid'); var elRemove = document.getElementById('akeeba-tooltip-' + uuid); if (elRemove == null) { return; } // This is the first click on the element. Mark the tooltip as "no close". e.target.setAttribute('data-tooltip-noclose', 1); }; /** * Hides the tooltip related to a target * * @param {HTMLElement} target The element which had triggered the display of the tooltip */ akeeba.Tooltip.hideTooltip = function (target) { // If there is no tooltip UUID attached to the element we can do nothing if (!target.hasAttribute('data-tooltip-uuid')) { return; } // Get the tooltip UUID var uuid = target.getAttribute('data-tooltip-uuid'); // Remove the tooltip element from the HTML body var elRemove = document.getElementById('akeeba-tooltip-' + uuid); if (!elRemove) { return; } document.body.removeChild(elRemove); }; /** * Positions the tooltip. * * @param {object} parent - The trigger of the tooltip. * @param {object} tooltip - The tooltip itself. * @param {string} posHorizontal - Desired horizontal position of the tooltip relatively to the trigger (left/center/right) * @param {string} posVertical - Desired vertical position of the tooltip relatively to the trigger (top/center/bottom) * */ akeeba.Tooltip.positionAt = function (parent, tooltip, posHorizontal, posVertical) { var parentCoords = parent.getBoundingClientRect(), left, top; var dist = 10; switch (posHorizontal) { case "left": left = parseInt(parentCoords.left) - dist - tooltip.offsetWidth; if (parseInt(parentCoords.left) - tooltip.offsetWidth < 0) { left = dist; } break; case "right": left = parentCoords.right + dist; if (parseInt(parentCoords.right) + tooltip.offsetWidth > document.documentElement.clientWidth) { left = document.documentElement.clientWidth - tooltip.offsetWidth - dist; } break; default: case "center": left = parseInt(parentCoords.left) + ((parent.offsetWidth - tooltip.offsetWidth) / 2); } switch (posVertical) { case "center": top = (parseInt(parentCoords.top) + parseInt(parentCoords.bottom)) / 2 - tooltip.offsetHeight / 2; break; case "bottom": top = parseInt(parentCoords.bottom) + dist; break; default: case "top": top = parseInt(parentCoords.top) - tooltip.offsetHeight - dist; } left = (left < 0) ? parseInt(parentCoords.left) : left; top = (top < 0) ? parseInt(parentCoords.bottom) + dist : top; tooltip.style.left = left + "px"; tooltip.style.top = top + pageYOffset + "px"; };
Save
cmd:
run