Skip to content

Commit

Permalink
media querry added
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpkdeveloper committed Jul 31, 2020
1 parent 8555626 commit 67427b5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions game.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function update() {
if (gameover == true) {
alert("game over")
clearInterval(game)

}
}

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Go-Corona-Go</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" media="screen and (max-width : 736px)" href="phone.css">
<script defer src="game.js"></script>
</head>

Expand Down
8 changes: 8 additions & 0 deletions phone.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#mycanvas {
background-image: url("./assets/back.jpeg");
background-position: center;
background-size: cover;
border: 10px solid black;
width: 700px;
height: 380px;
}
2 changes: 2 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
background-position: center;
background-size: cover;
border: 10px solid black;
width: 900px;
height: 500px;
}

0 comments on commit 67427b5

Please sign in to comment.