arkadaş onu sormuyor galiba reis

bunu dene

js içerisine eklerisn yada sayfa sonlarına script tagleri arasına


function getMobileOperatingSystem() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;

// Windows Phone must come first because its UA also contains "Android"
if (/windows phone/i.test(userAgent)) {
return "Windows Phone";
}

if (/android/i.test(userAgent)) {
return "Android";
}

// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
return "iOS";
}

return "unknown";
}
$(document).ready(function(){
var t=getMobileOperatingSystem();

if(t=="Android"){
var header = document.getElementById("header");
var footer = document.getElementById("footer");
header.style.display = "none";
footer.style.display = "none";
}
}