@gobistories/gobi-web-integration
Version:
This library will let you put your Gobi stories on your site.
74 lines (64 loc) • 1.54 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>
body {
margin: 0 auto;
background-color: #f0f0f0;
margin-bottom: 2rem;
width: 100%;
text-align: center;
}
.wrapper {
display: flex;
flex-direction: column;
align-items: center;
margin: 2rem 0;
}
.gobi-cards {
width: 100%;
}
#no-wrap {
width: 100%;
}
p {
margin-bottom: 0.5rem;
}
code {
margin: 2rem 0;
}
#space-between {
width: 75%;
}
</style>
<script type="text/javascript" src="../index.js?v=d85e77"></script></head>
<body>
<h2>Cards with playInline</h2>
<div class="wrapper">
<div class="gobi-cards" data-gobi-stories="demo08,demo02,demo03,demo20"></div>
</div>
<div class="wrapper">
<div class="gobi-cards" data-gobi-stories="demo08,demo02,demo03,demo20" data-gobi-show-ui-in-card="true"></div>
</div>
<script>
gobi.discover({
apiBaseUrl: runConfig.apiBaseUrl,
size: 425,
align: 'start',
gap: 40,
wrap: true,
hideTitle: true,
playInline: true,
animatedCovers: true,
autoSegue: true,
fullScreenMode: true,
});
</script>
<label>Checkbox <input type="checkbox" /></label>
<label>Text <input type="text" /></label>
</body>
</html>