uglify-js

This commit is contained in:
Alexander Popov 2021-02-27 02:05:24 +03:00
parent 567c3e83f7
commit fedf2bdacc
36 changed files with 28 additions and 25 deletions

2
.gitignore vendored
View File

@ -1,5 +1,3 @@
node_modules/
package-lock.json
*.afdesign
_media/css/chota.min.css

View File

@ -1,3 +1,4 @@
[ ] Loading page
[ ] Localization
[ ] Fix GAME tab for not refresh page
[ ] Show word if lose

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

1
docs/game.js Normal file

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -9,8 +9,8 @@
<meta charset="utf-8">
<title>WORDs</title>
<link rel="stylesheet" href="https://unpkg.com/chota@0.8.0">
<link rel="stylesheet" href="_media/css/styles.css?v=2">
<link rel="icon" type="image/png" href="_media/img/favicon.png">
<link rel="stylesheet" href="styles.css?v=3">
<link rel="icon" type="image/png" href="images/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">
@ -20,17 +20,17 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="WORDs">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="_media/img/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-640x1136.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-750x1334.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-828x1792.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-1125x2436.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-1242x2208.png" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-1242x2688.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-1536x2048.png" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-1668x2224.png" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-1668x2388.png" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="_media/img/splash/splash-portrait-2048x2732.png" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-640x1136.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-750x1334.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-828x1792.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-1125x2436.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-1242x2208.png" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-1242x2688.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-1536x2048.png" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-1668x2224.png" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-1668x2388.png" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/splash-portrait-2048x2732.png" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
</head>
<body>
<div class="container">
@ -102,9 +102,6 @@
}
</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/statFunction.js?v=1"></script>
<script type="text/javascript" src="js/game.js?v=2"></script>
<script type="text/javascript" src="game.js?v=3"></script>
</body>
</html>

View File

@ -1,9 +1,9 @@
@font-face {
font-family: 'F5.6';
src: url('/hgman/_media/fonts/F5.6-Regular.eot');
src: url('/hgman/_media/fonts/F5.6-Regular.eot?#iefix') format('embedded-opentype'),
url('/hgman/_media/fonts/F5.6-Regular.woff2') format('woff2'),
url('/hgman/_media/fonts/F5.6-Regular.woff') format('woff');
src: url('fonts/F5.6-Regular.eot');
src: url('fonts/F5.6-Regular.eot?#iefix') format('embedded-opentype'),
url('fonts/F5.6-Regular.woff2') format('woff2'),
url('fonts/F5.6-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;

View File

@ -1,4 +1,4 @@
'use stheadict';
'use strict';
const pageStatistics = '\
<table>\

View File

@ -1,3 +1,5 @@
'use strict';
function updateStats(statParameter)
{
let stTotalGames = JSON.parse(localStorage.getItem('stTotalGames'));

View File

@ -16,6 +16,10 @@
"chota": "0.8.0"
},
"scripts": {
"server": "python3.7 -m http.server --directory ."
"build": "uglifyjs js/_* js/index.js -o docs/game.js",
"server": "python3.7 -m http.server --directory ./docs/"
},
"devDependencies": {
"uglify-js": "^3.12.8"
}
}