Embed Reference
Permanent Timepath integration fixture for compatibility testing.
Loading https://quiz-script.timepath.co/timepath-quiz.umd.js…
This is the code behind the example above, with this fixture's ID already in it.
<div
class="tp-quiz"
data-timepath-quiz-id="QFPFtDxXLvd5RXGwkvLV"
></div>
<script>
(function () {
var SRC = "https://quiz-script.timepath.co/timepath-quiz.umd.js";
function mount() {
if (window.TimepathQuiz && typeof window.TimepathQuiz.mountAll === "function") {
window.TimepathQuiz.mountAll({
apiBase: "https://embed.timepath.co",
});
}
}
if (window.TimepathQuiz) {
mount();
return;
}
if (document.querySelector('script[src="' + SRC + '"]')) {
var tries = 0;
var t = setInterval(function () {
tries++;
if (window.TimepathQuiz) {
clearInterval(t);
mount();
}
if (tries > 50) clearInterval(t);
}, 50);
return;
}
var s = document.createElement("script");
s.src = SRC;
s.onload = mount;
document.head.appendChild(s);
})();
</script>The bundle appends its own stylesheet, derived from the script URL — do not add a <link> tag for it.
Optional attributes on the container: data-timepath-darkmode, data-timepath-polling-ms. The bundle installs window.TimepathQuiz with mount, unmount, update and mountAll, so a single-page application can tear an embed down again.
QFPFtDxXLvd5RXGwkvLVhttps://quiz-script.timepath.co/timepath-quiz.umd.jsThis is a permanent Timepath integration fixture maintained for compatibility testing. The page URL and the Timepath fixture ID are intended to remain stable.
Product news, newsroom stories and new formats — occasionally, never spam.