Skip to content

Commit d9c04f5

Browse files
committed
made some changes in playerinfo section and some changes in playinfo function
1 parent b39b505 commit d9c04f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#playInfo{
2020
text-align: center;
21-
padding: 20px;
21+
height: 80px;
2222
color: white;
2323
}
2424

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ var view = {
1313
playInfo: function(playerSymbol, pcSymbol, gameStatus){
1414
var message = document.getElementById("playInfo");
1515
if(gameStatus === "WON"){
16-
message.innerHTML = "You won! Press restart to play again.";
16+
message.innerHTML = "<u>You WON!</u> <br>Press restart to play again.";
1717
}
1818
else if(gameStatus === "LOST"){
19-
message.innerHTML = "You lost! Press restart to play again.";
19+
message.innerHTML = "<u>You LOST!</u> <br>Press restart to play again.";
2020
}
2121
else{
2222
message.innerHTML = "Player: " + playerSymbol + " Computer: " + pcSymbol;

0 commit comments

Comments
 (0)