@gobistories/gobi-web-integration
Version:
This library will let you put your Gobi stories on your site.
96 lines (90 loc) • 2.46 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>
<style>
pre {
margin-top: 2rem;
}
</style>
<script type="text/javascript" src="../index.js?v=d85e77"></script></head>
<body>
<div id="inner-html-container"></div>
<h3>Show Missing Stories</h3>
<div id="show-missing-container"></div>
<h3>Hide Missing Stories</h3>
<div id="hide-missing-container"></div>
<script>
new gobi.Bubbles({
container: '#show-missing-container',
// bubbleSize: '170px',
color: '#BD00FE',
animatedBubble: true,
disableShadowDom: false,
autoSegue: true,
showEmptyStories: true,
playerOptions: {
autoStart: true,
autoStartWithSound: true,
apiBaseUrl: runConfig.apiBaseUrl,
},
stories: [
{
id:
'demo13asdfasdfasdfas',
title: 'Custom Title',
},
{
id: 'demo19',
title: 'Custom Title',
thumbnailUrl:
'https://res.cloudinary.com/gobi-dev/image/upload/v1639580038/examples/coffee-man_heyane.png',
},
{ id: 'demo20' },
{ id: 'demo14' },
{ id: undefined },
{
id: null,
title: 'Invalid with Custom Thumbnail',
thumbnailUrl:
'https://res.cloudinary.com/gobi-dev/image/upload/v1639580038/examples/coffee-man_heyane.png',
},
],
});
new gobi.Bubbles({
container: '#hide-missing-container',
// bubbleSize: '170px',
color: '#BD00FE',
animatedBubble: true,
disableShadowDom: false,
autoSegue: true,
showEmptyStories: false,
playerOptions: {
autoStart: true,
autoStartWithSound: true,
apiBaseUrl: runConfig.apiBaseUrl,
},
stories: [
{
id:
'demo13asdfasdfasdfas',
title: 'Custom Title',
},
{
id: 'demo19',
title: 'Custom Title',
thumbnailUrl:
'https://res.cloudinary.com/gobi-dev/image/upload/v1639580038/examples/coffee-man_heyane.png',
},
{ id: 'demo20' },
{ id: 'demo14' },
{ id: undefined },
{ id: null },
],
});
</script>
</body>
</html>