|
|
@ -83,3 +83,12 @@ typedValueElement.addEventListener('input', (e) => {
|
|
|
|
typedValueElement.className = 'error';
|
|
|
|
typedValueElement.className = 'error';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add this at the end of the file
|
|
|
|
|
|
|
|
const messages = {
|
|
|
|
|
|
|
|
success: "CONGRATULATIONS! You finished in {seconds} seconds.",
|
|
|
|
|
|
|
|
error: "Oops! There's a mistake.",
|
|
|
|
|
|
|
|
start: "Start typing to begin the game."
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default messages;
|
|
|
|