@gobistories/gobi-web-integration
Version:
This library will let you put your Gobi stories on your site.
37 lines (33 loc) • 1.04 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Gobi - Web Integration test</title>
<script type="text/javascript" src="/dist/run-config.js"></script>
<script type="text/javascript" src="../index.js?v=d85e77"></script></head>
<body>
<h3>Production GWI</h3>
<p>
This is useful for testing backwards compatibility during development and testing.
The public package is used for loading GWI rather than the local version.
The local API is still used.
</p>
<div class="gobi-stories" data-gobi-stories="demo13 demo18">
</div>
<script>
function start() {
gobi.discover({
previewMode: true,
apiBaseUrl: runConfig.apiBaseUrl,
bubbleSize: "150px",
color: "blue",
playerOptions: {
autoStartWithSound: true,
},
});
}
</script>
<script src="https://unpkg.com/@gobistories/gobi-web-integration@^6" async onload="start()"></script>
</body>
</html>