console debug
This commit is contained in:
@ -23,4 +23,4 @@
|
||||
<script src="index.js" type="text/javascript"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
6
index.js
6
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();
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user