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(); })