add auto refresh page
This commit is contained in:
parent
dd38b4f5f6
commit
b716e78fbb
@ -47,7 +47,7 @@ function wrong()
|
|||||||
var gamesFail = localStorage.getItem('gamesFail');
|
var gamesFail = localStorage.getItem('gamesFail');
|
||||||
localStorage.setItem('gamesFail', parseInt(gamesFail) + 1);
|
localStorage.setItem('gamesFail', parseInt(gamesFail) + 1);
|
||||||
alert('You dead');
|
alert('You dead');
|
||||||
return;
|
document.location.reload(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
lives -= 1;
|
lives -= 1;
|
||||||
@ -89,6 +89,6 @@ function offChar(char)
|
|||||||
var gamesWon = localStorage.getItem('gamesWon');
|
var gamesWon = localStorage.getItem('gamesWon');
|
||||||
localStorage.setItem('gamesWon', parseInt(gamesWon) + 1);
|
localStorage.setItem('gamesWon', parseInt(gamesWon) + 1);
|
||||||
alert('You Win');
|
alert('You Win');
|
||||||
return;
|
document.location.reload(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -27,7 +27,10 @@
|
|||||||
...
|
...
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" src="game.js"></script>
|
<script type="text/javascript" src="game.js"></script>
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
@ -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;
|
margin: 0; padding: 0; outline: 0;
|
@ -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;
|
|
||||||
}
|
|
1
html/Vegur/.gitignore
vendored
1
html/Vegur/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
*.otf
|
|
@ -1 +0,0 @@
|
|||||||
Download from [it](http://dotcolon.net/font/vegur/).
|
|
@ -1,7 +0,0 @@
|
|||||||
@font-face {
|
|
||||||
font-family: 'Vegur';
|
|
||||||
src: url('Vegur-Regular.otf') format('opentype');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user