Automatic deploy 29009984

This commit is contained in:
Renan LE CARO 2025-02-26 20:44:47 +01:00
parent 7375adc934
commit 0c6f20a687
4 changed files with 21 additions and 8 deletions

View file

@ -1371,8 +1371,7 @@ function gameOver(title, intro) {
</p>
`
})
const previousUnlockAt = list.findLast(u => u.threshold <= endTs)?.threshold || 0
const previousUnlockAt = findLast(list, u => u.threshold <= endTs)?.threshold || 0
const nextUnlock = list.find(u => u.threshold > endTs)
if (nextUnlock) {
@ -3009,6 +3008,14 @@ function captureFileName(ext) {
function findLast(arr, predicate){
let i = arr.length
while(--i)
if(predicate(arr[i],i,arr)){
return arr[i]
}
}

View file

@ -8,17 +8,17 @@
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Breakout 71</title>
<link rel="stylesheet" href="style.css?v=29009918" />
<link rel="stylesheet" href="style.css?v=29009984" />
<link rel="icon" href="./icon.svg" />
</head>
<body>
<button id="menu"><span> menu</span></button>
<button id="score"></button>
<canvas id="game"></canvas>
<script>window.appVersion="?v=29009918".slice(3)</script>
<script>window.appVersion="?v=29009984".slice(3)</script>
<script src="gif.js"></script>
<script src="levels.js?v=29009918"></script>
<script src="game.js?v=29009918"></script>
<script src="levels.js?v=29009984"></script>
<script src="game.js?v=29009984"></script>
</body>