@gobistories/gobi-web-integration
Version:
This library will let you put your Gobi stories on your site.
61 lines (57 loc) • 1.66 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>
<p>
container: '#gobi-module-container', bubbleSize: '170px', color:
'#BD00FE', animatedBubble: true, disableShadowDom: true, autoSegue: true,
playerOptions: { autoStartWithSound: true, }, stories: [
{id: "demo16"},
{id: "demo15"},
{id: "demo20"},
{id: "demo19"},
]})
</p>
<div id="gobi-module-container"></div>
<script>
new gobi.Bubbles({
container: '#gobi-module-container',
bubbleSize: '170px',
color: '#BD00FE',
animatedBubble: true,
disableShadowDom: false,
autoSegue: true,
showEmptyStories: true,
playerOptions: {
autoStart: true,
autoStartWithSound: true,
apiBaseUrl: runConfig.apiBaseUrl,
transcriptButton: true,
},
stories: [
{
id:
'demo13',
},
{
id: 'demo19',
title: 'Custom Title & bubbleSrc',
bubbleSrc:
'https://res.cloudinary.com/gobi-dev/image/upload/v1639582926/examples/pizza_m0t4yt.png',
},
{
id: 'demo14',
title: 'Custom Title & thumbnailUrl',
thumbnailUrl: 'https://res.cloudinary.com/gobi-dev/image/upload/v1639580038/examples/coffee-man_heyane.png'
},
{ id: 'demo20' },
],
});
</script>
</body>
</html>