Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |
js:wrap_link [2025/02/25 15:31] – avillepreux | js:wrap_link [2025/02/25 15:33] (Version actuelle) – avillepreux |
---|
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>'); |
} | } |
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>'); |
} | } |