Skip to content

Commit

Permalink
updating eventbrite embed
Browse files Browse the repository at this point in the history
sstevens2 authored Nov 8, 2024
1 parent 7e2f1fa commit 78f466d
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
@@ -75,13 +75,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="280px"
scrolling="auto">
</iframe>
<div id="eventbrite-widget-container-1070926964379"></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: '1070926964379',
iframeContainerId: 'eventbrite-widget-container-1070926964379',

// 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 %}

<h2 id="register">Registration</h2>

0 comments on commit 78f466d

Please sign in to comment.