Skip to content

Commit

Permalink
Updating embed code for eventbrite registration
Browse files Browse the repository at this point in the history
  • Loading branch information
sstevens2 authored Oct 22, 2024
1 parent 6a4ec71 commit da9b488
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,26 @@ displayed if the 'eventbrite' field in the header is not set.
{% if page.eventbrite %}
<strong>Some adblockers block the registration window. If you do not see the
registration box below, please check your adblocker settings.</strong>
<iframe
src="https://www.eventbrite.com/tickets-external?eid={{page.eventbrite}}&ref=etckt"
frameborder="0"
width="100%"
height="500px"
scrolling="auto">
</iframe>
<div id="eventbrite-widget-container-{{page.eventbrite}}"></div>

<script src="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: '996437359967',
iframeContainerId: 'eventbrite-widget-container-996437359967',

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


Expand Down

0 comments on commit da9b488

Please sign in to comment.