Skip to content

Commit

Permalink
update index.html and public/js/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tmchuynh committed Jul 28, 2024
1 parent eaa4586 commit 3c9db92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ <h2>Place Your Ships</h2>
<button id="place-randomly">Place Randomly and Start</button>
</div>
</div>
<div id="forfeit-sidebar" class="sidebar mx-5">
<h2>Forfeit the Battle?</h2>
<button id="forfeit" class="w-100">Forfeit</button>
</div>
<div class="gameBoards d-flex mx-5">
<div class="grid-container">
<h2>Your Fleet</h2>
Expand Down
4 changes: 0 additions & 4 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,8 @@ Game.prototype.toggleRotation = function (e) {
Game.prototype.startGame = function (e) {
var self = e.target.self;
var el = document.getElementById('roster-sidebar');
// var fn = function () { el.setAttribute('class', 'invisible'); };
// el.addEventListener(transitionEndEventName(), fn, false);
el.setAttribute('class', 'invisible');
self.readyToPlay = true;

// el.removeEventListener(transitionEndEventName(), fn, false);
};
// Click handler for Restart Game button
Game.prototype.restartGame = function (e) {
Expand Down

0 comments on commit 3c9db92

Please sign in to comment.