restart
This commit is contained in:
parent
951dfcdcb8
commit
6f7896cffc
3
app.js
3
app.js
@ -556,7 +556,6 @@ window.changeKey = function(input) {
|
|||||||
class Stats {
|
class Stats {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.modal = new bootstrap.Modal('#statsModal')
|
this.modal = new bootstrap.Modal('#statsModal')
|
||||||
restartButton.onclick = restart
|
|
||||||
this.load()
|
this.load()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -912,7 +911,7 @@ let stats = new Stats()
|
|||||||
let playing = false
|
let playing = false
|
||||||
//let favicon = document.querySelector("link[rel~='icon']")
|
//let favicon = document.querySelector("link[rel~='icon']")
|
||||||
|
|
||||||
function restart() {
|
window.restart = function() {
|
||||||
stats.modal.hide()
|
stats.modal.hide()
|
||||||
stats.init()
|
stats.init()
|
||||||
settings.init()
|
settings.init()
|
||||||
|
@ -145,7 +145,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button id="restartButton" type="button" class="btn btn-primary">Rejouer ?</button>
|
<button id="restartButton" type="button" class="btn btn-primary" onclick="restart()"">Rejouer ?</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user