Skip to content

Commit

Permalink
feat: create app manifest for pwa detection (#25)
Browse files Browse the repository at this point in the history
* feat: create app manifest for pwa detection

* fix: rename favicon.png to manifest.png
  • Loading branch information
ultraviolet-jordan authored Jan 5, 2025
1 parent e7d425a commit c149591
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 347 deletions.
67 changes: 34 additions & 33 deletions src/html/index.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
<html>
<head>
<title>RuneScape 2</title>
<head>
<title>RuneScape 2</title>

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale = 0.86, maximum-scale=3.0, minimum-scale=0.86">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale = 0.86, maximum-scale=3.0, minimum-scale=0.86">

<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="manifest" href="/manifest.json">

<style>
body {
margin: 0;
padding: 0;
color: #fff;
background-color: #000;
}
<style>
body {
margin: 0;
padding: 0;
color: #fff;
background-color: #000;
}

canvas {
display: block;
margin: 0 auto;
canvas {
display: block;
margin: 0 auto;

touch-action: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
z-index: -1;
}
</style>
</head>
<body>
<canvas id="canvas" width="789" height="532"></canvas>
</body>
touch-action: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
z-index: -1;
}
</style>
</head>
<body>
<canvas id="canvas" width="789" height="532"></canvas>
</body>
</html>
16 changes: 16 additions & 0 deletions src/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "2004Scape",
"icons": [
{
"src": "/manifest.png",
"type": "image/png",
"sizes": "144x144"
}
],
"id": "/",
"start_url": "/",
"background_color": "#212121",
"display": "minimal-ui",
"scope": "/",
"theme_color": "#212121"
}
Binary file added src/public/manifest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c149591

Please sign in to comment.