Not sure if this is what you wanted to achieve and if it works for you, but test it out and do your own corrections on it, if it doesn’t work as expected…
var currentData
$w.onReady(()=>{
refresh_repeater()
$w('#repeater1').onItemReady(($item, itemData, index) => {console.log("Repeater-Ready")
$item("#image10").src = itemData.src;
$item("#text43").text = itemData.title
$item("#text45").text = itemData.description
$item("#image10").onClick((event) => {console.log("Image10-clicked")
if ($item('#box3').hidden) {console.log("IF-statement-running")
$item('#box8').hide()
$item("#box3").show()
currentData = itemData
console.log(currentData)
}
else {console.log("ELSE-statement-running")
$item('#box3').hide()
$item('#box8').show()
}
})
})
})
function refresh_repeater(){console.log("Refresh-function running")
wixData.query("Modeles")
.find()
.then((modeles) => {
$w('#repeater1').data = modeles.items
})
}