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]
|
## 2.0.3 # Build 3 [Development]
|
||||||
-
|
- ➕ - Show hidden word by Lose
|
||||||
|
|
||||||
## 2.0.2 # Build 2 [2021-02-25]
|
## 2.0.2 # Build 2 [2021-02-25]
|
||||||
- ➕ - Added game statistics
|
- ➕ - Added game statistics
|
||||||
@ -13,11 +21,3 @@
|
|||||||
|
|
||||||
## 2.0.0 [2021-02-25]
|
## 2.0.0 [2021-02-25]
|
||||||
Init version
|
Init version
|
||||||
|
|
||||||
## Legend
|
|
||||||
- 🐛 - Bug
|
|
||||||
- ✔️ - Fixed
|
|
||||||
- ❌ - Removed
|
|
||||||
- ➕ - Added
|
|
||||||
- ℹ️ - Information
|
|
||||||
- ♻️ - Edited
|
|
||||||
|
2
TODO.md
2
TODO.md
@ -1,8 +1,8 @@
|
|||||||
[ ] Loading page
|
[ ] Loading page
|
||||||
[ ] Localization
|
[ ] Localization
|
||||||
[ ] Fix GAME tab for not refresh page
|
[ ] Fix GAME tab for not refresh page
|
||||||
[ ] Show word if lose
|
|
||||||
[ ] Android manifest
|
[ ] Android manifest
|
||||||
|
[+] Show word if lose
|
||||||
[+] Keyboard fit
|
[+] Keyboard fit
|
||||||
[+] Game Statistics
|
[+] Game Statistics
|
||||||
[+] Restart scene
|
[+] 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>
|
ver: <a href="https://github.com/iiiypuk/hgman/blob/master/CHANGELOG.md" target="_blank">2.0.2</a>
|
||||||
</p>
|
</p>
|
||||||
<div id="statistics" class="is-hidden">
|
<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_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>
|
<span id="busuanzi_container_site_pv">PV <span id="busuanzi_value_site_pv"></span></span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,6 +69,7 @@ function letterClick(letter)
|
|||||||
{
|
{
|
||||||
updateStats('stWinWords');
|
updateStats('stWinWords');
|
||||||
|
|
||||||
|
// display win scene
|
||||||
document.querySelector('#keyboard').innerHTML = '\
|
document.querySelector('#keyboard').innerHTML = '\
|
||||||
<img src="https://icongr.am/clarity/happy-face.svg?size=128&color=28bd14">\
|
<img src="https://icongr.am/clarity/happy-face.svg?size=128&color=28bd14">\
|
||||||
<h1 class="text-success">Your winner!!</h1>\
|
<h1 class="text-success">Your winner!!</h1>\
|
||||||
@ -84,6 +85,11 @@ function wrongLetter()
|
|||||||
{
|
{
|
||||||
updateStats('stTotalGames');
|
updateStats('stTotalGames');
|
||||||
|
|
||||||
|
// display hidden word
|
||||||
|
document.querySelector("#word").innerHTML = gameWord;
|
||||||
|
document.querySelector("#word").classList.add('text-success');
|
||||||
|
|
||||||
|
// display lose scene
|
||||||
document.querySelector('#keyboard').innerHTML = '\
|
document.querySelector('#keyboard').innerHTML = '\
|
||||||
<img src="https://icongr.am/clarity/sad-face.svg?size=128&color=d43939">\
|
<img src="https://icongr.am/clarity/sad-face.svg?size=128&color=d43939">\
|
||||||
<h1 class="text-error">Your lose!!</h1>\
|
<h1 class="text-error">Your lose!!</h1>\
|
||||||
|
Loading…
Reference in New Issue
Block a user