alyssa-vday/sean/index.html
2024-08-15 19:41:24 -04:00

38 lines
967 B
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Happy Valentine's Day!</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>
Happy <a href="sean.pdf">Valentine's</a> Day N<span id="noSelect" onclick="clickSolve()" onselectstart="return false" >e</span>rd!
</h1>
<img id="puzzle" class="flip" onclick="clickSolve()" src="sean-nosolve.png" alt="" />
<div id="button">
<button onclick="flip()">Flip</button>
</div>
<script>
let count = 0
function clickSolve() {
count += 1;
console.log(count);
if (count >= 10 ) document.getElementById('puzzle').src = 'sean-solve.png';
}
function flip(){
console.log('flip')
document.getElementById('puzzle').classList.remove("flip")
}
</script>
</body>
</html>