Calculator Tools Calculator Tools
Create

Pequerruchos vs Paco vs JunyTony

Jan 3, 2024

About this app

Vote for your favorite contestant in the Pequerruchos vs Paco vs JunyTony competition

Pequerruchos vs Paco vs JunyTony Pequerruchos vs Paco vs JunyTony Pequerruchos Vote 0 Paco Vote 0 JunyTony Vote 0

Related apps

Put this on your site

Source

                    <!DOCTYPE html>
<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 vs JunyTony</title>
<meta name="description" content="Vote for your favorite contestant in the Pequerruchos vs Paco vs JunyTony competition">
<meta name="keywords" content="pequerruchos, paco, junytony, competition, vote">

<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">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" 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() {
// Variables to store the vote counts
let pequerruchosVotes = 0;
let pacoVotes = 0;
let junytonyVotes = 0;

// Function to update the vote counts on the screen
function updateVoteCounts() {
$("#pequerruchos-votes").text(pequerruchosVotes);
$("#paco-votes").text(pacoVotes);
$("#junytony-votes").text(junytonyVotes);
}

// Function to handle the vote button click
function vote(contestant) {
if (contestant === "pequerruchos") {
pequerruchosVotes++;
} else if (contestant === "paco") {
pacoVotes++;
} else if (contestant === "junytony") {
junytonyVotes++;
}

updateVoteCounts();
}

// Event listeners for vote buttons
$("#vote-pequerruchos").click(function() {
vote("pequerruchos");
});

$("#vote-paco").click(function() {
vote("paco");
});

$("#vote-junytony").click(function() {
vote("junytony");
});
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
font-family: 'Roboto', sans-serif;
background-color: #f4f4f4;
}

.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
text-align: center;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
margin-top: 0;
}

.contestant {
margin-bottom: 20px;
}

.contestant img {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 10px;
}

.contestant-name {
font-size: 20px;
font-weight: bold;
}

.vote-button {
background-color: #4caf50;
color: #fff;
border: none;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}

.vote-button:hover {
background-color: #45a049;
}

.vote-count {
font-size: 24px;
margin-top: 10px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Pequerruchos vs Paco vs JunyTony</h1>

<div class="contestant">
<img src="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/smiling-face-with-heart-shaped-eyes_1f60d.png" alt="Pequerruchos">
<div class="contestant-name">Pequerruchos</div>
<button id="vote-pequerruchos" class="vote-button">Vote</button>
<div id="pequerruchos-votes" class="vote-count">0</div>
</div>

<div class="contestant">
<img src="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/smiling-face-with-sunglasses_1f60e.png" alt="Paco">
<div class="contestant-name">Paco</div>
<button id="vote-paco" class="vote-button">Vote</button>
<div id="paco-votes" class="vote-count">0</div>
</div>

<div class="contestant">
<img src="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/smiling-face-with-horns_1f608.png" alt="JunyTony">
<div class="contestant-name">JunyTony</div>
<button id="vote-junytony" class="vote-button">Vote</button>
<div id="junytony-votes" class="vote-count">0</div>
</div>
</div>
</body>
</html>