This commit is contained in:
Adrien MALINGREY 2020-11-09 02:19:25 +01:00
parent ef758fac04
commit ccb8e91728
4 changed files with 36 additions and 3 deletions

2
app.js
View File

@ -169,7 +169,7 @@ function refresh(box) {
if (box.form.checkValidity()) { // Correct grid
if (boxes.filter(box => box.value == "").length == 0) {
alert(`Bravo ! Vous avez résolu la grille.`)
setTimeout(() => alert(`Bravo ! Vous avez résolu la grille.`), 0)
} else {
if (suggestionTimer) clearTimeout(suggestionTimer)
suggestionTimer = setTimeout(showSuggestion, SUGESTION_DELAY)

View File

@ -40,7 +40,7 @@
"shortcuts": [
{
"name": "Sudoku : cette grille",
"short_name": "Sudoku",
"short_name": "Ce sudoku",
"description": "Continuer cette grille de sudoku",
"url": "<?=$gridStr?>",
"icons": [{
@ -70,7 +70,38 @@
}]
},
{
"name": "Nouvelle grille de sudoku",
"name": "Sudoku : Grille vierge",
"short_name": "Sudoku vierge",
"description": "Grille de sudoku vierge",
"url": ".................................................................................",
"icons": [{
"src": "thumbnail.png.php?grid=.................................................................................&size=48",
"sizes": "48x48",
"type": "image/png"
}, {
"src": "thumbnail.png.php?grid=.................................................................................&size=72",
"sizes": "72x72",
"type": "image/png"
}, {
"src": "thumbnail.png.php?grid=.................................................................................&size=96",
"sizes": "96x96",
"type": "image/png"
}, {
"src": "thumbnail.png.php?grid=.................................................................................&size=144",
"sizes": "144x144",
"type": "image/png"
}, {
"src": "thumbnail.png.php?grid=.................................................................................&size=168",
"sizes": "168x168",
"type": "image/png"
}, {
"src": "thumbnail.png.php?grid=.................................................................................&size=192",
"sizes": "192x192",
"type": "image/png"
}]
},
{
"name": "Sudoku : Nouvelle grille",
"short_name": "Nouveau sudoku",
"description": "Nouvelle grille de sudoku",
"url": ".",

View File

@ -82,6 +82,7 @@ section, div, footer {
padding: 0;
text-align: center;
transition: background 0.5s;
caret-color: transparent;
-moz-appearance: textfield;
}
input::-webkit-outer-spin-button,

View File

@ -100,6 +100,7 @@
</ul>
<footer>
<a href=''>Lien vers cette grille</a><br/>
<a href='.................................................................................'>Grille vierge</a><br/>
<a href='.'>Nouvelle grille</a>
<div class="credits">Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
</footer>