add auto refresh page

This commit is contained in:
Alexander Popov 2021-02-24 22:45:09 +03:00
parent dd38b4f5f6
commit b716e78fbb
10 changed files with 9 additions and 26 deletions

View File

@ -47,7 +47,7 @@ function wrong()
var gamesFail = localStorage.getItem('gamesFail');
localStorage.setItem('gamesFail', parseInt(gamesFail) + 1);
alert('You dead');
return;
document.location.reload(true);
}
lives -= 1;
@ -89,6 +89,6 @@ function offChar(char)
var gamesWon = localStorage.getItem('gamesWon');
localStorage.setItem('gamesWon', parseInt(gamesWon) + 1);
alert('You Win');
return;
document.location.reload(true);
}
}

View File

@ -27,7 +27,10 @@
...
</div>
<footer>2017 by iiiypuk<br>ver: 0.2.0</footer>
<footer>
2021 by <a href="//iiiypuk.me/">iiiypuk</a>
<p>ver: 0.2.1</p>
</footer>
</div>
<script type="text/javascript" src="game.js"></script>

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1,4 +1,6 @@
// http://paletton.com/#uid=13w0u0kllllaFw0g0qFqFg0w0aF
/* http://paletton.com/#uid=13w0u0kllllaFw0g0qFqFg0w0aF */
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
* {
margin: 0; padding: 0; outline: 0;

View File

@ -1,13 +0,0 @@
@font-face {
font-family: 'Play';
src: url('Play-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Play';
src: url('Play-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}

View File

@ -1 +0,0 @@
*.otf

View File

@ -1 +0,0 @@
Download from [it](http://dotcolon.net/font/vegur/).

View File

@ -1,7 +0,0 @@
@font-face {
font-family: 'Vegur';
src: url('Vegur-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
}