HTML
HTML
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>fototeta?</title>
<style>
body {
background-color: black;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: Arial, sans-serif;
}
h2 {
color: white;
font-size: 24px;
text-align: center;
}
#buttonContainer {
display: flex;
gap: 10px;
margin-top: 20px;
}
.button {
background-color: white;
color: blue;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
}
#naoButton {
position: relative;
}
</style>
</head>
<body>
<h2>fototeta?</h2>
<div id="buttonContainer">
<button class="button" id="simButton">Sim</button>
<button class="button" id="naoButton">Não</button>
</div>
<scri*useenter", () => {
const maxX = window.innerWidth - naoButton.clientWidth;
const maxY = window.innerHeight - naoButton.clientHeight;
const randomX = Math.floor(Math.random() * maxX);
const randomY = Math.floor(Math.random() * maxY);
naoButton.style.position = "absolute";
naoButton.style.left = randomX + "px";
naoButton.style.top = randomY + "px";
});
</script>
</body>
</html>