i created a nice code in jquery, it checks for pixels on screen and will soon redirect to the appropiate version
but i got to the point where i needed to support the disabled javascript and i got stuck at "how am i going to check if javascript is disabled in javascript?" silly right
so what am i supposed to do to run checks i heard of the viewport but i dont know if it can actually redirect to the index
var w = $(this).width();
var h = $(this).height();
if (w > 310 && w > 190 && h > 310)
{
alert('Tiny basic html Version <310x<310');
}
else if (w > 310 && w <= 800 && h > 480 && h < 1800)
{// only if its not a desktop like windows or mac or linux or any other mature browser
//only mobile detection here and other stuff
alert('SmartPhone Version <800x>480');
}
if (w > 800 && w < 3500 && h < 3000)
{//if its mobile os redirect to the smarphone version no matter how big that tablet is unless option
alert('Large Desktop with OS detection');
}