impresso / eldorado

The Eldorado workshop, supported by the impresso project, will bring together a group of historians, librarians, computer scientists and designers to discuss how digitisation is changing historical research practices.
https://impresso.github.io/eldorado/
MIT License
1 stars 1 forks source link

small things to check #5

Open e-maud opened 4 years ago

e-maud commented 4 years ago
PaulSchroeder commented 4 years ago
e-maud commented 4 years ago

@PaulSchroeder and @Bunoute Many thanks for all the small fixes! Yes, I was trying to embed eventbrite widget, but markdown did not want.

I copy paste the widget beneath, in case, which could also be used within mailchimp for the communication:

Eventbrite checkout as a button that opens the checkout modal over your content:

<!-- Noscript content for added SEO -->
<noscript><a href="https://www.eventbrite.com/e/eldorado-workshop-registration-91108149929" rel="noopener noreferrer" target="_blank"></noscript>
<!-- You can customize this button any way you like -->
<button id="eventbrite-widget-modal-trigger-91108149929" type="button">Buy Tickets</button>
<noscript></a>Buy Tickets on Eventbrite</noscript>

<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({
        widgetType: 'checkout',
        eventId: '91108149929',
        modal: true,
        modalTriggerElementId: 'eventbrite-widget-modal-trigger-91108149929',
        onOrderComplete: exampleCallback
    });
</script>

and as embedded on the page with the content:

<div id="eventbrite-widget-container-91108149929"></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: '91108149929',
        iframeContainerId: 'eventbrite-widget-container-91108149929',

        // 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>
PaulSchroeder commented 4 years ago

I tested the both scripts on this (hidden) page : https://impresso-project.ch/eldorado/style-guide The first one checkout as a button was missing a the trigger element, and even after adding it, the script threw 403 (forbidden) errors ... However using the embedded version seems to work fine. I tested only the first step of the registration process ...