Fun Period Tracker
About this app
A fun and colorful period tracker app.
Fun Period Tracker 🌺 Fun Period Tracker 🌺 Add Date
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>Fun Period Tracker</title>
<meta name="description" content="A fun and colorful period tracker app.">
<meta name="keywords" content="period, tracker, health, women, calendar">
<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://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
<script type="text/javascript">
try {
let periodDates = JSON.parse(localStorage.getItem('periodDates')) || [];
function addDate() {
let date = document.getElementById('dateInput').value;
if (date) {
periodDates.push(date);
localStorage.setItem('periodDates', JSON.stringify(periodDates));
displayDates();
}
}
function displayDates() {
let datesContainer = document.getElementById('datesContainer');
datesContainer.innerHTML = '';
periodDates.forEach((date, index) => {
datesContainer.innerHTML += `<div class="date-item">${date} <span class="delete" onclick="deleteDate(${index})">🗑️</span></div>`;
});
}
function deleteDate(index) {
periodDates.splice(index, 1);
localStorage.setItem('periodDates', JSON.stringify(periodDates));
displayDates();
}
document.addEventListener("DOMContentLoaded", function() {
displayDates();
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(45deg, #f06, #f79);
font-family: 'Pacifico', cursive;
color: #fff;
}
#main-container {
text-align: center;
padding: 50px 0;
}
#dateInput {
margin-bottom: 20px;
}
.date-item {
margin-bottom: 10px;
}
.delete {
cursor: pointer;
margin-left: 10px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>🌺 Fun Period Tracker 🌺</h1>
<input type="date" id="dateInput" class="form-control">
<button onclick="addDate()" class="btn btn-primary">Add Date</button>
<div id="datesContainer"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!