|
|
@@ -309,6 +309,11 @@ jQuery(document).ready(function($){
|
|
|
// })(jQuery, Drupal);
|
|
|
// //////////////////// end div infos site ////////////////////////
|
|
|
|
|
|
+
|
|
|
+// document.querySelectorAll('.description').forEach(el => {
|
|
|
+// el.setAttribute('data-text', el.textContent.trim());
|
|
|
+// });
|
|
|
+
|
|
|
function initDescriptionTooltips(root = document) {
|
|
|
root.querySelectorAll('.description').forEach(el => {
|
|
|
if (!el.hasAttribute('data-text')) {
|