Let’s take Rishi Sunak as an example: he has just taken office, the new British Prime Minister, and has thus escaped the scrutiny of world public opinion. But everyone is still amazed at…well, how great (or not) the British Prime Minister is.
What do you value?
And? Bigger…or smaller than expected?
Well, politicians are usually only known for press photos that show them in a formal, staged environment. In such pictures, they are often on a podium, behind lecterns, etc., and the cameraman shoots from bottom to top, which generally makes people appear taller. Logically.
As banal as the question may seem, when he took office last fall, the Google questions “Rishi Sunak height” skyrocketed — ahem. The tenor: “Boahhh it’s crazy how small it is!”
today i found out rishi sunak is short in fact and i cry WHY DID I THOUGHT HE WAS TALL pic.twitter.com/RX2dpVhDq3
— julia 🫧 (@huibane_) October 26, 2022
According to the Telegraph, Simon Clarke faces the chop from Rishi Sunak’s cabinet.
No idea why that could be… pic.twitter.com/wbcsMmXOJn
— Ross McCafferty (@RossMcCaff) October 25, 2022
OK, 1.70 meters isn’t exactly big. Smaller than, for example, the British or Swiss average. For comparison:
“; questionContent += “
“; reviewQuestions[idx].innerHTML = question content; } // Update value in text element var allSliders = document.getElementsByClassName(‘questionSlider’); Array.prototype.forEach.call(allSliders, function (slider) { // Loop over each element to .oninput function slider.oninput = function (event) { var idx = slider.getAttribute(‘idx’); // now update according to span document.getElementById(‘r’ + idx + ‘-my’).innerHTML = formatText(this.value);} }); return reviewQuestions; } const roundedStartMean = Math.round((min + max) / 2); for (var idx = 0; idx < poll.length; idx++) { poll[idx].push(roundedStartAverage); } image URLs = []; average URLs = []; 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);
var key = "slider-quiz" + projectId.toString() + "-" + (idx + 1).toString();
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 => { // loop over data for (var idx = 0; idx < data.length; idx++) {
var pictureCredit = "Bild: " + data[idx].data.credit;
questionList[idx][4] = pictureCredit;
}
reviewQuestions = createQuestionContent(reviewQuestions)
})
.catch(error => console.error(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 < data.length; idx++) { const keys = Object.keys(data[idx].facts); const values = Object.values(data[idx].facts); if (keys.length != 0) { // transform keys to numbers for (let i = 0; i < keys.length; i++) { keys[i] = parseInt(keys[i]); } let the 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); questionList[idx][5] = mean; reviewQuestions = createQuestionContent(reviewQuestions) } } }).catch(error => console.error(error)); // Create add-ons for each question var reviewQuestions = document.getElementsByClassName(‘reviewQuestion’); // Check if the same length if (reviewQuestions.length != questionList.length) { console.log(“questionList must be the same length as number of divs (list: ” + questionList.length + “, divs: ” + reviewQuestions .length + “)!”) } function formatText(text) { if (text % 1 === 0) { return text.toString(); } else { return text.toFixed(2).toString(); } } reviewQuestions = createQuestionContent(reviewQuestions) function sendData(questionId, noReview = false) { let dataToSend = { ‘questionId’: questionId, ‘version’: 0.9, ‘projectId’: projectId }; if (noReview) { // just get the average dataToSend[‘userInput’] = zero; document.querySelector(“#r” + questionId + “-my”).innerHTML = “-“; document.querySelector(“#s” + questionId + “-slider”).classList.add(‘rangeOut’); } else { // send my review let valSlider = document.querySelector(“#s” + questionId + “-slider”).value; dataToSend[‘userInput’] = parseFloat(valSlider); const key = “slider quiz” + projectId.toString() + “-” + (questionId + 1).toString(); 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 as (user_id) { value = { user: user_id, value: dataToSend[‘userInput’]
}; } else { value = { user: jwt_free_token, value: dataToSend[‘userInput’]
}; } let options = { 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” + questionId + “-wtsn”).innerHTML = formatText(questionList[
questionId][5]); document.querySelector(“#r” + questionId + “-co2”).innerHTML = formatText(questionList[
questionId][1]); document.querySelector(“#wtsnMean-” + questionId).style.display = ‘inline’; document.querySelector(“#wtsnMean-” + questionId).style.left = (0.88 * ((questionList[questionId][5] – min) * 100 / (max – min)) + 5) + “%”; // set document.querySelector(“#wtsnMean-” + questionId).style.left to the value of the mean in the slider document.querySelector(“#wtsnMean-” + questionId).style.display = ‘inline’; // Put needed co2 document.querySelector(“#co2-” + questionId).style.left = (0.88 * ((questionList[questionId][1] – min) * 100 / (max – min)) + 5) + “%” document.querySelector(“#co2-” + questionId).style.display = ‘inline’; // toggle button document.querySelector(“#btnRate-” + questionId).disabled = true; document.querySelector(“#btnView-” + questionId).disabled = true; // Disable slider document.querySelector(“#s” + questionId + “-slider”).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.
On the same day of the terrorist attack on the Krokus City Hall in Moscow,…
class="sc-cffd1e67-0 iQNQmc">1/4Residents of Tenerife have had enough of noisy and dirty tourists.It's too loud, the…
class="sc-cffd1e67-0 iQNQmc">1/7Packing his things in Munich in the summer: Thomas Tuchel.After just over a year,…
At least seven people have been killed and 57 injured in severe earthquakes in the…
The American space agency NASA would establish a uniform lunar time on behalf of the…
class="sc-cffd1e67-0 iQNQmc">1/8Bode Obwegeser was surprised by the earthquake while he was sleeping. “It was a…