Im bulding a web application , i have a two set fluid layout one for small screen devices and other for large screen.?
So how can i put my benchmark between these two catagory .?
I know how to put different css media queries and device detection technique in js.
But i want a general standard to differentiate between these two category
For eg: i have
var deviceIs = {
android : agent.match(/Android/i),
iPhone : agent.match(/iPhone/i),
iPad : agent.match(/iPad/i),
iPod : agent.match(/iPod/i),
BB : agent.match(/BlackBerry/i),
webOS : agent.match(/webOS/i)
};
var currentRES = {
width : screen.width,
height : screen.height
}
But i want to create an object like
var screenTypeis ={
smallScreen : function(){
if(i want this generalized condition){
return true;
}
else{
return false;
}
}
}
For example device width > 480 on potrait and < 480 && etc etc ….
OK so what i fonund is something like this
And I have added more device list also .