Android calendar: open Google Calendar web subscription page
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Instead of downloading .ics (one-time import), Android users get a link to Google Calendar subscription page. This creates a live subscription that auto-syncs new events to their phone. iOS keeps webcal:// link. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b439bc50c2
commit
ab9a4170df
@ -574,18 +574,25 @@
|
||||
Kliknij przycisk odpowiedni dla Twojego kalendarza. Wydarzenia Izby będą się automatycznie synchronizować.
|
||||
</p>
|
||||
<div style="display:flex; flex-direction:column; gap:10px; margin-bottom:16px;">
|
||||
<a href="webcal://nordabiznes.pl/kalendarz/ical" id="subscribeWebcal" style="display:none; align-items:center; gap:10px; padding:12px 16px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius); text-decoration:none; color:#1e40af; font-size:15px; font-weight:600;">
|
||||
<a href="webcal://nordabiznes.pl/kalendarz/ical" id="subscribeApple" style="display:none; align-items:center; gap:10px; padding:12px 16px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius); text-decoration:none; color:#1e40af; font-size:15px; font-weight:600;">
|
||||
<span style="font-size:22px;">📅</span>
|
||||
<span>Dodaj do kalendarza</span>
|
||||
<span>Subskrybuj kalendarz</span>
|
||||
</a>
|
||||
<a href="https://nordabiznes.pl/kalendarz/ical" download="norda-biznes.ics" id="subscribeDownload" style="display:none; align-items:center; gap:10px; padding:12px 16px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius); text-decoration:none; color:#1e40af; font-size:15px; font-weight:600;">
|
||||
<a href="https://calendar.google.com/calendar/r?cid=webcal://nordabiznes.pl/kalendarz/ical" target="_blank" id="subscribeGoogle" style="display:none; align-items:center; gap:10px; padding:12px 16px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius); text-decoration:none; color:#1e40af; font-size:15px; font-weight:600;">
|
||||
<span style="font-size:22px;">📅</span>
|
||||
<span>Dodaj do kalendarza</span>
|
||||
<span>Subskrybuj w Google Calendar</span>
|
||||
</a>
|
||||
<p id="subscribeGoogleNote" style="display:none; font-size:12px; color:#64748b; margin:4px 0 0 0; line-height:1.5;">
|
||||
Otworzy Google Calendar w przeglądarce. Po dodaniu subskrypcji wydarzenia będą automatycznie synchronizowane z telefonem.
|
||||
</p>
|
||||
<script>
|
||||
// iOS/Mac: webcal:// works natively. Android/other: download .ics file.
|
||||
var isIOS = /iPad|iPhone|iPod|Mac/.test(navigator.userAgent);
|
||||
document.getElementById(isIOS ? 'subscribeWebcal' : 'subscribeDownload').style.display = 'flex';
|
||||
var isIOS = /iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent);
|
||||
if (isIOS) {
|
||||
document.getElementById('subscribeApple').style.display = 'flex';
|
||||
} else {
|
||||
document.getElementById('subscribeGoogle').style.display = 'flex';
|
||||
document.getElementById('subscribeGoogleNote').style.display = 'block';
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div style="border-top:1px solid #e5e7eb; padding-top:12px;">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user