Version 2.0 imminent

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2407529 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Mark Cheret 2020-10-27 11:56:49 +00:00
parent cf553462a6
commit 6cef45746d
24 changed files with 1298 additions and 1542 deletions

View file

@ -21,13 +21,17 @@
*
* -----
*
* Added jQueryUI and checks whether a.browser exists
* Following @vonpiernik <https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762>
* 2020-10-26T2005+0100
* Last modified: 2020-10-26T2006+0100
*/
(function (a) {
a.tools = a.tools || {version: "v1.2.7"};
var b;
b = a.tools.expose = {conf: {maskId: "exposeMask", loadSpeed: "slow", closeSpeed: "fast", closeOnClick: !0, closeOnEsc: !0, zIndex: 9998, opacity: .8, startOpacity: 0, color: "#fff", onLoad: null, onClose: null}};
function c() {
if (a.browser.msie) {
if (a.browser && a.browser.msie) {
var b = a(document).height(), c = a(window).height();
return[window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, b - c < 20 ? c : b]
}
@ -199,7 +203,7 @@
(function (a) {
var b, c, d, e;
a.tools = a.tools || {version: "v1.2.7"}, a.tools.history = {init: function (g) {
e || (a.browser.msie && a.browser.version < "8" ? c || (c = a("<iframe/>").attr("src", "javascript:false;").hide().get(0), a("body").append(c), setInterval(function () {
e || (a.browser && a.browser.msie && a.browser.version < "8" ? c || (c = a("<iframe/>").attr("src", "javascript:false;").hide().get(0), a("body").append(c), setInterval(function () {
var d = c.contentWindow.document, e = d.location.hash;
b !== e && a(window).trigger("hash", e)
}, 100), f(location.hash || "#")) : setInterval(function () {
@ -239,7 +243,9 @@
}, teardown: function () {
a.event.remove(this, b, c)
}};
var b = a.browser.mozilla ? "DOMMouseScroll" + (a.browser.version < "1.9" ? " mousemove" : "") : "mousewheel";
if (a.browser) {
var b = a.browser.mozilla ? "DOMMouseScroll" + (a.browser.version < "1.9" ? " mousemove" : "") : "mousewheel";
}
function c(b) {
switch (b.type) {
@ -266,10 +272,10 @@
this.getTip().hide(), a.call()
}], fade: [function (b) {
var c = this.getConf();
!a.browser.msie || c.fadeIE ? this.getTip().fadeTo(c.fadeInSpeed, c.opacity, b) : (this.getTip().show(), b())
!(a.browser && a.browser.msie) || c.fadeIE ? this.getTip().fadeTo(c.fadeInSpeed, c.opacity, b) : (this.getTip().show(), b())
}, function (b) {
var c = this.getConf();
!a.browser.msie || c.fadeIE ? this.getTip().fadeOut(c.fadeOutSpeed, b) : (this.getTip().hide(), b())
!(a.browser && a.browser.msie) || c.fadeIE ? this.getTip().fadeOut(c.fadeOutSpeed, b) : (this.getTip().hide(), b())
}]};
function c(b, c, d) {
@ -393,7 +399,7 @@
})(jQuery);
(function (a) {
var b = a.tools.tooltip;
a.extend(b.conf, {direction: "up", bounce: !1, slideOffset: 10, slideInSpeed: 200, slideOutSpeed: 200, slideFade: !a.browser.msie});
a.extend(b.conf, {direction: "up", bounce: !1, slideOffset: 10, slideInSpeed: 200, slideOutSpeed: 200, slideFade: !(a.browser && a.browser.msie)});
var c = {up: ["-", "top"], down: ["+", "top"], left: ["-", "left"], right: ["+", "left"]};
b.addEffect("slide", function (a) {
var b = this.getConf(), d = this.getTip(), e = b.slideFade ? {opacity: b.opacity} : {}, f = c[b.direction] || c.up;