Skip to content

Commit 466b404

Browse files
author
sammy-ofer-bot
committed
2026-05-06 17:00:36.900935
1 parent 954ea52 commit 466b404

2 files changed

Lines changed: 37 additions & 145 deletions

File tree

rem.html

Lines changed: 16 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585

8686
<script>
8787
(function() {
88-
const gameDate = "2026-05-06";
88+
const gameDate = "2026-05-09";
8989
if (todayDate === gameDate) {
9090
document.getElementById('container-1').style.display = 'flex';
9191

92-
const start_dt = new Date("2026-05-06T20:00:00");
92+
const start_dt = new Date("2026-05-09T20:30:00");
9393
const end_dt = new Date(start_dt.getTime() + (2 * 60 * 60 * 1000)); // 2 hours later
9494

9595
const formatICS = (dt) => dt.toISOString().replace(/-|:|\.\d+/g, "");
@@ -100,7 +100,7 @@
100100
const outlook_start = formatOutlook(start_dt);
101101
const outlook_end = formatOutlook(end_dt);
102102

103-
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d4\u05e4\u05d5\u05e2\u05dc \u05d1\"\u05e9";
103+
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d1\u05d9\u05ea\"\u05e8 \u05d9\u05e8\u05d5\u05e9\u05dc\u05d9\u05dd";
104104
const details = "התראות על משחקי הליגה המתקיימים באצטדיון סמי עופר\nhttps://t.me/sammy_ofer_notification_channel";
105105
const location = "אצטדיון סמי עופר, חיפה";
106106

@@ -152,11 +152,11 @@
152152

153153
<script>
154154
(function() {
155-
const gameDate = "2026-05-09";
155+
const gameDate = "2026-05-10";
156156
if (todayDate === gameDate) {
157157
document.getElementById('container-2').style.display = 'flex';
158158

159-
const start_dt = new Date("2026-05-09T20:30:00");
159+
const start_dt = new Date("2026-05-10T20:00:00");
160160
const end_dt = new Date(start_dt.getTime() + (2 * 60 * 60 * 1000)); // 2 hours later
161161

162162
const formatICS = (dt) => dt.toISOString().replace(/-|:|\.\d+/g, "");
@@ -167,7 +167,7 @@
167167
const outlook_start = formatOutlook(start_dt);
168168
const outlook_end = formatOutlook(end_dt);
169169

170-
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d1\u05d9\u05ea\"\u05e8 \u05d9\u05e8\u05d5\u05e9\u05dc\u05d9\u05dd";
170+
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05d4\u05e4\u05d5\u05e2\u05dc \u05d7\u05d9\u05e4\u05d4 - \u05de.\u05e1. \u05d0\u05e9\u05d3\u05d5\u05d3";
171171
const details = "התראות על משחקי הליגה המתקיימים באצטדיון סמי עופר\nhttps://t.me/sammy_ofer_notification_channel";
172172
const location = "אצטדיון סמי עופר, חיפה";
173173

@@ -219,11 +219,11 @@
219219

220220
<script>
221221
(function() {
222-
const gameDate = "2026-05-10";
222+
const gameDate = "2026-05-16";
223223
if (todayDate === gameDate) {
224224
document.getElementById('container-3').style.display = 'flex';
225225

226-
const start_dt = new Date("2026-05-10T20:00:00");
226+
const start_dt = new Date("2026-05-16T18:00:00");
227227
const end_dt = new Date(start_dt.getTime() + (2 * 60 * 60 * 1000)); // 2 hours later
228228

229229
const formatICS = (dt) => dt.toISOString().replace(/-|:|\.\d+/g, "");
@@ -234,7 +234,7 @@
234234
const outlook_start = formatOutlook(start_dt);
235235
const outlook_end = formatOutlook(end_dt);
236236

237-
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05d4\u05e4\u05d5\u05e2\u05dc \u05d7\u05d9\u05e4\u05d4 - \u05de.\u05e1. \u05d0\u05e9\u05d3\u05d5\u05d3";
237+
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d4\u05e4\u05d5\u05e2\u05dc \u05e4\"\u05ea";
238238
const details = "התראות על משחקי הליגה המתקיימים באצטדיון סמי עופר\nhttps://t.me/sammy_ofer_notification_channel";
239239
const location = "אצטדיון סמי עופר, חיפה";
240240

@@ -286,11 +286,11 @@
286286

287287
<script>
288288
(function() {
289-
const gameDate = "2026-05-16";
289+
const gameDate = "2026-05-18";
290290
if (todayDate === gameDate) {
291291
document.getElementById('container-4').style.display = 'flex';
292292

293-
const start_dt = new Date("2026-05-16T18:00:00");
293+
const start_dt = new Date("2026-05-18T20:00:00");
294294
const end_dt = new Date(start_dt.getTime() + (2 * 60 * 60 * 1000)); // 2 hours later
295295

296296
const formatICS = (dt) => dt.toISOString().replace(/-|:|\.\d+/g, "");
@@ -301,7 +301,7 @@
301301
const outlook_start = formatOutlook(start_dt);
302302
const outlook_end = formatOutlook(end_dt);
303303

304-
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d4\u05e4\u05d5\u05e2\u05dc \u05e4\"\u05ea";
304+
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05d4\u05e4\u05d5\u05e2\u05dc \u05d7\u05d9\u05e4\u05d4 - \u05d1\u05e0\u05d9 \u05e1\u05db\u05e0\u05d9\u05df";
305305
const details = "התראות על משחקי הליגה המתקיימים באצטדיון סמי עופר\nhttps://t.me/sammy_ofer_notification_channel";
306306
const location = "אצטדיון סמי עופר, חיפה";
307307

@@ -353,11 +353,11 @@
353353

354354
<script>
355355
(function() {
356-
const gameDate = "2026-05-18";
356+
const gameDate = "2026-05-19";
357357
if (todayDate === gameDate) {
358358
document.getElementById('container-5').style.display = 'flex';
359359

360-
const start_dt = new Date("2026-05-18T20:00:00");
360+
const start_dt = new Date("2026-05-19T20:30:00");
361361
const end_dt = new Date(start_dt.getTime() + (2 * 60 * 60 * 1000)); // 2 hours later
362362

363363
const formatICS = (dt) => dt.toISOString().replace(/-|:|\.\d+/g, "");
@@ -368,7 +368,7 @@
368368
const outlook_start = formatOutlook(start_dt);
369369
const outlook_end = formatOutlook(end_dt);
370370

371-
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05d4\u05e4\u05d5\u05e2\u05dc \u05d7\u05d9\u05e4\u05d4 - \u05d1\u05e0\u05d9 \u05e1\u05db\u05e0\u05d9\u05df";
371+
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d4\u05e4\u05d5\u05e2\u05dc \u05ea\"\u05d0";
372372
const details = "התראות על משחקי הליגה המתקיימים באצטדיון סמי עופר\nhttps://t.me/sammy_ofer_notification_channel";
373373
const location = "אצטדיון סמי עופר, חיפה";
374374

@@ -387,73 +387,6 @@
387387
}
388388
})();
389389
</script>
390-
<div id="container-6" class="container" style="display: none;">
391-
<div class="btn-group">
392-
<a id="ics-link-6" href="#" class="btn">
393-
<i class="fas fa-calendar-alt"></i>
394-
<span>הוסף ל- Apple / Desktop</span>
395-
</a>
396-
<a id="outlook-biz-link-6" href="#" target="_blank" class="btn">
397-
<i class="fab fa-microsoft"></i>
398-
<span>הוסף ל- Outlook Office 365</span>
399-
</a>
400-
<a id="outlook-live-link-6" href="#" target="_blank" class="btn">
401-
<i class="fas fa-envelope"></i>
402-
<span>הוסף ל- Outlook / Hotmail</span>
403-
</a>
404-
<a id="google-link-6" href="#" target="_blank" class="btn">
405-
<i class="fab fa-google"></i>
406-
<span>הוסף ל- Google Calendar</span>
407-
</a>
408-
</div>
409-
410-
<div style="margin-top: 2rem;">
411-
412-
<div class="container-dumb">
413-
<a href="https://t.me/sammy_ofer_notification_channel" style="border: none; text-decoration: none;">
414-
<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">
415-
</a>
416-
</div>
417-
418-
</div>
419-
</div>
420-
421-
<script>
422-
(function() {
423-
const gameDate = "2026-05-19";
424-
if (todayDate === gameDate) {
425-
document.getElementById('container-6').style.display = 'flex';
426-
427-
const start_dt = new Date("2026-05-19T20:30:00");
428-
const end_dt = new Date(start_dt.getTime() + (2 * 60 * 60 * 1000)); // 2 hours later
429-
430-
const formatICS = (dt) => dt.toISOString().replace(/-|:|\.\d+/g, "");
431-
const ics_start = formatICS(start_dt);
432-
const ics_end = formatICS(end_dt);
433-
434-
const formatOutlook = (dt) => dt.toISOString();
435-
const outlook_start = formatOutlook(start_dt);
436-
const outlook_end = formatOutlook(end_dt);
437-
438-
const title = "\u05d0\u05d9\u05e8\u05d5\u05e2 \u05d1\u05e1\u05de\u05d9 \u05e2\u05d5\u05e4\u05e8: \u05de\u05db\u05d1\u05d9 \u05d7\u05d9\u05e4\u05d4 - \u05d4\u05e4\u05d5\u05e2\u05dc \u05ea\"\u05d0";
439-
const details = "התראות על משחקי הליגה המתקיימים באצטדיון סמי עופר\nhttps://t.me/sammy_ofer_notification_channel";
440-
const location = "אצטדיון סמי עופר, חיפה";
441-
442-
const commonParams = `&subject=${encodeURIComponent(title)}&body=${encodeURIComponent(details)}&location=${encodeURIComponent(location)}&startdt=${outlook_start}&enddt=${outlook_end}`;
443-
444-
document.getElementById('google-link-6').href = `https://www.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(title)}&details=${encodeURIComponent(details)}&location=${encodeURIComponent(location)}&dates=${ics_start}/${ics_end}`;
445-
document.getElementById('outlook-biz-link-6').href = `https://outlook.office.com/calendar/0/deeplink/compose?path=/calendar/action/compose&rru=addevent${commonParams}`;
446-
document.getElementById('outlook-live-link-6').href = `https://outlook.live.com/calendar/0/deeplink/compose?path=/calendar/action/compose&rru=addevent${commonParams}`;
447-
448-
const ics_content = `BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Sammy Ofer Bot//HE\nBEGIN:VEVENT\nSUMMARY:${title}\nDTSTART:${ics_start}\nDTEND:${ics_end}\nDESCRIPTION:${details.replace(/\n/g, "\\n")}\nLOCATION:${location}\nEND:VEVENT\nEND:VCALENDAR`;
449-
const blob = new Blob([ics_content], { type: 'text/calendar;charset=utf-8' });
450-
const url = window.URL.createObjectURL(blob);
451-
const icsLink = document.getElementById('ics-link-6');
452-
icsLink.href = url;
453-
icsLink.setAttribute('download', 'reminder.ics');
454-
}
455-
})();
456-
</script>
457390

458391

459392
<div id="default-container" class="container" style="display: none;">
@@ -471,7 +404,7 @@
471404

472405
<script>
473406
let anyGameShown = false;
474-
for (let i = 1; i <= 6; i++) {
407+
for (let i = 1; i <= 5; i++) {
475408
if (document.getElementById(`container-${i}`).style.display !== 'none') {
476409
anyGameShown = true;
477410
break;

static.html

Lines changed: 21 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,6 @@
2020
</head>
2121
<body>
2222
<div id="container-1" class="container">
23-
<div class="metadata">
24-
<div class="metadata-item">אירוע 🏟️ היום בשעה: 20:00</div>
25-
</div>
26-
<div class="team">
27-
<div class="team-logo" style="background-image: url('assets/teams/Maccabi Haifa.png');"></div>
28-
<div class="team-name">מכבי חיפה</div>
29-
</div>
30-
<div class="team">
31-
<div class="team-logo" style="background-image: url('assets/teams/Hapoel Beer Sheva.png');"></div>
32-
<div class="team-name">הפועל ב"ש</div>
33-
</div>
34-
<div class="metadata">
35-
<div class="metadata-item">צפי חסימת כבישים: החל מ 17:00</div>
36-
<div class="metadata-item">צפי אוהדים משוער: גדול מאוד (23,000) </div>
37-
38-
<div class="metadata-item"><img src="assets/images/qrcode.png" alt="QR Code" style="max-width: 100px; margin-top: 1rem;"></div>
39-
<div>
40-
41-
<div class="container-dumb">
42-
<!-- https://github.com/badges/shields/issues/10109 -->
43-
<a href="https://t.me/sammy_ofer_notification_channel" style="border: none; text-decoration: none;">
44-
<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">
45-
</a>
46-
<a href="cal.html" style="border: none; text-decoration: none;">
47-
<img src="https://img.shields.io/badge/-Sammy_Ofer_Notification_Calendar-gray?logo=googlecalendar&style=plastic&logoColor=e9ff70" alt="Sammy Ofer Notification Calendar">
48-
</a>
49-
<a href="https://buymeacoffee.com/drehelis" style="border: none; text-decoration: none;">
50-
<img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee&style=plastic" alt="Buy Me A Coffee">
51-
</a>
52-
</div>
53-
54-
</div>
55-
</div>
56-
</div>
57-
<script>
58-
const gameDate_1 = "2026-05-06";
59-
if (todayDate !== gameDate_1) {
60-
document.getElementById('container-1').style.display = 'none';
61-
}
62-
</script>
63-
<div id="container-2" class="container">
6423
<div class="metadata">
6524
<div class="metadata-item">אירוע 🏟️ היום בשעה: 20:30</div>
6625
</div>
@@ -96,12 +55,12 @@
9655
</div>
9756
</div>
9857
<script>
99-
const gameDate_2 = "2026-05-09";
100-
if (todayDate !== gameDate_2) {
101-
document.getElementById('container-2').style.display = 'none';
58+
const gameDate_1 = "2026-05-09";
59+
if (todayDate !== gameDate_1) {
60+
document.getElementById('container-1').style.display = 'none';
10261
}
10362
</script>
104-
<div id="container-3" class="container">
63+
<div id="container-2" class="container">
10564
<div class="metadata">
10665
<div class="metadata-item">אירוע 🏟️ היום בשעה: 20:00</div>
10766
</div>
@@ -137,12 +96,12 @@
13796
</div>
13897
</div>
13998
<script>
140-
const gameDate_3 = "2026-05-10";
141-
if (todayDate !== gameDate_3) {
142-
document.getElementById('container-3').style.display = 'none';
99+
const gameDate_2 = "2026-05-10";
100+
if (todayDate !== gameDate_2) {
101+
document.getElementById('container-2').style.display = 'none';
143102
}
144103
</script>
145-
<div id="container-4" class="container">
104+
<div id="container-3" class="container">
146105
<div class="metadata">
147106
<div class="metadata-item">אירוע 🏟️ היום בשעה: 18:00</div>
148107
</div>
@@ -178,12 +137,12 @@
178137
</div>
179138
</div>
180139
<script>
181-
const gameDate_4 = "2026-05-16";
182-
if (todayDate !== gameDate_4) {
183-
document.getElementById('container-4').style.display = 'none';
140+
const gameDate_3 = "2026-05-16";
141+
if (todayDate !== gameDate_3) {
142+
document.getElementById('container-3').style.display = 'none';
184143
}
185144
</script>
186-
<div id="container-5" class="container">
145+
<div id="container-4" class="container">
187146
<div class="metadata">
188147
<div class="metadata-item">אירוע 🏟️ היום בשעה: 20:00</div>
189148
</div>
@@ -219,12 +178,12 @@
219178
</div>
220179
</div>
221180
<script>
222-
const gameDate_5 = "2026-05-18";
223-
if (todayDate !== gameDate_5) {
224-
document.getElementById('container-5').style.display = 'none';
181+
const gameDate_4 = "2026-05-18";
182+
if (todayDate !== gameDate_4) {
183+
document.getElementById('container-4').style.display = 'none';
225184
}
226185
</script>
227-
<div id="container-6" class="container">
186+
<div id="container-5" class="container">
228187
<div class="metadata">
229188
<div class="metadata-item">אירוע 🏟️ היום בשעה: 20:30</div>
230189
</div>
@@ -260,17 +219,17 @@
260219
</div>
261220
</div>
262221
<script>
263-
const gameDate_6 = "2026-05-19";
264-
if (todayDate !== gameDate_6) {
265-
document.getElementById('container-6').style.display = 'none';
222+
const gameDate_5 = "2026-05-19";
223+
if (todayDate !== gameDate_5) {
224+
document.getElementById('container-5').style.display = 'none';
266225
}
267226
</script>
268227

269228
<div id="default-container" class="container" style="display: none;">
270229
<div class="metadata">
271230
<div class="metadata-item">אירוע 🏟️ הבא:
272231

273-
יום רביעי, 6 במאי 2026
232+
יום שבת, 9 במאי 2026
274233

275234
</div>
276235
<div class="metadata-item"><img src="assets/images/qrcode.png" alt="QR Code" style="max-width: 100px; margin-top: 1rem;"></div>
@@ -293,7 +252,7 @@
293252

294253
<script>
295254
let allContainersHidden = true;
296-
for (let i = 1; i <= 6; i++) {
255+
for (let i = 1; i <= 5; i++) {
297256
if (document.getElementById(`container-${i}`).style.display !== 'none') {
298257
allContainersHidden = false;
299258
break;

0 commit comments

Comments
 (0)