Calculator Tools Calculator Tools
Create

Simulador de JunyTony

Jan 3, 2024

About this app

Simulador de Juny❤Tony de nascimento até Último momento

Simulador de JunyTony Simulador de JunyTony Juny❤Tony de nascimento até Último momento JunyTony's age: Last moment countdown:

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>Simulador de JunyTony</title>
<meta name="description" content="Simulador de Juny❤Tony de nascimento até Último momento">
<meta name="keywords" content="Simulador, JunyTony, Juny, Tony, Amor">

<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.
document.addEventListener("DOMContentLoaded", function() {
// Constants
const birthDate = new Date('2020-01-01');
const currentDate = new Date();
const millisecondsInDay = 24 * 60 * 60 * 1000;

// Calculate JunyTony's age
const age = Math.floor((currentDate - birthDate) / millisecondsInDay);

// Display JunyTony's age
const ageContainer = document.getElementById('age');
ageContainer.innerText = age + ' days';

// Countdown to the last moment
const lastMoment = new Date('2050-12-31');
const countdownContainer = document.getElementById('countdown');

function updateCountdown() {
const now = new Date();
const timeLeft = lastMoment - now;

if (timeLeft < 0) {
countdownContainer.innerText = 'The last moment has arrived!';
} else {
const days = Math.floor(timeLeft / millisecondsInDay);
const hours = Math.floor((timeLeft % millisecondsInDay) / (60 * 60 * 1000));
const minutes = Math.floor((timeLeft % (60 * 60 * 1000)) / (60 * 1000));
const seconds = Math.floor((timeLeft % (60 * 1000)) / 1000);

countdownContainer.innerText = days + ' days, ' + hours + ' hours, ' + minutes + ' minutes, ' + seconds + ' seconds';
}
}

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

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

.container {
margin-top: 50px;
text-align: center;
}

h1 {
color: #ff4081;
font-size: 36px;
font-weight: bold;
}

p {
color: #777;
font-size: 18px;
margin-top: 20px;
}

.countdown {
color: #ff4081;
font-size: 24px;
font-weight: bold;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Simulador de JunyTony</h1>
<p>Juny❤Tony de nascimento até Último momento</p>

<p>JunyTony's age: <span id="age"></span></p>

<p>Last moment countdown:</p>
<p class="countdown" id="countdown"></p>
</div>
</body>
</html>