I need to add the capability to change the return if window is resized. I don't know how to do it.
$scope.widthLessParameter = function(parametro){
if(!isNaN(parametro)){
return $(window).width() - parametro + 'px';
}else{
return $(window).width() - $(parametro).width() + 'px';
}
}
Thanks a lot!