bux23
11/5/2016 - 12:36 PM

Set div height dinamically to window height

Set div height dinamically to window height

////////////////////////////////////////
// SET HEADER MEDIA HEIGHT
////////////////////////////////////////
jQuery(document).ready( function($) {
	
	// get the view height
	var VH = $(window).height();
	
	// set the height
	function set_header_height() {
		$('#header_media').css('height', VH + 'px');
	}
	// reset height on window resize
	$(window).resize(function() {
		set_header_height();
	});

});