development version 2.1.1d4: redacted (commented out) jQuery.browser function use in jquery.tools.min.js, updating for the Forum in response to user

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2416961 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
pewgeuges 2020-11-12 04:46:44 +00:00
parent 5a8e30e6ea
commit 9d0044a35a
7 changed files with 41 additions and 18 deletions

View file

@ -151,7 +151,7 @@ class MCI_Footnotes {
'mci-footnotes-css-public', 'mci-footnotes-css-public',
plugins_url('../css/public.css', __FILE__), plugins_url('../css/public.css', __FILE__),
'', '',
'2.1.1d3' '2.1.1d4'
); );
} }

View file

@ -4,9 +4,9 @@
* Created-Date: 15.05.14 * Created-Date: 15.05.14
* Created-Time: 16:21 * Created-Time: 16:21
* Since: 1.0 * Since: 1.0
* Version: 2.1.1d3 * Version: 2.1.1d4
* *
* Last modified: 2020-11-11T2146+0100 * Last modified: 2020-11-12T0539+0100
*/ */

View file

@ -4,9 +4,9 @@
* Created-Date: 15.05.14 * Created-Date: 15.05.14
* Created-Time: 16:21 * Created-Time: 16:21
* Since: 1.0 * Since: 1.0
* Version: 2.1.1d3 * Version: 2.1.1d4
* *
* Last modified: 2020-11-11T2145+0100 * Last modified: 2020-11-12T0539+0100
*/ */

View file

@ -4,7 +4,7 @@
Plugin URI: https://wordpress.org/plugins/footnotes/ Plugin URI: https://wordpress.org/plugins/footnotes/
Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine. Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine.
Author: Mark Cheret Author: Mark Cheret
Version: 2.1.1d3 Version: 2.1.1d4
Author URI: http://cheret.de/plugins/footnotes-2/ Author URI: http://cheret.de/plugins/footnotes-2/
Text Domain: footnotes Text Domain: footnotes
Domain Path: /languages Domain Path: /languages

View file

