Skip to content

Commit

Permalink
Removendo atualização automática e código não utilizado.
Browse files Browse the repository at this point in the history
  • Loading branch information
avictormorais committed Jul 16, 2024
1 parent 2603866 commit 99b5289
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 222 deletions.
13 changes: 0 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,6 @@ addEventListener("DOMContentLoaded", (event) => {
path: 'styles/paint.json'
});

//// atualizar poster ao algum input ser alterado
let timeoutId;
document.querySelectorAll('input:not(#buscaAlbum)').forEach(input => {
input.addEventListener('input', () => {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
atualizarCapa(albumAtual.images[0].url, false);
}, 500);
});
});

document.getElementById('inputTamanhoTitulo').value = '200'
document.getElementById('inputTamanhoArtista').value = '110'
document.getElementById('inputTamanhoMusica').value = '50'
Expand Down Expand Up @@ -106,7 +95,6 @@ addEventListener("DOMContentLoaded", (event) => {
inputAtual.querySelector('h2').innerHTML = cor
document.getElementById(inputAtual.dataset.display).style.backgroundColor = cor
menu.style.display = "none";
atualizarCapa(albumAtual.images[0].url, false)
});

document.getElementById('baixar').addEventListener('click', (event) => {
Expand Down Expand Up @@ -185,7 +173,6 @@ addEventListener("DOMContentLoaded", (event) => {
inputAtual.querySelector('h2').innerHTML = color
document.getElementById(inputAtual.dataset.display).style.backgroundColor = color
menu.style.display = "none";
atualizarCapa(albumAtual.images[0].url, false)
});

function rgbToHex(r, g, b) {
Expand Down
209 changes: 0 additions & 209 deletions scripts/index.js

This file was deleted.

0 comments on commit 99b5289

Please sign in to comment.