js:wrap_link

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
js:wrap_link [2025/02/25 15:31] avillepreuxjs:wrap_link [2025/02/25 15:33] (Version actuelle) avillepreux
Ligne 9: Ligne 9:
         wrap_link= true;         wrap_link= true;
          
-    if (!!jQuery(".wrap_link")) {+    if (!!jQuery(".wrap_link") && !!jQuery(".wrap_link").html()) {
         jQuery(".wrap_link").html('<a href="https://' + jQuery(".wrap_link").html() + '">' + jQuery(".wrap_link").html() + '</a>');          jQuery(".wrap_link").html('<a href="https://' + jQuery(".wrap_link").html() + '">' + jQuery(".wrap_link").html() + '</a>'); 
         }         }
Ligne 17: Ligne 17:
         wrap_tel= true;         wrap_tel= true;
          
-    if (!!jQuery(".wrap_tel")) {+    if (!!jQuery(".wrap_tel") && !!jQuery(".wrap_tel").html()) {
         jQuery(".wrap_tel").html('<a href="tel:' + jQuery(".wrap_tel").html().replace("+", "").replace(".", "").replace("(0)", "") + '">' + jQuery(".wrap_tel").html() + '</a>');          jQuery(".wrap_tel").html('<a href="tel:' + jQuery(".wrap_tel").html().replace("+", "").replace(".", "").replace("(0)", "") + '">' + jQuery(".wrap_tel").html() + '</a>'); 
         }         }
  • js/wrap_link.1740493892.txt.gz
  • Dernière modification : 2025/02/25 15:31
  • de avillepreux