2024-10-04 16:27:08 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-10-04 16:43:35 +02:00
|
|
|
<link rel="manifest" href="/manifest.json">
|
|
|
|
<link href="css/yt-ukraine.svg" rel="icon">
|
2024-10-04 16:27:08 +02:00
|
|
|
<title>Poke! Calendar</title>
|
2024-10-04 16:58:35 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta content="PokeCalendar" property=og:title>
|
|
|
|
<meta content="Worlds first no js web calendar :3" property=twitter:description>
|
|
|
|
<meta content="https://cdn.glitch.global/d68d17bb-f2c0-4bc3-993f-50902734f652/aa70111e-5bcd-4379-8b23-332a33012b78.image.png?v=1701898829884" property="og:image" />
|
|
|
|
<meta content=summary_large_image name=twitter:card>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
|
|
|
|
<meta name="referrer" content="no-referrer">
|
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #121212;
|
|
|
|
color: #ffffff;
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-10-04 16:43:35 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.navbar {
|
|
|
|
background-color: #333333;
|
|
|
|
padding: 10px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between; /* Aligns items on both ends */
|
|
|
|
align-items: center; /* Centers items vertically */
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.navbar h1 {
|
|
|
|
margin: 0;
|
|
|
|
color: #bb86fc;
|
|
|
|
}
|
2024-10-04 16:43:35 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.navbar .years {
|
|
|
|
color: #bb86fc; /* Year text color */
|
|
|
|
display: flex; /* Use flexbox for alignment */
|
|
|
|
gap: 20px; /* Space between year elements */
|
|
|
|
}
|
2024-10-04 16:43:35 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.container {
|
|
|
|
text-align: center;
|
|
|
|
padding: 20px;
|
|
|
|
background-color: #1e1e1e;
|
|
|
|
border-radius: 10px;
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
|
|
width: 90%;
|
|
|
|
max-width: 800px;
|
|
|
|
margin: auto;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
h2, h3 {
|
|
|
|
color: #bb86fc;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.calendar-table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.calendar-table th, .calendar-table td {
|
|
|
|
padding: 15px;
|
|
|
|
text-align: center;
|
|
|
|
border: 1px solid #333333;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.calendar-table th {
|
|
|
|
background-color: #333333;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.calendar-table td {
|
|
|
|
background-color: #2c2c2c;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.nav-links {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.button {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #ffffff;
|
|
|
|
background-color: #bb86fc;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border-radius: 5px;
|
|
|
|
margin: 0 10px;
|
|
|
|
transition: background-color 0.3s;
|
|
|
|
}
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:51:31 +02:00
|
|
|
.button:hover {
|
|
|
|
background-color: #9c62f3;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-10-04 16:43:35 +02:00
|
|
|
<div class="navbar">
|
2024-10-04 16:59:06 +02:00
|
|
|
<a class="class" href="/143" style=font-family:Inter,sans-serif;color:#fff> <img style="transform: scale(1.3);padding-left:0.9em;width: 8.5em;display: block;margin-left: auto;margin-right: auto;" src="/css/logo-poke.svg?v=5"> </a>
|
2024-10-04 16:43:35 +02:00
|
|
|
<div class="years">
|
|
|
|
<h2>Gregorian Year: <%= year %></h2>
|
|
|
|
<h2>Islamic Year: <%= islamicYear %></h2>
|
|
|
|
<h2>Persian Year: <%= persianYear %></h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-10-04 16:58:35 +02:00
|
|
|
<div class="container" style=" margin-top: 1em;">
|
2024-10-04 16:51:31 +02:00
|
|
|
<table class="calendar-table">
|
|
|
|
<thead>
|
2024-10-04 16:27:08 +02:00
|
|
|
<tr>
|
2024-10-04 16:51:31 +02:00
|
|
|
<th>Sunday</th>
|
|
|
|
<th>Monday</th>
|
|
|
|
<th>Tuesday</th>
|
|
|
|
<th>Wednesday</th>
|
|
|
|
<th>Thursday</th>
|
|
|
|
<th>Friday</th>
|
|
|
|
<th>Saturday</th>
|
2024-10-04 16:27:08 +02:00
|
|
|
</tr>
|
2024-10-04 16:51:31 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% for (let i = 0; i < 6; i++) { %>
|
|
|
|
<tr>
|
|
|
|
<% for (let j = 0; j < 7; j++) { %>
|
|
|
|
<td>
|
|
|
|
<% const day = days[i * 7 + j]; %>
|
|
|
|
<%= day ? day.getDate() : '' %>
|
|
|
|
</td>
|
|
|
|
<% } %>
|
|
|
|
</tr>
|
|
|
|
<% } %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-10-04 16:27:08 +02:00
|
|
|
|
2024-10-04 16:54:44 +02:00
|
|
|
<div class="nav-links">
|
|
|
|
<a href="/calendar?date=<%= new Date(currentDate.getFullYear(), month - 1, 1).toISOString() %>" class="button">Previous Month</a>
|
|
|
|
<a href="/calendar?date=<%= new Date(currentDate.getFullYear(), month + 1, 1).toISOString() %>" class="button">Next Month</a>
|
|
|
|
</div>
|
|
|
|
|
2024-10-04 16:27:08 +02:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|