Copy/Paste Embed Snippets

Snippet A — Single mega PDF (simplest)

<iframe
  src="https://frankytyrone.github.io/parish_harvester/mega_pdf/derry_mega_bulletin.pdf"
  width="100%"
  height="900"
  style="border:0"
  title="Derry mega bulletin">
</iframe>

Snippet B — PDF with download fallback

<object
  data="https://frankytyrone.github.io/parish_harvester/mega_pdf/derry_mega_bulletin.pdf"
  type="application/pdf"
  width="100%"
  height="900">
  <p>
    PDF preview not supported on this device/browser.
    <a href="https://frankytyrone.github.io/parish_harvester/mega_pdf/derry_mega_bulletin.pdf">Download the latest bulletin</a>.
  </p>
</object>

Snippet C — OCR viewer embed

<iframe
  src="https://frankytyrone.github.io/parish_harvester/bulletins/derry-latest.html"
  width="100%"
  height="1000"
  style="border:0"
  title="Derry OCR viewer">
</iframe>

Snippet D — Auto-updating link via the manifest

<a id="latest-bulletin-link" href="#">Loading latest bulletin…</a>
<script>
fetch('https://frankytyrone.github.io/parish_harvester/manifest.json')
  .then((r) => r.json())
  .then((m) => {
    const d = m.dioceses.derry_diocese;
    if (!d || !d.mega_pdf) return;
    const a = document.getElementById('latest-bulletin-link');
    a.href = d.mega_pdf;
    a.textContent = `Open latest ${d.display_name} bulletin (${m.target_date})`;
  })
  .catch(() => {
    const a = document.getElementById('latest-bulletin-link');
    a.textContent = 'Could not load bulletin link right now.';
  });
</script>

Snippet E — Auto-updating iframe

<iframe id="latest-bulletin-frame" width="100%" height="900" style="border:0" title="Latest bulletin"></iframe>
<script>
fetch('https://frankytyrone.github.io/parish_harvester/manifest.json')
  .then((r) => r.json())
  .then((m) => {
    const d = m.dioceses.derry_diocese;
    if (!d || !d.mega_pdf) return;
    document.getElementById('latest-bulletin-frame').src = d.mega_pdf;
  });
</script>

Snippet F — CDN URL alternative

https://cdn.jsdelivr.net/gh/Frankytyrone/parish_harvester@main/mega_pdf/derry_mega_bulletin.pdf
https://cdn.jsdelivr.net/gh/Frankytyrone/parish_harvester@main/mega_pdf/down_and_connor_mega_bulletin.pdf