Merge pull request #3 from iiiypuk/sepJs

js files separate
This commit is contained in:
Alexander Popov 2021-02-25 07:47:54 +03:00 committed by GitHub
commit 3a91886b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 91 additions and 29 deletions

View File

@ -1,3 +1,6 @@
## 2.0.2 # Build 2 [2021-02-25]
- ✔️ - Fix keyboard fize on big screen
## 2.0.1 [2021-02-25]
- - Make iOS web app

View File

@ -1,4 +1,5 @@
[ ] Keyboard fit
[+] Keyboard fit
[ ] Game Statistics
[ ] Restart scene
[ ] Android manifest
[+] iOS web app

View File

@ -7,16 +7,18 @@
-->
<head>
<meta charset="utf-8">
<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="stylesheet" href="_media/css/styles.css?v=2">
<link rel="icon" type="image/png" href="_media/img/favicon.png">
<!-- Mobile -->
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, minimal-ui">
<meta name="format-detection" content="telephone=no">
<!-- Android -->
<meta name="mobile-web-app-capable" content="yes">
<!-- iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="WORDs">
<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">
@ -26,7 +28,7 @@
<header>
<nav class="nav">
<div class="nav-left hide-xs">
<a class="brand" href="#">WORDs</a>
<a class="brand">WORDs</a>
</div>
<div class="nav-center">
<p id="lives" class="button error is-full-width">loading...</p>
@ -47,20 +49,26 @@
<br>
<section id="content">
<!-- answer word div -->
<p id="word" class="card text-center text-uppercase">
Loading word...
</p>
<div id="keyboard" class="is-hidden text-center">
... keyboard ...
<!-- keyboard div -->
<div class="row">
<div class="col hide-xs hide-sm"></div>
<div id="keyboard" class="col-5-md is-hidden text-center is-full-width">
... keyboard ...
</div>
<div class="col hide-xs hide-sm"></div>
</div>
</section>
<footer class="text-center hide-xs">
<hr>
<p class="text-grey is-marginless is-small">
by iiiypuk<br>
ver: 2.0.1
by <a href="//iiiypuk.me/about/" target="_blank">iiiypuk</a><br>
ver: <a href="https://github.com/iiiypuk/hgman/blob/master/CHANGELOG.md" target="_blank">2.0.2</a>
</p>
<div id="statistics" class="is-hidden">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
@ -85,6 +93,8 @@
}
</script>
<script type="text/javascript" src="_media/js/game.js"></script>
<script type="text/javascript" src="js/pageStatistics.js?v=1"></script>
<script type="text/javascript" src="js/pageCredits.js?v=1"></script>
<script type="text/javascript" src="js/game.js?v=2"></script>
</body>
</html>

View File

@ -6,18 +6,6 @@ const keyboardLayouts = {
'ruQwertyKeyboard' : 'йцукеёнгшщзхъфывапролджэячсмитьбю'.toUpperCase()
}
const pageCredits = '\
<p class="text-center">Font F5.6 by\
<a href="http://dotcolon.net/">DOT COLON</a>\
</p>\
\
<p class="text-center">UI by\
<a href="https://jenil.github.io/chota/">chota.css</a>\
</p>\
';
const pageStatistics = '';
const words = [
'google', 'speed', 'design', 'forest', 'forever', 'love',
'horizon', 'defect'

11
js/pageCredits.js Normal file
View File

@ -0,0 +1,11 @@
'use strict';
const pageCredits = '\
<p class="text-center">Font F5.6 by\
<a href="http://dotcolon.net/">DOT COLON</a>\
</p>\
\
<p class="text-center">UI by\
<a href="https://jenil.github.io/chota/">chota.css</a>\
</p>\
';

39
js/pageStatistics.js Normal file
View File

@ -0,0 +1,39 @@
'use stheadict';
const pageStatistics = '\
<table>\
<caption>User statistics</caption>\
<thead>\
<tr>\
<th>Name</th>\
<th>Value</th>\
</tr>\
</thead>\
<tbody>\
<tr>\
<th>Всего игр</th>\
<th id="stTotalGames">0</th>\
</tr>\
<tr>\
<th>Отгаданных слов</th>\
<th id="stWinWords">0</th>\
</tr>\
<tr>\
<th>% побед</th>\
<th id="stWinPercentage">0</th>\
</tr>\
<tr>\
<th>Всего букв нажато</th>\
<th id="stLetterClick">0</th>\
</tr>\
<tr>\
<th>Букв отгадано</th>\
<th id="stWinLetter">0</th>\
</tr>\
<tr>\
<th>Процент верных букв</th>\
<th id="stWinLetterPercent">0</th>\
</tr>\
</tbody>\
</table>\
';

View File

@ -1,5 +1,15 @@
{
"dependencies": {
"chota": "0.8.0"
}
"name": "hgman",
"version": "2.0.2",
"description": "",
"keywords": [],
"author": "Alexander Popov",
"license": "MIT",
"browserslist": [
"defaults",
"not dead"
],
"dependencies": {
"chota": "0.8.0"
}
}