UNPKG

@gobistories/gobi-web-integration

Version:

This library will let you put your Gobi stories on your site.

88 lines (81 loc) 2.04 kB
<!DOCTYPE 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> body { height: 100vh; margin: 0; } .side-by-side { display: flex; justify-content: space-evenly; align-items: stretch; height: 100%; } .panel { display: flex; align-items: center; justify-content: center; width: 100%; } .player { width: 50%; border-radius: 10px; background-color: green; aspect-ratio: calc(612 / 1088); } </style> <script type="text/javascript" src="../index.js?v=d85e77"></script></head> <body> <div class="side-by-side"> <div class="panel"> <div id="bubbles-container"></div> </div> <div class="panel"> <div class="player"> <div id="player-container"></div> </div> </div> </div> <script> new gobi.Bubbles({ container: '#bubbles-container', bubbleSize: '170px', color: '#BD00FE', animatedBubble: true, disableShadowDom: false, autoSegue: true, showEmptyStories: true, playerOptions: { container: '#player-container', 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>