• File: footer-fixed.js
  • Full Path: /home/chassiw/www/wp-content/themes/kasuari/js/footer-fixed.js
  • File size: 435 bytes
  • MIME-type: text/plain
  • Charset: utf-8
(function($) {

	'use strict';

	$(document).ready(function() {

		if($('#footer')[0]) {
			if (document.querySelector("#footer").classList.contains("fixed-footer")) {
				$("#content").addClass('has-fixed-footer');
			}
		}
	});

	$(document).ready(function() {
		var mainWrapper = $('#content');
		var footerHeight = $('#footer').height();

			mainWrapper.css('margin-bottom', footerHeight);
	});


})( jQuery );