Death Date Calculator code here it is
How you can make a Death date calculator here is the answer you can make apps in HTML and CSS and Python and also with javascript here is the HTML Code
"<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Death Date Predictor</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background: #111;
color: #fff;
font-family: 'Segoe UI', sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
}
.container {
width: 90%;
max-width: 400px;
background: #1b1b1b;
padding: 25px;
border-radius: 15px;
box-shadow: 0 0 20px #ff0040aa;
}
h1 {
text-align: center;
color: #ff0040;
margin-bottom: 20px;
}
label {
margin-top: 10px;
display: block;
font-size: 14px;
}
input, select {
width: 100%;
padding: 10px;
border: none;
border-radius: 8px;
font-size: 16px;
margin: 5px 0 15px;
}
button {
width: 100%;
padding: 12px;
font-size: 16px;
background-color: #ff0040;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
}
button:hover {
background-color: #cc0033;
}
.output {
margin-top: 20px;
font-size: 17px;
text-align: center;
}
.ad-placeholder {
margin-top: 20px;
height: 60px;
background: #222;
color: #888;
font-size: 14px;
text-align: center;
line-height: 60px;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>🕯️ Death Date Predictor</h1>
<label for="name">Your Name</label>
<input type="text" id="name" placeholder="John Doe">
<label for="age">Current Age</label>
<input type="number" id="age" placeholder="e.g. 25">
<label for="lifestyle">Lifestyle</label>
<select id="lifestyle">
<option value="healthy">Very Healthy</option>
<option value="average">Average</option>
<option value="risky">Risky</option>
<option value="chaotic">Wild & Chaotic</option>
</select>
<button onclick="predict()">Reveal My Fate</button>
<div class="output" id="result"></div>
<div class="ad-placeholder">AdMob Banner Placeholder</div>
</div>
<script>
function predict() {
const name = document.getElementById("name").value;
const age = parseInt(document.getElementById("age").value);
const lifestyle = document.getElementById("lifestyle").value;
const output = document.getElementById("result");
if (!name || isNaN(age) || age < 1 || age > 120) {
output.innerHTML = "Please enter valid details.";
return;
}
let baseLife = 90;
if (lifestyle === "healthy") baseLife += 5;
else if (lifestyle === "risky") baseLife -= 10;
else if (lifestyle === "chaotic") baseLife -= 20;
const twist = Math.floor(Math.random() * 10 - 5);
const deathAge = baseLife + twist;
const yearsLeft = deathAge - age;
const now = new Date();
const deathDate = new Date();
deathDate.setFullYear(now.getFullYear() + yearsLeft);
deathDate.setHours(Math.floor(Math.random() * 24));
deathDate.setMinutes(Math.floor(Math.random() * 60));
output.innerHTML = `
👁️ <b>${name}</b>, your journey may end on:<br>
📅 <b>${deathDate.toDateString()}</b><br>
🕛 <b>${deathDate.toLocaleTimeString()}</b><br>
🕯️ Choose your path wisely...
`;
}
</script>
</body>
</html>
<script>
document.addEventListener('deviceready', function() {
admob.banner.config({
id: 'ca-app-pub-5421028924346626/5246532759',
isTesting: false,
autoShow: true
});
admob.banner.prepare();
}, false);
</script>"

0 Comments