fix leaderboard

This commit is contained in:
Adrien MALINGREY 2020-10-01 20:35:51 +02:00
parent 70cfd94bc3
commit 5ef94fcf73
3 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Meilleurs scores - Webtris</title> <title>Meilleurs scores - Webtris</title>
<link rel="icon" type="image/png" href="favicon.png"> <link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" type="text/css" href="css/style.css" /> <link rel="stylesheet" type="text/css" href="style.css" />
</head> </head>
<body> <body>
<header> <header>

View File

@ -166,10 +166,6 @@ a:hover {
justify-content: center; justify-content: center;
} }
<<<<<<< HEAD
=======
>>>>>>> 7495206d88a9f084621605098597b93928fb6c63
#leaderboard{ #leaderboard{
min-width: 25%; min-width: 25%;
margin: auto; margin: auto;

View File

@ -746,6 +746,7 @@ function pause() {
scheduler.clearTimeout(lockDown) scheduler.clearTimeout(lockDown)
scheduler.clearTimeout(autorepeat) scheduler.clearTimeout(autorepeat)
scheduler.clearInterval(clock) scheduler.clearInterval(clock)
scheduler.clearInterval(delTempTexts)
holdQueue.draw() holdQueue.draw()
matrix.draw() matrix.draw()
nextQueue.draw() nextQueue.draw()
@ -764,6 +765,8 @@ function resume() {
holdQueue.draw() holdQueue.draw()
matrix.draw() matrix.draw()
nextQueue.draw() nextQueue.draw()
if (tempTexts.length)
scheduler.setInterval(delTempTexts, DELAY.MESSAGE)
} }
} }