Clean up logs

This commit is contained in:
2026-07-28 21:47:13 +10:00
parent 8014e4692e
commit 68888e01d2
5 changed files with 0 additions and 20 deletions
@@ -375,12 +375,10 @@ const dropzone = new Dropzone("#uploadForm", {
this.on("addedfile", function(file) {
totalFiles++;
console.log(`Added file: ${file.name}. Total files: ${totalFiles}`);
});
this.on("success", function(file, response) {
completedFiles++;
console.log(`Upload successful: ${file.name}. Completed: ${completedFiles}/${totalFiles}`);
file.previewElement.classList.add('dz-success');
});
@@ -392,9 +390,7 @@ const dropzone = new Dropzone("#uploadForm", {
});
this.on("queuecomplete", function() {
console.log("Queue complete. All files processed.");
if (completedFiles === totalFiles) {
console.log("All files uploaded successfully. Reloading page...");
setTimeout(() => {
location.reload();
}, 1000);
@@ -555,7 +555,6 @@ async function fetchPlaylist() {
loadSong(0);
isMusicPlaying = true;
} else {
console.log('No music files available');
isMusicPlaying = false;
updateMusicDisplay();
}
@@ -571,7 +570,6 @@ async function fetchPlaylist() {
function loadSong(index) {
if (!activePlaylist || activePlaylist.length === 0) {
console.log('No songs in active playlist');
isMusicPlaying = false;
updateMusicDisplay();
return;
@@ -653,7 +651,6 @@ backgroundMusic.addEventListener('ended', () => {
if (activePlaylist && activePlaylist.length > 0) {
// Move to next song in playlist
currentSongIndex = (currentSongIndex + 1) % activePlaylist.length;
console.log('play Next song:', activePlaylist[currentSongIndex]);
loadSong(currentSongIndex);
if (isMusicPlaying && isPlaying) {
backgroundMusic.play().catch(error => {
-5
View File
@@ -42,8 +42,6 @@
const taskHash = this.getAttribute('data-hash');
const linkId = {{ link.id }};
console.log('Toggling task:', taskHash, 'for link:', linkId);
try {
const response = await fetch(`/link/${linkId}/toggle_task/`, {
method: 'POST',
@@ -54,13 +52,10 @@
});
const data = await response.json();
console.log('Response:', response.status, data);
if (!response.ok) {
this.checked = !this.checked;
console.error('Failed to update task state:', data);
} else {
console.log('Task updated successfully:', data);
}
} catch (error) {
this.checked = !this.checked;
@@ -729,9 +729,6 @@
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.5.1/dist/chart.umd.min.js"></script>
<script>
console.log('🔥 FIRE Planning JavaScript loaded!');
console.log('Chart.js available:', typeof Chart !== 'undefined');
let netWorthChart = null;
let monteCarloChart = null;
-5
View File
@@ -114,9 +114,6 @@
<script>
document.addEventListener('DOMContentLoaded', function () {
// Debug message
console.log('Script is running');
// Define colors for tags - using colors from the image
const tagColors = [
'#3498db', // blue
@@ -135,13 +132,11 @@
// Apply colors to tag cards
const tagCards = document.querySelectorAll('.tag-card');
console.log('Found tag cards:', tagCards.length);
tagCards.forEach((card, index) => {
const randomColor = tagColors[Math.floor(Math.random() * tagColors.length)];
card.style.backgroundColor = randomColor;
card.style.color = 'white';
console.log('Applied color:', randomColor, 'to card index:', index);
});
// Initialize ECharts instance