show word by lose
This commit is contained in:
parent
09de85f2c5
commit
ef12ef3715
18
CHANGELOG.md
18
CHANGELOG.md
@ -1,5 +1,13 @@
|
||||
## Legend
|
||||
- 🐛 - Bug
|
||||
- ✔️ - Fixed
|
||||
- ❌ - Removed
|
||||
- ➕ - Added
|
||||
- ℹ️ - Information
|
||||
- ♻️ - Edited
|
||||
|
||||
## 2.0.3 # Build 3 [Development]
|
||||
-
|
||||
- ➕ - Show hidden word by Lose
|
||||
|
||||
## 2.0.2 # Build 2 [2021-02-25]
|
||||
- ➕ - Added game statistics
|
||||
@ -13,11 +21,3 @@
|
||||
|
||||
## 2.0.0 [2021-02-25]
|
||||
Init version
|
||||
|
||||
## Legend
|
||||
- 🐛 - Bug
|
||||
- ✔️ - Fixed
|
||||
- ❌ - Removed
|
||||
- ➕ - Added
|
||||
- ℹ️ - Information
|
||||
- ♻️ - Edited
|
||||
|
2
TODO.md
2
TODO.md
@ -1,8 +1,8 @@
|
||||
[ ] Loading page
|
||||
[ ] Localization
|
||||
[ ] Fix GAME tab for not refresh page
|
||||
[ ] Show word if lose
|
||||
[ ] Android manifest
|
||||
[+] Show word if lose
|
||||
[+] Keyboard fit
|
||||
[+] Game Statistics
|
||||
[+] Restart scene
|
||||
|
File diff suppressed because one or more lines are too long
@ -80,7 +80,7 @@
|
||||
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>
|
||||
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
||||
<span id="busuanzi_container_site_uv">UV <span id="busuanzi_value_site_uv"></span></span>
|
||||
<span id="busuanzi_container_site_pv">PV <span id="busuanzi_value_site_pv"></span></span>
|
||||
</div>
|
||||
|
@ -69,6 +69,7 @@ function letterClick(letter)
|
||||
{
|
||||
updateStats('stWinWords');
|
||||
|
||||
// display win scene
|
||||
document.querySelector('#keyboard').innerHTML = '\
|
||||
<img src="https://icongr.am/clarity/happy-face.svg?size=128&color=28bd14">\
|
||||
<h1 class="text-success">Your winner!!</h1>\
|
||||
@ -84,6 +85,11 @@ function wrongLetter()
|
||||
{
|
||||
updateStats('stTotalGames');
|
||||
|
||||
// display hidden word
|
||||
document.querySelector("#word").innerHTML = gameWord;
|
||||
document.querySelector("#word").classList.add('text-success');
|
||||
|
||||
// display lose scene
|
||||
document.querySelector('#keyboard').innerHTML = '\
|
||||
<img src="https://icongr.am/clarity/sad-face.svg?size=128&color=d43939">\
|
||||
<h1 class="text-error">Your lose!!</h1>\
|
||||
|
Loading…
Reference in New Issue
Block a user