keitahirai
8/14/2015 - 1:57 PM

スマホUA

スマホUA

var ua = navigator.userAgent.toLowerCase(),
	iph = ua.indexOf("iphone") >= 0,
	ipad = ua.indexOf("ipad") >= 0,
	ipod = ua.indexOf("ipod") >= 0,
	ad = ua.indexOf("android") >= 0,
	bb = ua.indexOf("blackberry") >= 0,
	wp = ua.indexOf("windowsphone") >= 0;