README: show the iframe and JS-embed snippets, shaped like manifest.json ships them
Some checks are pending
build-gate / build (push) Waiting to run
Some checks are pending
build-gate / build (push) Waiting to run
Host as a placeholder and the SRI hash elided (it changes every build), with a pointer to manifest.json for the exact copy, so the README cannot go stale.
This commit is contained in:
parent
cbbebffb95
commit
de3d8dda22
1 changed files with 16 additions and 3 deletions
19
README.md
19
README.md
|
|
@ -100,7 +100,12 @@ One folder, one `.vue`, one element. `plugin-designs/all-people-groups/`
|
|||
|
||||
### 1. iframe — the prayer map on any site ✅ production
|
||||
|
||||
One `<iframe>` tag, no build step. Copy the `embed.iframe` snippet from `manifest.json`.
|
||||
One `<iframe>` tag, no build step. Each plugin's exact snippet is `embed.iframe` in `manifest.json`:
|
||||
|
||||
```html
|
||||
<iframe src="https://YOUR_HOST/doxa-maps/doxa-simple-map/doxa-simple-map/prayer/index.html?utm_source=YOUR_SOURCE"
|
||||
width="100%" height="600" style="border:none;border-radius:12px;" allowfullscreen></iframe>
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
|
@ -114,8 +119,16 @@ print options that wrap to fit. `bun run check:mobile` · `bun run phone` (needs
|
|||
### 3. JavaScript embed — the Research Gallery on dx-life ✅ production
|
||||
|
||||
The whole capability-5 app on the dx-life research page, from one `<script src>` and one element —
|
||||
replacing the separate research map, list and regions dashboards the page used to carry. Copy the
|
||||
`embed.script` snippet (SRI-pinned) from `manifest.json`.
|
||||
replacing the separate research map, list and regions dashboards the page used to carry. The exact
|
||||
snippet is `embed.script` in `manifest.json`; copy its `integrity` hash from there, as it changes with
|
||||
every build:
|
||||
|
||||
```html
|
||||
<script>window.MAP_APP_API_URL="https://pray.doxa.life";</script>
|
||||
<script src="https://YOUR_HOST/doxa-maps/doxa-maps-spa/doxa-maps-spa.js"
|
||||
integrity="sha384-…" crossorigin="anonymous"></script>
|
||||
<doxa-maps-spa profile-config='{"profile":"doxa-maps-spa","tk":"YOUR_MAPBOX_TOKEN","utmSource":"YOUR_SOURCE","assetsBase":"https://YOUR_HOST/doxa-maps/assets"}'></doxa-maps-spa>
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue