Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.39 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.39 KB

jQuery.downBoy

Deprecated: You should probably be using Flexbox or Grid in CSS instead.

A small jQuery plugin to push your footer to the bottom of your responsive dynamic height page.

Normal Maintainability jsDelivr

Implementation

Run on footer element.

<script src="https://cdn.jsdelivr.net/gh/eustasy/[email protected]/jquery.downboy.auto.min.js" integrity="sha256-gblkF/eHYhPMM+XZ1weVZuXsdF2HyRUCqCmSvvRVfcM=" crossorigin="anonymous"></script>

Run on custom element, such as #footer.

<script src="https://cdn.jsdelivr.net/gh/eustasy/[email protected]/jquery.downboy.min.js" integrity="sha256-x2jMLmtp0NhzmpxjZ9AnCBTmdCP3za4/fZJimVYwYeE=" crossorigin="anonymous"></script>
<script>
 	$(function() {
		downBoy('#footer'); // Run on load
		window.onresize = function() { // On Resize
			downBoy('#footer'); // Run Again
		};
	});
</script>