Récupération extra
This commit is contained in:
parent
b49c7b5bf5
commit
bd786bd6bb
81
core/vendor/tippy/init.js
vendored
81
core/vendor/tippy/init.js
vendored
@ -1,38 +1,49 @@
|
|||||||
/**
|
/**
|
||||||
* Initialisation de Tippy
|
* Initialisation de Tippy
|
||||||
*/
|
*/
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
// Tooltip des aides
|
|
||||||
tippy(".helpButton", {
|
// Tooltip des attributs title
|
||||||
arrow: true,
|
tippy("[data-tippy-content]", {
|
||||||
arrowType: "round",
|
arrow: true,
|
||||||
placement: "top"
|
placement: "top"
|
||||||
});
|
});
|
||||||
// Tooltip des attributs title
|
|
||||||
tippy("[data-tippy-content]", {
|
// Pour les images map, pas de flèche, bulle haut suivant le curseur
|
||||||
arrow: true,
|
tippy('img[title], a[title]:not(.button), area[title]', {
|
||||||
placement: "top"
|
|
||||||
});
|
content(reference) {
|
||||||
// Pour les images map, pas de flèche, bulle haut suivant le curseur
|
const title = reference.getAttribute('title')
|
||||||
|
reference.removeAttribute('title')
|
||||||
tippy('img[title], a[title], area[title]', {
|
return title
|
||||||
|
},
|
||||||
content(reference) {
|
|
||||||
const title = reference.getAttribute('title')
|
placement: "top",
|
||||||
reference.removeAttribute('title')
|
followCursor: true,
|
||||||
return title
|
animation: "fade",
|
||||||
},
|
animateFill: true
|
||||||
|
});
|
||||||
placement: "top",
|
|
||||||
followCursor: true,
|
// Tooltip des aides
|
||||||
animation: "fade",
|
tippy('a.button[title]', {
|
||||||
animateFill: true
|
content(reference) {
|
||||||
});
|
const title = reference.getAttribute('title')
|
||||||
// Pour les images map, pas de flèche, bulle haut suivant le curseur
|
reference.removeAttribute('title')
|
||||||
tippy("#image-map", {
|
return title
|
||||||
placement: "top",
|
},
|
||||||
followCursor: true,
|
delay: [1000,250],
|
||||||
animation: "fade",
|
placement: "bottom",
|
||||||
animateFill: true
|
followCursor: false,
|
||||||
});
|
arrow: true,
|
||||||
});
|
animateFill: true,
|
||||||
|
arrowType: "round",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Pour les images map, pas de flèche, bulle haut suivant le curseur
|
||||||
|
tippy("#image-map", {
|
||||||
|
placement: "top",
|
||||||
|
followCursor: true,
|
||||||
|
animation: "fade",
|
||||||
|
animateFill: true
|
||||||
|
});
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user