Yeah, the new code is doing that now, the function is still just named autoAdvance
, you could rename it. If you want to edit the position or styling of the indicator, edit this part in the above code:
function answerFunc() {
// Add indicator element into a fixed position
const indicator = document.createElement("div");
indicator.style.position = "fixed";
// Positioned at bottom right corner
indicator.style.bottom = "0";
indicator.style.right = "0";
// Size
indicator.style.padding = "10px";
// Black with 50% opacity
indicator.style.background = "rgba(0,0,0,0.5)";
// Large border to make the element circular
indicator.style.borderRadius = "99px";
document.body.appendChild(indicator);
}