私はこれが簡単であることを知っていますが、以下の条件付きの場合は機能しません...
この " if ( !$section.id == "no-transition" ) " の下の行は正しくありません。
「遷移なし」の ID を持つセクション要素で JavaScript が動作しないようにしようとしています。
誰かが私を正しい方向に向けることができますか?
function initEvents() {
$sections.each( function() {
var $section = $( this );
if ( !$section.id == "no-transition" ) {
// expand the clicked section and scale down the others
$section.on( 'click', function() {
[code taken out to shorten post...]
if( !supportTransitions ) {
$section.removeClass( 'bl-expand-top' );
}
$el.removeClass( 'bl-expand-item' );
return false;
} );
}
} );