Pequerruchos vs Paco o Marinheiro vs JunyTony - Quem vai ganhar?
About this app
Os Pequerruchos, Paco o Marinheiro e JunyTony estão competindo! Descubra quem vai ganhar nessa batalha épica.
Pequerruchos vs Paco o Marinheiro vs JunyTony - Quem vai ganhar?
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Pequerruchos vs Paco o Marinheiro vs JunyTony - Quem vai ganhar?</title>
<meta name="description" content="Os Pequerruchos, Paco o Marinheiro e JunyTony estão competindo! Descubra quem vai ganhar nessa batalha épica.">
<meta name="keywords" content="Pequerruchos, Paco o Marinheiro, JunyTony, batalha, competição, ganhar">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Get the main container
const mainContainer = document.getElementById('main-container');
// Create the heading
const heading = document.createElement('h1');
heading.innerText = 'Pequerruchos vs Paco o Marinheiro vs JunyTony - Quem vai ganhar?';
// Create the image container
const imageContainer = document.createElement('div');
imageContainer.classList.add('d-flex', 'justify-content-around');
// Create image elements for each contender
const pequerruchosImage = document.createElement('img');
pequerruchosImage.src = 'https://example.com/pequerruchos.png';
pequerruchosImage.alt = 'Os Pequerruchos';
const pacoImage = document.createElement('img');
pacoImage.src = 'https://example.com/paco.png';
pacoImage.alt = 'Paco o Marinheiro';
const junytonyImage = document.createElement('img');
junytonyImage.src = 'https://example.com/junytony.png';
junytonyImage.alt = 'JunyTony';
// Append the images to the image container
imageContainer.appendChild(pequerruchosImage);
imageContainer.appendChild(pacoImage);
imageContainer.appendChild(junytonyImage);
// Create the result section
const resultSection = document.createElement('div');
resultSection.classList.add('mt-4');
// Create a random number between 1 and 3 to determine the winner
const winnerNumber = Math.floor(Math.random() * 3) + 1;
let winnerName = '';
let winnerImageSrc = '';
// Set the winner name and image source based on the random number
if (winnerNumber === 1) {
winnerName = 'Os Pequerruchos';
winnerImageSrc = pequerruchosImage.src;
} else if (winnerNumber === 2) {
winnerName = 'Paco o Marinheiro';
winnerImageSrc = pacoImage.src;
} else {
winnerName = 'JunyTony';
winnerImageSrc = junytonyImage.src;
}
// Create the winner message
const winnerMessage = document.createElement('p');
winnerMessage.innerHTML = `O vencedor é: <strong>${winnerName}</strong>! Parabéns!`;
// Create the winner image
const winnerImage = document.createElement('img');
winnerImage.src = winnerImageSrc;
winnerImage.alt = winnerName;
// Append the winner message and image to the result section
resultSection.appendChild(winnerMessage);
resultSection.appendChild(winnerImage);
// Append the heading, image container, and result section to the main container
mainContainer.appendChild(heading);
mainContainer.appendChild(imageContainer);
mainContainer.appendChild(resultSection);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f1f1f1;
font-family: 'Roboto', sans-serif;
}
h1 {
color: #333;
text-align: center;
margin-top: 40px;
}
.d-flex {
display: flex;
}
.justify-content-around {
justify-content: space-around;
}
.mt-4 {
margin-top: 20px;
}
p {
color: #666;
font-size: 20px;
text-align: center;
margin-bottom: 10px;
}
strong {
color: #333;
}
img {
width: 200px;
height: 200px;
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
</div>
</body>
</html>
NEW APPS
These are apps made by the community!