$(function(){
var ua = navigator.userAgent;
if(ua.indexOf('iPhone') > 0 && ua.indexOf('iPod') == -1 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0 && ua.indexOf('SC-01C') == -1 && ua.indexOf('A1_07') == -1 ){
$('.telLink img').each(function(){
var alt = $(this).attr('alt');
$(this).wrap($('<a>').attr('href', 'tel:' + alt.replace(/-/g, '')));
});
}
});
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00