Skip to content

Commit

Permalink
Got rid of annoying blue highlight, fixed selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
muktar1907 committed Apr 27, 2024
1 parent bfecbf9 commit 72f3c48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 7 additions & 7 deletions html/index_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,11 @@ <h2>Leaderboard</h2>
</tbody>
</table>
</div>




<div id="LobbyChatRoom">
<p>Message:Talk to other players here</p>
</div>
<!--LobbyChat-->
<div id="LobbyChatRoom">
<p>Message:Talk to other players here</p>
<button id="send">Send</button>
</div>

</body>
<script>
Expand Down Expand Up @@ -340,6 +338,7 @@ <h2>Leaderboard</h2>
buttonEvent(this.getAttribute("id"),0);
document.getElementById(this.getAttribute("id")).style.backgroundColor="blue";
clicked++;
console.log("clicked="+clicked);
});
cells[i].addEventListener("mouseover",function()
{
Expand All @@ -355,6 +354,7 @@ <h2>Leaderboard</h2>
buttonEvent(this.getAttribute("id"),2);
document.getElementById(this.getAttribute("id")).style.backgroundColor="blue";
clicked--;
console.log("clicked="+clicked);
});
/*cells[i].addEventListener("mouseout",function()
{
Expand Down
8 changes: 7 additions & 1 deletion html/style_lobby.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ body {
}
#Game {
width: 100vh;
user-select: none;
}
td {
height: 25px;
Expand All @@ -31,7 +32,7 @@ td {

#userInputSection, #gameListSection {
flex-basis: 40%;
padding: 20px;
padding: 10px;
background: white;
border: 1px solid black;
display: flex;
Expand Down Expand Up @@ -160,3 +161,8 @@ select {
border-collapse: collapse;
border: 1px solid black;
}
/* get rid of blue selection highlight*/
::selection {
color: none;
background: none;
}

0 comments on commit 72f3c48

Please sign in to comment.