It seems I've encountered a puzzling logic error that has me stumped. While all conditions besides 1024 are triggering the correct if statements, for some mysterious reason, the 1024 condition isn't being met. Any insights would be greatly appreciated!
var width = 1024; //screen.width;
var height = 768; //screen.height;
var subpageModifier;
if (width > 360 && width < 767) {
subpageModifier = .28;
};
if( width > 767 && width < 800){
subpageModifier = 0.15;
};
if (width > 800 && width < 961) {
subpageModifier = .15;
};
if (width > 961 && width >1135){
subpageModifier = 0.3;
};
if (width >1135 && width < 1535){
subpageModifier = 0.15;
};
Just to note, my development is based on AngularJS if that information could be of assistance.