var userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf('blackberry') != -1) {
document.location.href = 'black/index_black.html';
}
else if (userAgent.indexOf('iphone') != -1 || userAgent.indexOf('ipod') != -1) {
document.location.href = 'mobile/index_iphone.html';
}
else if (screen.width <= 480 && screen.height <= 800) {
document.location.href = 'mobile/index_mobile.html';
}
else if (userAgent.indexOf('ipad') != -1) {
document.location.href = 'ipad/index_ipad.html';
}
Merci a toi Watilin ! |