fix undo
This commit is contained in:
parent
ef758fac04
commit
ccb8e91728
2
app.js
2
app.js
@ -169,7 +169,7 @@ function refresh(box) {
|
|||||||
|
|
||||||
if (box.form.checkValidity()) { // Correct grid
|
if (box.form.checkValidity()) { // Correct grid
|
||||||
if (boxes.filter(box => box.value == "").length == 0) {
|
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 {
|
} else {
|
||||||
if (suggestionTimer) clearTimeout(suggestionTimer)
|
if (suggestionTimer) clearTimeout(suggestionTimer)
|
||||||
suggestionTimer = setTimeout(showSuggestion, SUGESTION_DELAY)
|
suggestionTimer = setTimeout(showSuggestion, SUGESTION_DELAY)
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
"shortcuts": [
|
"shortcuts": [
|
||||||
{
|
{
|
||||||
"name": "Sudoku : cette grille",
|
"name": "Sudoku : cette grille",
|
||||||
"short_name": "Sudoku",
|
"short_name": "Ce sudoku",
|
||||||
"description": "Continuer cette grille de sudoku",
|
"description": "Continuer cette grille de sudoku",
|
||||||
"url": "<?=$gridStr?>",
|
"url": "<?=$gridStr?>",
|
||||||
"icons": [{
|
"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",
|
"short_name": "Nouveau sudoku",
|
||||||
"description": "Nouvelle grille de sudoku",
|
"description": "Nouvelle grille de sudoku",
|
||||||
"url": ".",
|
"url": ".",
|
||||||
|
@ -82,6 +82,7 @@ section, div, footer {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transition: background 0.5s;
|
transition: background 0.5s;
|
||||||
|
caret-color: transparent;
|
||||||
-moz-appearance: textfield;
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
input::-webkit-outer-spin-button,
|
input::-webkit-outer-spin-button,
|
||||||
|
@ -100,6 +100,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<footer>
|
<footer>
|
||||||
<a href=''>Lien vers cette grille</a><br/>
|
<a href=''>Lien vers cette grille</a><br/>
|
||||||
|
<a href='.................................................................................'>Grille vierge</a><br/>
|
||||||
<a href='.'>Nouvelle grille</a>
|
<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>
|
<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>
|
</footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user