Processador
AMD Ryzen 7 7600X
Placa Mãe
AM5 B650M Pro DDR5
Memória RAM
16GB DDR5 5600MHz
Placa de Vídeo
RTX 5060 GDDR7 8GB 128bit
Armazenamento
NVMe 1TB Kingston NV3
6000MB/s leitura, 4000MB/s escrita
Gabinete
Fortrek Clarity Max
Water Cooler
Fortrek Breezy RGB
const btnAdd = document.getElementById('btn-add');
btnAdd.addEventListener('click', () => {
const adicionarWin = document.getElementById('add-win').checked;
const urlProdutoOriginal = 'https://www.ciainfor.com.br/carrinho/produto/369103192/adicionar';
const urlProdutoGamer = 'carrinho/produto/350312986/adicionar';
const originalText = btnAdd.innerHTML;
const loadingText = btnAdd.getAttribute('data-loading-text');
btnAdd.innerHTML = loadingText;
btnAdd.disabled = true;
function postProduto(url, body = null) {
return fetch(url, {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: body ? JSON.stringify(body) : null,
credentials: 'include'
}).then(res => {
if (!res.ok) throw new Error(`Erro ao adicionar produto: ${url}`);
return res.json();
});
}
Promise.all([
postProduto(urlProdutoOriginal),
postProduto(urlProdutoGamer, {windows: adicionarWin})
])
.then(() => {
alert('Produtos adicionados ao carrinho com sucesso!');
location.reload();
})
.catch((err) => {
console.error(err);
alert('Erro ao adicionar os produtos ao carrinho.');
btnAdd.innerHTML = originalText;
btnAdd.disabled = false;
});
});