update readme

This commit is contained in:
Alexander Popov 2021-02-27 02:57:58 +03:00
parent 3775da301f
commit 8989a58f1f
6 changed files with 10 additions and 12 deletions

View File

@ -1 +1,6 @@
## hgman
It's simple word guessing game
[[ChangeLog](CHANGELOG.md)]
![License](https://img.shields.io/github/license/iiiypuk/hgman?style=for-the-badge) ![Lines code](https://img.shields.io/tokei/lines/github/iiiypuk/hgman?style=for-the-badge)

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,3 @@
'use strict';
const pageCredits = '\
<p class="text-center">Font F5.6 by\
<a href="http://dotcolon.net/">DOT COLON</a>\

View File

@ -1,5 +1,3 @@
'use strict';
const pageStatistics = '\
<table>\
<caption>User statistics</caption>\

View File

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

View File

@ -19,7 +19,7 @@ let lives = 6;
function generateKeyboard(layout) {
let keyboardHtmlStr = "";
layout.split("").forEach(function(letter) {
keyboardHtmlStr = keyboardHtmlStr + '<button class="button clear is-marginless" id="' + letter + '" onclick="letterClick(\'' + letter + "')\"> " + letter + "</button>";
keyboardHtmlStr += `<button class="button clear is-marginless" id="${letter}" onclick="letterClick('${letter}')">${letter}</button>`;
});
let keyboard = document.querySelector("#keyboard");
keyboard.classList.remove("is-hidden");
@ -71,7 +71,6 @@ function wrongLetter() {
// display tab content
function showPage(element, pageName) {
// alert(event.srcElement.id);
[ "gameButton", "statsButton", "creditsButton" ].forEach(function(item) {
document.querySelector("#" + item).classList.remove("active");
});