gerador de versos

Gerador versos!


<!DOCTYPE html>

<html>

<head>

<title>Roleta de Versos</title>

<style>

#verso {

width: 200px;

height: 200px;

border: 1px solid black;

margin: 20px auto;

text-align: center;

line-height: 200px;

font-size: 24px;

}

</style>

</head>

<body>

<div id="verso">

Clique no botão para gerar um verso!

</div>

<button onclick="gerarVerso()">Gerar Versos</button>


<script src="script.js"></script>

<script>

var versos = [

"Verso 1",

"Verso 2",

"Verso 3",

"Verso 4",

"Verso 5"

];


function gerarVerso() {

var index = Math.floor(Math.random() * versos.length);

var verso = versos[index];

document.getElementById("verso").innerHTML = verso;

}

</script>

</body>

</html>

Auto click hacker

<!DOCTYPE html>

<html>

<head>

<script>

function autoClick() {

    // Selecionando o elemento do link para clicar automaticamente

    var link = document.querySelector('a');


    // Simulando o clique automático

    link.click();

}


// Chamando a função de auto clique assim que a página for carregada

window.onload = autoClick;

</script>

</head>

<body>

<!-- Exemplo de link para clique automático -->

<a href="https://psicografandoflorbelaespanca.blogspot.com/">Clique Aqui</a>

</body>

</html>