Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/js/ambient.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ document.addEventListener('DOMContentLoaded', () => {

const type = Math.random();
if (type < 0.5) {
el.innerHTML = `<svg width="${size}" height="${size}" viewBox="0 0 20 20">
el.textContent = `<svg width="${size}" height="${size}" viewBox="0 0 20 20">
<path d="M10 1 L11.5 8.5 L19 10 L11.5 11.5 L10 19 L8.5 11.5 L1 10 L8.5 8.5 Z"
fill="${color}" opacity="0.9"/></svg>`;
} else if (type < 0.75) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const CollectionAPI = {
method: 'POST',
headers: this.getHeaders(),
credentials: 'include',
body: JSON.stringify({ user_id: parseInt(userId), name, description, is_public: isPublic })
body: JSON.stringify({ user_id: parseInt(userId, 10), name, description, is_public: isPublic })
});
if (!res.ok) {
const errData = await res.json().catch(() => ({}));
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/library-3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -2407,7 +2407,7 @@ class BookshelfRenderer3D {
if (progressBadge) progressBadge.textContent = `${clamped}% `;
// Sync pages input
if (pagesReadInput && pagesTotalInput) {
const pages = Math.round((clamped / 100) * parseInt(pagesTotalInput.value || totalPages));
const pages = Math.round((clamped / 100) * parseInt(pagesTotalInput.value || totalPages, 10));
pagesReadInput.value = pages;
}
if (pagesBar) pagesBar.style.width = `${clamped}% `;
Expand Down