|
| 1 | +{% macro notification_channel() %} |
| 2 | +<!-- https://github.com/badges/shields/issues/10109 --> |
| 3 | +<a href="https://t.me/sammy_ofer_notification_channel" style="border: none; text-decoration: none;"> |
| 4 | + <img src="https://img.shields.io/endpoint?color=neon&style=plastic&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fsammy_ofer_notification_channel&label=Sammy%20Ofer%20Notification%20Channel" alt="Sammy Ofer Notification Channel"> |
| 5 | +</a> |
| 6 | +{% endmacro -%} |
1 | 7 | <!DOCTYPE html>
|
2 | 8 | <html lang="en">
|
3 | 9 | <head>
|
|
12 | 18 | <link href="assets/templates/style.css" rel="stylesheet" type="text/css">
|
13 | 19 | <script>
|
14 | 20 | const currentDate = new Date();
|
15 |
| - const day = currentDate.getDate(); |
16 |
| - const month = ("0" + (currentDate.getMonth() + 1)).slice(-2); |
17 |
| - const year = currentDate.getFullYear(); |
| 21 | + const day = currentDate.toLocaleString('en-US', { day: '2-digit' }); |
| 22 | + const month = currentDate.toLocaleString('en-US', { month: '2-digit' }); |
| 23 | + const year = currentDate.toLocaleString('en-US', { year: "numeric" }); |
18 | 24 | const todayDate = `${year}-${month}-${day}`;
|
19 | 25 | </script>
|
20 | 26 | </head>
|
21 | 27 | <body>
|
22 |
| - {% for key, value in games.items() %} |
23 |
| - {% set scraped_date_time, league, home_team, home_team_en, home_team_url, game_hour, guest_team, guest_team_en, guest_team_url, game_time_delta, road_block_time, specs_word, specs_number, poll, notes, custom_sepcs_number, custom_road_block_time = value %} |
| 28 | + {% for key, value in games.items() -%} |
| 29 | + {% set scraped_date_time, league, home_team, home_team_en, home_team_url, game_hour, guest_team, guest_team_en, guest_team_url, game_time_delta, road_block_time, specs_word, specs_number, poll, notes, custom_sepcs_number, custom_road_block_time = value -%} |
24 | 30 | <div id="container-{{loop.index}}" class="container">
|
25 | 31 | <div class="metadata">
|
26 | 32 | <div class="metadata-item">משחק ⚽ היום בשעה: {{ game_hour }}</div>
|
|
40 | 46 | <div class="metadata-item">📣: {{ notes }}</div>
|
41 | 47 | {% endif %}
|
42 | 48 | <div class="metadata-item"><img src="assets/images/qrcode.png" alt="QR Code" style="max-width: 100px; margin-top: 1rem;"></div>
|
43 |
| - <!-- https://github.com/badges/shields/issues/10109 --> |
44 | 49 | <div>
|
45 |
| - <a href="https://t.me/sammy_ofer_notification_channel" style="border: none; text-decoration: none;"> |
46 |
| - <img src="https://img.shields.io/endpoint?color=neon&style=plastic&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fsammy_ofer_notification_channel&label=Sammy%20Ofer%20Notification%20Channel" alt="Sammy Ofer Notification Channel"> |
47 |
| - </a> |
| 50 | + {{ notification_channel() | indent(8) }} |
48 | 51 | </div>
|
49 | 52 | </div>
|
50 | 53 | </div>
|
|
55 | 58 | }
|
56 | 59 | </script>
|
57 | 60 | {% endfor %}
|
58 |
| - |
59 | 61 | <div id="default-container" class="container" style="display: none;">
|
60 | 62 | <div class="metadata">
|
61 | 63 | <div class="metadata-item">המשחק ⚽ הבא: {{ games['game_1'][0] | babel_format_full_heb }}</div>
|
62 | 64 | <div class="metadata-item"><img src="assets/images/qrcode.png" alt="QR Code" style="max-width: 100px; margin-top: 1rem;"></div>
|
63 |
| - <!-- https://github.com/badges/shields/issues/10109 --> |
64 |
| - <a href="https://t.me/sammy_ofer_notification_channel" style="border: none; text-decoration: none;"> |
65 |
| - <img src="https://img.shields.io/endpoint?color=neon&style=plastic&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fsammy_ofer_notification_channel&label=Sammy%20Ofer%20Notification%20Channel" alt="Sammy Ofer Notification Channel"> |
66 |
| - </a> |
| 65 | + {{ notification_channel() | indent(6) }} |
67 | 66 | </div>
|
68 | 67 | </div>
|
69 | 68 |
|
|
0 commit comments