This example forces the unresponsive-desktop
theme which suppresses the responsive behaviour of the widget. It actually loads an alternative CSS that omits the @media
queries.
To see how it works, resize your browser window to a narrow display and it will start to overflow of the right hand side of the screen. This is not optimal in all situations, however it’s great if you know your window size is fixed like in an iframe with a constant width.
<script src="https://api.cloudsponge.com/widget/localhost-only.js"></script>
<script>
cloudsponge.init({
// choose the unresponsive-desktop theme so it always displays as a
// modal with an overlay
theme: 'unresponsive-desktop'
})
</script>