Eventbrite嵌入式小部件-移动自动iframe高度

时间:2018-10-19 04:35:25

标签: javascript iframe eventbrite

我正在寻求有关嵌入式结帐代码的帮助。我希望将iframe设置为自动高度,以供人们在移动设备上使用时使用。 任何帮助都会很棒。小部件的代码如下。

代码

<div id="eventbrite-widget-container-38673272800"></div>
<script="https://www.eventbrite.com/static/widgets/eb_widgets.js">.    </script>

<script type="text/javascript">
var exampleCallback = function() {
   console.log('Order complete!');
};

window.EBWidgets.createWidget({
    // Required
   widgetType: 'checkout',
   eventId: '38673272800',
   iframeContainerId: 'eventbrite-widget-container-38673272800',

    // Optional
   iframeContainerHeight: 500,  // Widget height in pixels. Defaults to a minimum of 425px if not provided
   onOrderComplete: exampleCallback  // Method called when an order has successfully completed
});

</script>

0 个答案:

没有答案