“Forbes Magazine” presents the list of the highest-paid actresses and actors of 2023. While some rankings hardly surprised us, other stars and starlets provide a certain surprise in the top 10.
How much do you estimate who earns how much?
“; questionContent += “
” + “” + “
`; reviewQuestions[idx].innerHTML = queryContent; } // Update value in text element var allSliders = document.getElementsByClassName(‘questionSlider’); Array.prototype.forEach.call(allSliders, function (slider) { // Loop over each element to attach the .oninput function slider.oninput = function (event) { var idx = slider.getAttribute(‘idx’); // now update according to span document.getElementById(‘r’ + idx + ‘-my’).innerHTML = Math.round(this.value).toString().replace(/B(?=(d{3 })+ (?!d))/g, “‘”); } }); back reviewQuestions; } const roundStartMean = Math.round(((min + max) / 2) * 100) / 100; for (var idx = 0; idx[idx][5] = roundedStartAverage; } imageUrls = []; averageUrls = []; for (var idx = 0; idx < questionList.length; idx++) {
var id = questionList[idx][3].split("https://www.watson.ch/").pop();
var picutreUrl = "https://www.watson.ch/api/2.0/images/" + id;
pictureUrls.push(picutreUrl);
cleanKey = questionList[idx][0].replace(/[^a-zA-Z0-9]/g, "");
var key = "slider-quiz" + projectId.toString() + "-" + cleanKey;
var apiUrlWatsonMean = "https://www.watson.ch/api/2.0/key-values/" + key + "/histogram";
averageUrls.push(apiUrlWatsonMean);
}
Promise.all(
pictureUrls.map(url =>
fetch(url) .then(response => response.json()) .catch(error => console.error(error)) ) ) .then(data => { console.log(data); for (var idx = 0; ID < data.length; idx++) {
if (questionList[idx][4] != "") {
questionList[idx][4] = "Bild: " + questionList[idx][4];
} else {
if (data[idx].data.source != null && data[idx].data.source != "") {
var pictureCredit = "Bild: " + data[idx].data.source;
questionList[idx][4] = pictureCredit;
} else {
questionList[idx][4] = "";
}
}
}
reviewQuestions = createQuestionContent(reviewQuestions)
})
.catch(error => console.error(‘image’, error)); Promise.all( AverageUrls.map(url => fetch(url) .then(response => response.json()) .catch(error => console.error(error)) ) ) .then(data => { / / loop over data for (var idx = 0; idx[idx].facts); const values = Object.values(data[idx].facts); if (keys.length != 0) { // transform keys to numbers for (let i = 0; i < key.length; i++) { keys[i] = parseInt(keys[i]); } let sum = 0; for (let i = 0; i < keys.length; i++) {
sum += keys[i] * values[i];
}
average = sum / values.reduce((acc, curr) => acc + current, 0); average = Math.round(average * 100) / 100; questionList[idx][5] = average; questionList[idx][6] = keys; questionList[idx][7] = values; reviewQuestions = createQuestionContent(reviewQuestions) } } // create a copy of question list var question listCopy = question list.slice(0); // sort the queryList by the average queryListCopy.sort(function (a, b) { return b[5] – A[5]; }); }) .catch(error => console.error(error)); var reviewQuestions = document.getElementsByClassName(‘reviewQuestion’); if (reviewQuestions.length != QuestionList.length) { console.log(“questionList must be the same length as the number of divs (list: ” + QuestionList.length + “, divs: ” + reviewQuestions.length + “)! “) } reviewQuestions = createQuestionContent(reviewQuestions) function sendData(questionId, noReview = false) { cleanKey = questionId.replace(/[^a-zA-Z0-9]/G, “”); // find questionId in questionList with cleanKey for (var idx = 0; idx < questionList.length; idx++) {
if (questionList[idx][0].replace(/[^a-zA-Z0-9]/g, "") == cleanKey) {
questionId = idx;
break;
}
}
let dataToSend = {
'questionId': cleanKey,
'version': 0.9,
'projectId': projectId
};
if (noReview) { // just get the mean
dataToSend['userInput'] = null;
document.querySelector("#r" + cleanKey + "-my").innerHTML = "-";
} else { // send my review
let valSlider = document.querySelector("#s" + cleanKey + "-slider-input").value;
dataToSend['userInput'] = parseFloat(valSlider);
const key = "slider-quiz" + projectId.toString() + "-" + cleanKey;
const jwt_token = localStorage.getItem("jwt_token");
const jwt_free_token = localStorage.getItem("jwt_free_token");
const user_id = localStorage.getItem("user_id");
let value
if (user_id) {
value = {
user: user_id,
value: dataToSend['userInput']
};
} else {
value = {
user: jwt_free_token,
value: dataToSend['userInput']
};
}
let optionen = {
method: 'post',
body: JSON.stringify(dataToSend)
};
fetch(`https://www.watson.ch/api/2.0/key-values/${key}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${jwt_free_token}`
},
body: JSON.stringify(value)
})
.then(response => response.json()) .catch(error => console.error(error)); } document.querySelector(“#r” + cleanKey + “-wtsn”).innerHTML = Math.round(query[questionId][5]).toString().replace(/B(?=(d{3})+(?!d))/g, “‘”) document.querySelector(“#r” + cleanKey + “-co2 “).innerHTML = Math.round(questionnaire[questionId][1]).toString().replace(/B(?=(d{3})+(?!d))/g, “‘”) solutionsSlider = document.getElementById(“s” + cleanKey + “- slider solution”) solutionSlider.style.display = ‘block’; SolutionSlider.value = questionsList[questionId][1]; meanSlider = document.getElementById(“s” + cleanKey + “-slider-watson-mean”) meanSlider.style.display = ‘block’; meanSlider.value = questionnaire[questionId][5] * 100; document.querySelector(“#btnRate-” + cleanKey).disabled = true; document.querySelector(“#btnView-” + cleanKey).disabled = true; document.querySelector(“#s” + cleanKey + “-slider-input”).disabled = true; }
Source: Watson

I am Dawid Malan, a news reporter for 24 Instant News. I specialize in celebrity and entertainment news, writing stories that capture the attention of readers from all walks of life. My work has been featured in some of the world’s leading publications and I am passionate about delivering quality content to my readers.