competitions/templates/index.html [124:138]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const articleLoadingSpinner = document.getElementById('articleLoadingSpinner');
articleLoadingSpinner.classList.remove('hidden');
const requestOptions = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
}
};
fetch(apiEndpoint, requestOptions)
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
competitions/templates/index.html [214:227]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const articleLoadingSpinner = document.getElementById('articleLoadingSpinner');
articleLoadingSpinner.classList.remove('hidden');
const requestOptions = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
}
};
fetch(apiEndpoint, requestOptions)
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -