File tree 1 file changed +17
-4
lines changed
1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,23 @@ <h1 id="rsvp">RSVP</h1>
67
67
68
68
{% if page.eventbrite != '' %}
69
69
< div style ="width:100%; text-align:left; ">
70
- < iframe src ="{{ page.eventbrite }} " frameborder ="0 " height ="500 " width ="100% " vspace ="0 " hspace ="0 " marginheight ="5 " marginwidth ="5 " scrolling ="auto " allowtransparency ="true "> </ iframe >
71
- < div style ="font-family:Helvetica, Arial; font-size:12px; padding:10px 0 5px; margin:2px; width:100%; text-align:left; " >
72
- < a class ="powered-by-eb " style ="color: #ADB0B6; text-decoration: none; " target ="_blank " href ="http://www.eventbrite.com/ "> Powered by Eventbrite</ a >
73
- </ div >
70
+ {% assign eventbrite = page.eventbrite | replace: "https://eventbrite.com/tickets-external?eid=", "" | replace: "&ref=etckt", "" %}
71
+ < div id ="eventbrite-widget-container "> </ div >
72
+ < script src ="https://www.eventbrite.com/static/widgets/eb_widgets.js "> </ script >
73
+ < script type ="text/javascript ">
74
+ var orderComplete = function ( ) {
75
+ window . reload ( ) ;
76
+ } ;
77
+ window . EBWidgets . createWidget ( {
78
+ // Required
79
+ widgetType : 'checkout' ,
80
+ eventId : '{{ eventbrite }}' ,
81
+ iframeContainerId : 'eventbrite-widget-container' ,
82
+ // Optional
83
+ iframeContainerHeight : 500 , // Widget height in pixels. Defaults to a minimum of 425px if not provided
84
+ onOrderComplete : orderComplete // Method called when an order has successfully completed
85
+ } ) ;
86
+ </ script >
74
87
</ div >
75
88
{% else %}
76
89
You can’t perform that action at this time.
0 commit comments