@ -21,20 +21,40 @@
* *
* ----- * -----
* *
* Added jQueryUI and checks whether a.browser exists * Added jQueryUI and checks whether jQuery.browser exists
* Following @vonpiernik <https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762> * Following @vonpiernik <https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762>
* 2020-10-26T2005+0100 * 2020-10-26T2005+0100
* Last modified: 2020-10-26T2006+0100 *
* Removed usage of jQuery browser check function 2020-11-12T0127+0100
*
* See also on the Forum, lastly <https://wordpress.org/support/topic/jquery-issues-13/>
*
* #1 (54) This was only a tweak to adjust width and height in Internet Explorer.
*
* #2 (226) This was only for very old Internet Explorer (older than IE8).
*
* #3 (266) This was only about a naming convention of Firefox: 'DOMMouseScroll' vs 'mousewheel',
* or 'mousemove' in very old Firefox (older than v1.9).
* When making jQuery.browser optional, an 'if(a.browser)' condition was added around.
*
* #4 (293) This disabled fade-in for Internet Explorer other than FadeIE.
*
* #5 (296) This disabled fade-out for Internet Explorer other than FadeIE.
*
* #6 (420) This disabled slide-fade for Internet Explorer.
* Browsers not supporting an effect simply dont execute it, they wont throw an error.
*
* Last modified: 2020-11-12T0537+0100
*/ */
(function (a) { (function (a) {
a.tools = a.tools || {version: "v1.2.7"}; a.tools = a.tools || {version: "v1.2.7"};
var b; 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}}; 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() { function c() {
if (a.browser && a.browser.msie) { /*if (a.browser && a.browser.msie) {
var b = a(document).height(), c = a(window).height(); var b = a(document).height(), c = a(window).height();
return[window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, b - c < 20 ? c : b] return[window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, b - c < 20 ? c : b]
} }*/
return[a(document).width(), a(document).height()] return[a(document).width(), a(document).height()]
} }
@ -203,10 +223,10 @@
(function (a) { (function (a) {
var b, c, d, e; var b, c, d, e;
a.tools = a.tools || {version: "v1.2.7"}, a.tools.history = {init: function (g) { a.tools = a.tools || {version: "v1.2.7"}, a.tools.history = {init: function (g) {
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 () { 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; var d = c.contentWindow.document, e = d.location.hash;
b !== e && a(window).trigger("hash", e) b !== e && a(window).trigger("hash", e)
}, 100), f(location.hash || "#")) : setInterval(function () { }, 100), f(location.hash || "#")) :*/ setInterval(function () {
var c = location.hash; var c = location.hash;
c !== b && a(window).trigger("hash", c) c !== b && a(window).trigger("hash", c)
}, 100), d = d ? d.add(g) : g, g.click(function (b) { }, 100), d = d ? d.add(g) : g, g.click(function (b) {
@ -243,9 +263,7 @@
}, teardown: function () { }, teardown: function () {
a.event.remove(this, b, c) a.event.remove(this, b, c)
}}; }};
if (a.browser) { var b = /*a.browser.mozilla ? "DOMMouseScroll" + (a.browser.version < "1.9" ? " mousemove" : "") :*/ "mousewheel";
var b = a.browser.mozilla ? "DOMMouseScroll" + (a.browser.version < "1.9" ? " mousemove" : "") : "mousewheel";
}
function c(b) { function c(b) {
switch (b.type) { switch (b.type) {
@ -272,10 +290,10 @@
this.getTip().hide(), a.call() this.getTip().hide(), a.call()
}], fade: [function (b) { }], fade: [function (b) {
var c = this.getConf(); var c = this.getConf();
!(a.browser && 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) { }, function (b) {
var c = this.getConf(); var c = this.getConf();
!(a.browser && 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) { function c(b, c, d) {
@ -399,7 +417,7 @@
})(jQuery); })(jQuery);
(function (a) { (function (a) {
var b = a.tools.tooltip; var b = a.tools.tooltip;
a.extend(b.conf, {direction: "up", bounce: !1, slideOffset: 10, slideInSpeed: 200, slideOutSpeed: 200, slideFade: !(a.browser && a.browser.msie)}); a.extend(b.conf, {direction: "up", bounce: !1, slideOffset: 10, slideInSpeed: 200, slideOutSpeed: 200, slideFade: true /*!(a.browser && a.browser.msie)*/});
var c = {up: ["-", "top"], down: ["+", "top"], left: ["-", "left"], right: ["+", "left"]}; var c = {up: ["-", "top"], down: ["+", "top"], left: ["-", "left"], right: ["+", "left"]};
b.addEffect("slide", function (a) { b.addEffect("slide", function (a) {
var b = this.getConf(), d = this.getTip(), e = b.slideFade ? {opacity: b.opacity} : {}, f = c[b.direction] || c.up; var b = this.getConf(), d = this.getTip(), e = b.slideFade ? {opacity: b.opacity} : {}, f = c[b.direction] || c.up;

View file

@ -80,6 +80,10 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
== Changelog == == Changelog ==
= 2.1.1d4 =
- Add: UI: Tooltips: added delay (400ms) before fade-out to improve usability of links and Read-on button
- Update: Libraries: jQuery Tools: redacted jQuery.browser function use in js/jquery.tools.min.js
= 2.1.1d3 = = 2.1.1d3 =
- Add: UI: Tooltips: experimental optional alternative CSS/JS implementation - Add: UI: Tooltips: experimental optional alternative CSS/JS implementation

View file

@ -5,6 +5,7 @@
effect: 'fade', effect: 'fade',
predelay: 0, predelay: 0,
fadeInSpeed: 200, fadeInSpeed: 200,
delay: 400,
fadeOutSpeed: 200, fadeOutSpeed: 200,
position: '[[position]]', position: '[[position]]',
relative: true, relative: true,