···88 <body>
99 <main>
1010 <h1>{{ .Title }}</h1>
1111- <p></p>
1111+1212+ <h2>Calendar feeds for Atmosphere events</h2>
1313+ <p>
1414+ Ever signed up for an event with
1515+ <a href="https://atmo.rsvp">atmo.rsvp</a> or
1616+ <a href="https://smokesignal.events">Smoke Signal</a> and wish it would
1717+ automatically show up on your calendar? Well now they can with this! You
1818+ will never be worndering again when's lunch.
1919+ </p>
2020+ <a href="https://tangled.org/pds.dad/whens-lunch"
2121+ >View source code on tangled.org</a
2222+ >
2323+ <ul>
2424+ <li>
2525+ <code>/events/{handle-or-did}</code> — events you're
2626+ <strong>going</strong> to.
2727+ </li>
2828+ <li>
2929+ <code>/events/{handle-or-did}?includeInterested=true</code> —
3030+ events you're <strong>going</strong> to <em>or</em>
3131+ <strong>interested</strong> in.
3232+ </li>
3333+ </ul>
3434+3535+ <h2>Get your feed URLs</h2>
3636+ <form method="get" action="/">
3737+ <label for="handle">Atmosphere handle:</label>
3838+ <input
3939+ id="handle"
4040+ name="handle"
4141+ value="{{ .Handle }}"
4242+ placeholder="@ngerakines.me"
4343+ />
4444+ <button type="submit">Get URLs</button>
4545+ </form>
4646+4747+ {{ if .Error }}
4848+ <p>{{ .Error }}</p>
4949+ {{ end }} {{ if .DID }}
5050+ <h3>Feed URLs for {{ .Handle }}</h3>
5151+5252+ <p>
5353+ <strong>Going:</strong><br />
5454+ <code id="going-url">{{ .GoingURL }}</code>
5555+ <button type="button" onclick="copyUrl('going-url')">Copy</button>
5656+ </p>
5757+5858+ <p>
5959+ <strong>Going + interested:</strong><br />
6060+ <code id="interested-url">{{ .InterestedURL }}</code>
6161+ <button type="button" onclick="copyUrl('interested-url')">Copy</button>
6262+ </p>
6363+6464+ <h2>Adding to Apple Calendar</h2>
6565+ <ol>
6666+ <li>Open Apple Calendar</li>
6767+ <li>Go to File → New Calendar Subscription</li>
6868+ <li>Paste the URL above and click Subscribe</li>
6969+ </ol>
7070+7171+ <h2>Adding to Google Calendar</h2>
7272+ <ol>
7373+ <li>Open Google Calendar in your browser</li>
7474+ <li>Click the + next to "Other calendars" in the sidebar</li>
7575+ <li>Select "From URL"</li>
7676+ <li>Paste the URL above and click "Add calendar"</li>
7777+ </ol>
7878+ {{ end }}
7979+8080+ <p>
8181+ Thank you <a href="https://atmo.rsvp/calendar">atmo.rsvp</a> for the
8282+ directions as well as providing a similar feed
8383+ </p>
1284 </main>
8585+8686+ <script>
8787+ function copyUrl(id) {
8888+ const el = document.getElementById(id);
8989+ if (el) {
9090+ navigator.clipboard.writeText(el.textContent.trim());
9191+ }
9292+ }
9393+ </script>
1394 </body>
1495</html>