I need something like:
function Splitter() {
if ($(window).width() < 350) OR ($('#right-area').width() < 600) {
$('.grid-item').css("width", "100%")
}
if ($(window).width() < 800) OR ($('#right-area').width() < 800) {
$('.grid-item').css("width", "50%")
}
else {
$('.grid-item').css("width", "33.3333%")
}
}
How is it correct to write that? If I replace the OR with ||, it does not work too.
You should try it:
I thought you forgot "(" or ")" in statement