mircobabini
9/24/2014 - 7:52 PM

BrickHeight-Ratio.js

$scope.getBrickHeight = function(){
    if( $scope.brickHeight === undefined ){
        $scope.brickHeight = ( ( jQuery(document).width() / jQuery(document).height() ) * 40 ) + '%';
    }

    return $scope.brickHeight;
}