All the options
Options are the second argument of the first call to run. All are optional.
ScriptureTips.run("main", {
translation: "bsb",
ignore: ".byline",
hoverDelayMs: 500,
});
| Option | What it sets | Default |
|---|---|---|
translation | The translation passages open in: a translation's ID. | "eng-kjv" |
scheme | The verse numbering your pages use: kjv, hebrew, latin or greek. | "kjv" |
ignore | A CSS selector for what to leave out. | None |
destination | Where links go: "scripturetips", or an address pattern. | "scripturetips" |
destinationTranslation | An outside destination's own code for its translation. | None |
site | The ScriptureTips reader that links open. | https://scripturetips.com |
hoverDelayMs | How long the pointer rests on a link before the tooltip opens, in milliseconds. | 300 |
strings | The tooltip's words, to reword or translate them. | English |
storage | Where visitors' translation choices are kept: null keeps them only until the page is closed. | The page's localStorage |
api | The ScriptureTips API passages are read from. | https://scripture.tips/api |
The tooltip's words
strings replaces any of these:
ScriptureTips.run("main", {
strings: {
loading: "Loading…",
failed: "That passage couldn't be loaded.",
missing: "This translation doesn't have that passage.",
readMore: "Read more",
translation: "Translation",
more: "…",
tooltip: "Scripture passage",
pin: "Keep open",
},
});