Created
August 18, 2012 01:20
-
-
Save wpsmith/3383785 to your computer and use it in GitHub Desktop.
JS: Resizes Genesis Footer Widgets to Equal Heights (responsively)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'wp_enqueue_scripts', 'wps_enqueue_refooterwidgets' , 15 ); | |
| /* | |
| * Enqueue reFooterWidgets to the footer | |
| * | |
| */ | |
| function wps_enqueue_refooterwidgets() { | |
| wp_enqueue_script( 'wps-footer-widgets-height' , get_stylesheet_directory() . '/js/footer-widgets-height.js' , NULL , '1.0.0' , true ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove use strict from line 11. Applying it globally is asking for trouble. Move it to line 16.5.
Also consider running this code through JSHint and JSLint to apply some common code standards.