I want to run equal columns script only for resolution over 768 of width but I’m not sure how can I do it.
This is my script:
function setEqualHeight(columns) {
var tallestcolumn = 0;
columns.each(function () {
currentHeight = $(this).height();
if (currentHeight > tallestcolumn) {
tallestcolumn = currentHeight;
}
});
columns.height(tallestcolumn);
}
$(document).ready(function () {
setEqualHeight($(" .container > .content"));
});
Math.max is already provided by javascript to find the max of multiple values, so I would suggest using that. I’d also suggest creating a simple javascript plugin to do it.