-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.js
More file actions
31 lines (29 loc) · 1.39 KB
/
Copy pathtimer.js
File metadata and controls
31 lines (29 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Time {
constructor() {
this.el = document.getElementById('timer');
if (!this.el) return;
this.el.innerHTML = this.render();
}
render = () => {
return `<div class="container">
<div class="row text-center">
<div class="col-md-12">
<div class="heading-count">
<h2>تا نشست بعدی فینگرکدر</h2>
<p class="timer-sub">زمان تقریبی است؛ جزئیات نهایی در شبکههای اجتماعی و صفحه نشستها اعلام میشود.</p>
</div>
</div>
<div class="col-md-12">
<div class="row time-countdown justify-content-center">
<div id="clock" class="time-count" data-date="2025-12-05T18:00:00+03:30" role="timer" aria-live="polite" aria-label="شمارش معکوس تا نشست بعدی"></div>
</div>
<div class="timer-actions">
<a href="events.html" class="btn btn-common">مشاهده نشستها</a>
<a target="_blank" rel="noopener noreferrer" href="https://calendar.google.com/calendar/event?action=TEMPLATE&tmeid=NmN2NWY3NHY2MzcwMDdrNzY0bmIwdGwwbmcgei5hYmJhcy4xMzcwQG0&tmsrc=z.abbas.1370%40gmail.com" class="btn btn-common btn-outline-cal">افزودن به تقویم</a>
</div>
</div>
</div>
</div>`;
};
}
new Time();