backtick strings conflict with python string templates

This commit is contained in:
Timothy Farrell 2026-03-12 09:37:30 +00:00
parent fd32dcc534
commit 874a88a7f1

View File

@ -70,17 +70,17 @@
document.getElementById('prev-btn').click(); document.getElementById('prev-btn').click();
} else if (e.code === 'ArrowRight') { } else if (e.code === 'ArrowRight') {
document.getElementById('next-btn').click(); document.getElementById('next-btn').click();
} else if (e.code === 'Equal') { } else if (e.code === 'Equal') {
var params = getRefreshParams(); var params = getRefreshParams();
if (params) window.location.href = `/${params.order}/${params.delay + 1}/${params.hash}`; if (params) window.location.href = params.order + '/' + (params.delay + 1) + '/' + params.hash;
} else if (e.code === 'Minus') { } else if (e.code === 'Minus') {
var params = getRefreshParams(); var params = getRefreshParams();
if (params && params.delay > 1) window.location.href = `/${params.order}/${params.delay - 1}/${params.hash}`; if (params && params.delay > 1) window.location.href = params.order + '/' + (params.delay - 1) + '/' + params.hash;
} else if (e.key.toLowerCase() === 'o') { } else if (e.key.toLowerCase() === 'o') {
var params = getRefreshParams(); var params = getRefreshParams();
if (params) { if (params) {
var newOrder = params.order === 'next' ? 'random' : 'next'; var newOrder = params.order === 'next' ? 'random' : 'next';
window.location.href = `/${newOrder}/${params.delay}/${params.hash}`; window.location.href = '/' + newOrder + '/' + params.delay + '/' + params.hash;
} }
} }
}); });