Cevaplar
-
Merhaba ,
iPhone4 useragent'ı
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0_1 like Mac OS X; tr-tr) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A306 Safari/6531.22.7-
psygnosis
kardeş ben iphone 3 ü şu şekilde yakalıyorum
var isiPhone = navigator.userAgent.match(/iPhone/i);
bu verdiğini nasıl düzenlemeliyim12 yıl önce yazılmış -
kiirpi
Merhaba ,
var isiphone4 = navigator.userAgent.match(/iPhone OS 4_/i);
işini görebilir.12 yıl önce yazılmış -
psygnosis
bu versiyonunu veriyor yani 3g de ios 4 te ta görüyor bunu iphone 4 ü ayırt etmiyor12 yıl önce yazılmış
-
-
if(navigator.userAgent.match(/iPhone/i)) {
if(navigator.userAgent.match(/iPhone OS 4/i)) {
if(document.cookie.indexOf("iphone_redirect=false") == -1) {
window.location ="iPhone4.html";
}
}
else {
if(document.cookie.indexOf("iphone_redirect=false") == -1) {
window.location ="iPhone.html";
}
}
}