table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #888888;
}
th, td {
text-align:center;
border: 1px solid #888888;
padding:3px;
position: relative;
height: 40px;
}
th {
background-color:#f8f8f8;
}
table caption{
background-color:#aa272a;
}
table caption a{
text-decoration:none;
color:#000;
}
p.today{
line-height:2;
font-size: 18;
}
div.nenDate {
width:100%;
text-align:center;
font-size:1.1em;
}
div.asMonth {
width:100%;
text-align:right;
font-size:70%;
}
div.asDate {
width:100%;
text-align:right;
font-size:70%;
color:#5C5CFF;
}
.month-header {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
margin: 0px;
padding: 0px;
text-align: center;
background: #c9e265;
}
.english-month-year {
font-size: 20px;
font-weight: bold;
font-family: sans-serif;
text-align: center;
color: #000;
}
.full-table {
width: 100%;
margin: 0;
}
.nCurrentDate{
background-color: #85c1e9;
}
.corner-image {
position: absolute;
top: 3px;
left: 3px;
width: 25px;
height: 25px;
}
.table-row {
display: table-row;
}
.table-cell {
display: table-cell;
border: 1px solid #ddd;
padding: 4px;
}
/* For responsiveness */
@media (max-width: 768px) {
.table {
display: block;
}
.table-row {
display: block;
margin-bottom: 10px;
border: 1px solid #ddd;
}
.table-cell {
display: block;
text-align: left;
border: none;
padding: 6px;
}
// JavaScript to open/close the drawer
const openButton = document.getElementById(“toggleDrawer”);
const closeButton = document.getElementById(“closeDrawer”);
const drawer = document.querySelector(“aside”);
openButton.addEventListener(“click”, () => {
drawer.classList.remove(“-translate-x-full”);
});
closeButton.addEventListener(“click”, () => {
drawer.classList.add(“-translate-x-full”);
});
// Language Button
const enButton = document.getElementById(“en-button”);
const asButton = document.getElementById(“as-button”);
enButton.addEventListener(“click”, () => {
// Set the language to English
// You can add your logic to change the language here
console.log(“Switched to English”);
});
asButton.addEventListener(“click”, () => {
// Set the language to Assamese
// You can add your logic to change the language here
console.log(“Switched to Assamese”);
});
// function updateLiveTime() {
// const now = new Date();
// const hours = now.getHours();
// const minutes = now.getMinutes();
// const seconds = now.getSeconds();
// const timeString = `${hours < 10 ? '0' + hours : hours}:${minutes < 10 ? '0' + minutes : minutes}:${seconds < 10 ? '0' + seconds : seconds}`;
// document.getElementById('liveTime').textContent = timeString;
// }
// // Update time every second
// setInterval(updateLiveTime, 1000);
// // Initial call to display time immediately
// updateLiveTime();
// function updateLiveTime() {
// const options = {
// hour: 'numeric',
// minute: 'numeric',
// second: 'numeric',
// hour12: true,
// timeZone: 'Asia/Kolkata', // Set the time zone to India
// timeZoneName: 'short',
// weekday: 'long',
// year: 'numeric',
// month: 'long',
// day: 'numeric'
// };
// const now = new Date();
// const formatter = new Intl.DateTimeFormat('en-US', options);
// const formattedTime = formatter.format(now);
// document.getElementById('liveTime').textContent = formattedTime;
// }
// // Update time every second
// setInterval(updateLiveTime, 1000);
// // Initial call to display time immediately
// updateLiveTime();
// function updateLiveTime() {
// const options = {
// hour: 'numeric',
// minute: 'numeric',
// second: 'numeric',
// hour12: true
// };
// const now = new Date();
// // Kolkata time (Asia/Kolkata) – Indian Standard Time (IST)
// const kolkataOptions = { …options, timeZone: 'Asia/Kolkata' };
// const kolkataFormatter = new Intl.DateTimeFormat(JLOCALE, kolkataOptions);
// let formattedKolkataTime = kolkataFormatter.format(now);
// if(JLOCALE === 'as-IN') {
// // Replace English AM/PM with Assamese equivalents
// formattedKolkataTime = formattedKolkataTime
// .replace('AM', 'পুৱা')
// .replace('PM', 'আবেলি');
// }
// document.getElementById('kolkataTime').textContent = formattedKolkataTime;
// // Kolkata time (Asia/Kolkata) – Indian Standard Time (IST)
// const kolkataOptions = { …options, timeZone: 'Asia/Kolkata' };
// const kolkataFormatter = new Intl.DateTimeFormat(JLOCALE, kolkataOptions);
// let formattedKolkataTime = kolkataFormatter.format(now);
// if(JLOCALE === 'as-IN') {
// // Replace English AM/PM with Assamese equivalents
// // Replace English AM/PM with Assamese equivalents
// formattedKolkataTime = formattedKolkataTime
// .replace('AM', 'পুৱা')
// .replace('PM', 'আবেলি');
// }
// document.getElementById('kolkataTime').textContent = formattedKolkataTime;
// }
// // Update time every second
// setInterval(updateLiveTime, 1000);
// // Initial call to display time immediately
// updateLiveTime();
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
|
পুহ ১৬
1 |
১৭
2 |
১৮
|
||||
|
১৯
4 |
২০
5 |
২১
6 |
২২
7 |
২৩
8 |
২৪
9 |
২৫
10 |
|
২৬
11 |
২৭
12 |
২৮
13 |
২৯
|
মাঘ ১
15 |
২
16 |
৩
17 |
|
৪
|
৫
19 |
৬
20 |
৭
21 |
৮
22 |
৯
23 |
১০
24 |
|
১১
25 |
১২
26 |
১৩
27 |
১৪
28 |
১৫
|
১৬
30 |
১৭
31 |