Geral
Inglês
Semana 6
0

Questão

Choose the alternative that shows how to start a conversation.  

A)

Yes, you’re right! 

B)

Excuse me, are you from this city? 

C)

Here’s my phone number. 

D)

See you at lunch. 

E)

Did you find the equipment? 

function vote(questaoId, value) { window.location.href = "/accounts/login/?next=/questao/3862/"; return; fetch(`/vote/questao/${questaoId}/`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-CSRFToken': 'kzrJFmDxevvYw4xgLBUWV3DU9WIK2FWf6dDJyaoAlX28pmocQL8w55QhrsZTgici' }, body: JSON.stringify({ value: value }) }) .then(response => response.json()) .then(data => { if (data.success) { document.getElementById(`score-${questaoId}`).textContent = data.score; const upBtn = document.querySelector(`button[onclick="vote(${questaoId}, 1)"]`); const downBtn = document.querySelector(`button[onclick="vote(${questaoId}, -1)"]`); upBtn.classList.remove('active-up'); downBtn.classList.remove('active-down'); if (data.user_vote === 1) upBtn.classList.add('active-up'); if (data.user_vote === -1) downBtn.classList.add('active-down'); } }); }