So like below?
Here is a pretest link to the page:
https://www.soscisurvey.de/animals_and_people/?act=sZfdEWkGjcukZn1ewDgu3VdW
<div style="position: absolute; top: 21.5%; left: 50%; transform: translate(-50%, -50%); font-size:70px; color:#FF0000; font-weight:bold;" id="wrong">X</div>
<script type="text/javascript">
<!--
document.getElementById("wrong").style.display = "none";
var IA01 = [1,2,3,4]
function showContent()
{
var content = document.getElementById("wrong");
// restore the normal display mode
content.style.display = "";
/// start the timer
window.setTimeout(function()
{
// Hide
content.style.display = "none";
}, 300); // 300ms
}
function selFilter(item, option)
{
var itemID = String(item);
if (itemID.length < 2) itemID = "0" + itemID;
if ( (IA01.indexOf(item) == -1) && (option == 1))
{
// Show feedback
showContent()
// Store result in variable. 0 = wrong
console.log("IV01_"+ itemID);
document.getElementById("IV01_"+ itemID).value = "0";
else if ( (IA01.indexOf(item) != -1) && (option == 2))
{
// Show feedback and ignore answer
showContent ()
// Store result in variable. 0 = wrong
console.log("IV01_"+ itemID);
document.getElementById("IV01_"+ itemID).value = "0";
return 0;
}
//otherwise continue with next trial
else
{
// Store result in variable. 1 = correct
console.log("IV01_"+ itemID);
document.getElementById("IV01_"+ itemID).value = "1";
return 0;
}
}
SoSciTools.attachEvent(window, "load", function() {
assignmentIA01.setCallbackSelect(selFilter);
});
// -->
</script>