Skip to content

Commit

Permalink
use a css file
Browse files Browse the repository at this point in the history
  • Loading branch information
donno2048 committed Feb 6, 2025
1 parent f4b1c36 commit fbe9b21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 3 additions & 2 deletions demo/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="refresh" content="3; URL='.'"/>
<link rel="icon" href="qr.png"/>
<link rel="stylesheet" href="style.css"/>
<title>404 - Page Not Found</title>
</head>
<body>
<h1 style="text-align:center">404</h1>
<h2 style="text-align:center">Page Not Found</h2>
<h1>404</h1>
<h2>Page Not Found</h2>
</body>
</html>
5 changes: 3 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
<meta property="og:url" content="https://donno2048.github.io/snake/" />
<meta property="og:image" content="https://donno2048.github.io/snake/qr.png" />
<link rel="icon" href="qr.png" />
<link rel="stylesheet" href="style.css" />
<title>Snake</title>
<script src="js-dos.js"></script>
</head>
<body style="display:flex;justify-content:center">
<body>
<canvas id="jsdos"></canvas>
<noscript>
<p style="text-wrap:balance;text-align:center">Please enable JavaScript and refresh to play the game.</p>
<p>Please enable JavaScript and refresh to play the game.</p>
</noscript>
<script src="main.js"></script>
</body>
Expand Down
10 changes: 10 additions & 0 deletions demo/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
body {
display: flex;
justify-content: center;
}

* {
text-wrap: balance;
text-align: center;
}

0 comments on commit fbe9b21

Please sign in to comment.