js:wrap_link

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
js:wrap_link [2023/02/14 16:07] – créée 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'
 +    { 
 +        wrap_tel= true; 
 +     
 +    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.1676387224.txt.gz
  • Dernière modification : 2023/02/14 16:07
  • de avillepreux