Skip to content

Commit

Permalink
Merge pull request #54 from kaneta1992/add-reset-time-button
Browse files Browse the repository at this point in the history
Add reset button for uniform time
  • Loading branch information
mrdoob authored Aug 4, 2021
2 parents 6797aea + 05ffb9f commit bd04f86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@
}, false );
toolbar.appendChild( button );

var resetButton = document.createElement( 'button' );
resetButton.textContent = 'reset time';
resetButton.addEventListener( 'click', function ( event ) {

parameters.startTime = Date.now();

}, false );
toolbar.appendChild( resetButton );

var select = document.createElement( 'select' );

for ( var i = 0; i < quality_levels.length; i ++ ) {
Expand Down

0 comments on commit bd04f86

Please sign in to comment.