From cd9e1887406a075b4a995b708880a7e0e5843dfe Mon Sep 17 00:00:00 2001 From: Yanis Rigaudeau Date: Tue, 1 Jul 2025 01:27:03 +0200 Subject: [PATCH] console debug --- index.html | 2 +- index.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 8654204..48e4c9a 100644 --- a/index.html +++ b/index.html @@ -23,4 +23,4 @@ - \ No newline at end of file + diff --git a/index.js b/index.js index d5942a2..69fd445 100644 --- a/index.js +++ b/index.js @@ -2,11 +2,12 @@ const body = document.getElementById('body') const media = document.querySelector("video"); const sun = document.getElementById('sun') +let audioSource = null; +let filter = null; + let saturation = 1; let freq = 1000; let gain = 0; -let audioSource = null; -let filter = null; function showVideo() { sun.style.display = 'none'; @@ -48,6 +49,7 @@ sun.addEventListener('click', (event) => { media.play(); media.style.filter = `saturate(${saturation})`; + console.debug(`saturation: ${saturation} / lowFreq: ${freq} / gain: ${gain}`); increaseValues(); })