Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // js/index.js
- const resetBtn = document.getElementById( 'reset' );
- resetBtn.addEventListener( 'click', function() {
- rayHelper.detach( scene );
- creeper.reset();
- });
- // css/index.css
- button#reset {
- z-index: 10;
- position: absolute;
- left: 70px;
- }
- <!-- index.html -->
- <body>
- <button type="button" id="reset">Rest</button>
- <!-- ... -->
- </body>
- <!-- ... -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement