Skip to content

Instantly share code, notes, and snippets.

@manabuyasuda
Created February 19, 2016 12:16
Show Gist options
  • Save manabuyasuda/828eab9b40c650ac6928 to your computer and use it in GitHub Desktop.
Save manabuyasuda/828eab9b40c650ac6928 to your computer and use it in GitHub Desktop.
ページ内に特定のclassが指定されている場合に実行する
// `.js-matchHeight`がページ内にあればその要素の高さを揃える
$(function() {
var $class = $('.js-matchHeight');
if($class.length) {
$class.matchHeight();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment