ブログ

ブログ

redirect ios_android

[inline]
$(document).ready(function ()
{
if((navigator.userAgent.toLowerCase().indexOf(“iphone”) > -1) || (navigator.userAgent.toLowerCase().indexOf(“ipod”) > -1) || (navigator.userAgent.toLowerCase().indexOf(“ipad”) > -1))
{
window.location.href = ‘http://itunes.apple.com/app/id376771144?mt=8’;
}
else
{
window.location.href = ‘https://play.google.com/store/apps/details?id=com.google.android.apps.ads.publisher’;
}
});
[/inline]