3 Commits

Author SHA1 Message Date
s3rius a2f96e247a More dicts.
/ docker_build (push) Successful in 1m20s
/ helm_deploy (push) Successful in 33s
Testing zangramru / pytest (push) Successful in 18s
Testing zangramru / lint (push) Successful in 31s
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
2026-07-03 03:24:19 +02:00
s3rius cf98f5ccbd Dict update.
/ docker_build (push) Successful in 5m56s
/ helm_deploy (push) Successful in 48s
Testing zangramru / lint (push) Successful in 2m53s
Testing zangramru / pytest (push) Successful in 3m22s
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
2026-07-03 01:07:08 +02:00
s3rius fcd7f6aaf9 Fixed time copying.
/ docker_build (push) Successful in 1m9s
/ helm_deploy (push) Successful in 23s
Testing zangramru / lint (push) Successful in 30s
Testing zangramru / pytest (push) Successful in 18s
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
2026-07-02 19:00:02 +02:00
2 changed files with 9697 additions and 366 deletions
+9693 -361
View File
File diff suppressed because it is too large Load Diff
+4 -5
View File
@@ -1030,8 +1030,6 @@
extraWords = data.extra || {}; extraWords = data.extra || {};
wordDefs = data.word_defs || {}; wordDefs = data.word_defs || {};
selected = []; selected = [];
const cb = board.flat().join('');
history.replaceState(null, '', '#' + cb);
startBoard(); renderFound(); updateStatus(); startBoard(); renderFound(); updateStatus();
startTimer(); startTimer();
} }
@@ -1062,11 +1060,11 @@
let text; let text;
if (puzzleNumber === null) { if (puzzleNumber === null) {
const compressedBoard = board.flat().join(''); const compressedBoard = board.flat().join('');
const url = window.location.origin + window.location.pathname + '#' + compressedBoard; const url = window.location.origin + window.location.pathname + '#' + encodeURIComponent(compressedBoard);
text = 'Занграммы!\n🎉 Мне потребовалось всего лишь ' + formatTime(displayElapsed()) + '\n\n' + url; text = 'Занграммы!\n🎉 Мне потребовалось всего лишь ' + formatTime(elapsed) + '\n\n' + url;
} else { } else {
text = 'Занграммы #' + puzzleNumber + text = 'Занграммы #' + puzzleNumber +
'\n🎉 Мне потребовалось всего лишь ' + formatTime(displayElapsed()) + '\n🎉 Мне потребовалось всего лишь ' + formatTime(elapsed) +
'\n\n' + window.location.href; '\n\n' + window.location.href;
} }
navigator.clipboard.writeText(text).then( navigator.clipboard.writeText(text).then(
@@ -1102,6 +1100,7 @@
sizeConfetti(); sizeConfetti();
const hash = decodeURIComponent(window.location.hash.slice(1) || ''); const hash = decodeURIComponent(window.location.hash.slice(1) || '');
if (hash && hash.length === 16) { if (hash && hash.length === 16) {
history.replaceState(null, '', window.location.pathname);
loadRandomPuzzle(hash); loadRandomPuzzle(hash);
} else { } else {
loadPuzzle(); loadPuzzle();