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
Prochaine révision
Révision précédente
js:wrap_link [2025/02/13 15:24] avillepreuxjs:wrap_link [2025/02/25 15:33] (Version actuelle) avillepreux
Ligne 9: Ligne 9:
         wrap_link= true;         wrap_link= true;
          
-        jQuery(".wrap_link").html('<a href="https://' + jQuery(".wrap_link").html() + '">' + jQuery(".wrap_link").html() + '</a>'); +    if (!!jQuery(".wrap_link") && !!jQuery(".wrap_link").html()) { 
 +        jQuery(".wrap_link").html('<a href="https://' + jQuery(".wrap_link").html() + '">' + jQuery(".wrap_link").html() + '</a>');  
 +        }
     }         }    
     if (typeof(wrap_tel) === 'undefined')     if (typeof(wrap_tel) === 'undefined')
Ligne 15: Ligne 17:
         wrap_tel= true;         wrap_tel= true;
          
-        jQuery(".wrap_tel").html('<a href="tel:' + jQuery(".wrap_tel").html().replace("+", "").replace(".", "").replace("(0)", "") + '">' + jQuery(".wrap_tel").html() + '</a>'); +    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>');  
 +        }
     }         }    
 }); });
  • js/wrap_link.1739456649.txt.gz
  • Dernière modification : 2025/02/13 15:24
  • de avillepreux