6 lines
155 B
JavaScript
6 lines
155 B
JavaScript
|
function get_height(container, ratio) {
|
||
|
var height = $(container).width() / ratio
|
||
|
//console.log(ratio, $(container).width(), height)
|
||
|
return height
|
||
|
}
|