傾きセンサーで判別します。
if(typeof window.orientation == "undefined") {
// Desktop
} else {
// Mobile
}
More than 5 years have passed since last update.
傾きセンサーで判別します。
if(typeof window.orientation == "undefined") {
// Desktop
} else {
// Mobile
}
Register as a new user and use Qiita more conveniently