Widget Simulator
Deprecated!
This widget version has been deprecated in favor of our new Widget SDK (v2). Please refer to the Widget SDK documentation for the latest implementation.
Here you can simulate how the widget is gonna look like in your website
See what each option means at our installation guide
- Widget
- HTML
index.html
<!DOCTYPE html>
<html lang="es">
<head>
<title>Onebox Widget Test</title>
<script type="text/javascript" src="https://widget-pre.oneboxtds.com/onebox_api/widgets/ob-widgets?rootPath=https://widget-pre.oneboxtds.com">
</script>
<script type="text/javascript">
window.onload = function () {
_onebox.moduleLoader.loadWidget("widget-container");
}
</script>
</head>
<body>
<div id="widget-container" class="ob-widget"
data-module="ob-venue-widget"
data-version="2"
data-channel="onebox_api"
data-eventid="4587"
data-sessionid="509945"
data-language="es_ES"
data-activatesales="true"
data-forceview="0" />
</body>
</html>
Analyze Widget Events
Open your browser developer tool with CTRL + MAYUS + J
or F12
and look at the console to inspect widget events.
Each pubsub
event has a red header with its event name between round brackets ()
.
Each event prints to console its data
value right after the red header
For more information about these events refer to events section in the installation guide