Skip to content

Commit

Permalink
Examples: Even simpler previews toggle code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jul 20, 2020
1 parent c5f9daf commit e5a6f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ <h1><a href="https://threejs.org">three.js</a></h1>

event.preventDefault();

content.classList.toggle( 'minimal' );
previewsToggler.style.opacity = content.classList.contains( 'minimal' ) ? 1 : 0.25;
var enabled = content.classList.toggle( 'minimal' );
previewsToggler.style.opacity = enabled ? 1 : 0.25;

};

Expand Down

0 comments on commit e5a6f37

Please sign in to comment.