Merge pull request #2 from iiiypuk/apple-app

Apple app
This commit is contained in:
Alexander Popov 2021-02-25 04:04:56 +03:00 committed by GitHub
commit 2da151493a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 5 deletions

View File

@ -1,2 +1,3 @@
[ ] Keyboard fit
[ ] iOS web app
[ ] Game Statistic

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
_media/img/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -7,27 +7,33 @@
-->
<head>
<meta charset="utf-8">
<title>Hangman</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<title>WORDs</title>
<meta name="apple-mobile-web-app-title" content="WORDs">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, minimal-ui">
<link rel="stylesheet" href="https://unpkg.com/chota@0.8.0">
<!-- dev mode -->
<!-- <link rel="stylesheet" href="_media/css/chota.min.css"> -->
<link rel="stylesheet" href="_media/css/styles.css">
<link rel="icon" type="image/png" href="_media/img/favicon.png">
<link rel="apple-touch-icon" href="_media/img/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="_media/img/apple-launch-icon.png">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body>
<div class="container">
<header>
<nav class="nav">
<div class="nav-left">
<a class="brand" href="#">Hangman game</a>
<a class="brand" href="#">WORDs</a>
</div>
<div class="nav-center">
<p id="lives" class="button error">loading...</p>
</div>
<div class="nav-right">
<a class="button dropdown">Язык</a>
<a class="button dark" id="theme-switch" onclick="switchMode(this)">☀️</a>
<!-- <a class="button dropdown">Language</a> -->
<a class="button clear" id="theme-switch" onclick="switchMode(this)">☀️</a>
</div>
</nav>
</header>
@ -63,6 +69,7 @@
if (window.matchMedia &&
window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
document.querySelector("#theme-switch").innerHTML = "🌙";
}
function switchMode(el) {