Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ua = navigator.userAgent;
- if(ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0){
- window.location.href = "https://ja.stackoverflow.com/questions";
- }else if(ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0){
- window.location.href = "https://ja.stackoverflow.com/tags";
- }else{
- window.location.href = "https://ja.stackoverflow.com";
- }
Add Comment
Please, Sign In to add comment