Insert the following snippet with your-token replaced by the token configured in
https://admin.bilesuparadize.lv and your-desired-locale replaced by desired locale in the <head> tag of your HTML
<script>
(function(bi,le,su,pa,ra,di,ze) {
(function load(e,n,t,a,c,o,i){if(!e[t]){e[t]={locale:i,token:o},e[t].changeLocale=function(n){e[t].locale=n,e[t]._changeLocale&&e[t]._changeLocale(n)},e[t].buyEventTickets=function(n){e[t]._buyEventTickets||(e.location.href=c+e[t].locale+"/event/"+n),e[t]._buyEventTickets(n)},e[t].getEvents=async function(){var e=await fetch(c+"/v1.0/embed/"+o+"/events.json");return await e.json()};var l=n.createElement(a);l.src=c+"/v1.0/embed/index.js";var s=n.getElementsByTagName(a)[0];s.parentNode.insertBefore(l,s)}}
)(window,document,'bilesuparadize','script','https://www.bilesuparadize.lv',bi,le)
})('{your-token}', '{your-desired-locale}');
</script>
Wherever ticket purchasing should be enabled, create a link or button with URI in the format bilesuparadize://buy-event-tickets/your-desired-event-id
or an element with data attribute data-bilesuparadize-buy-event-tickets="your-desired-event-id"
To initiate ticket purchase procedure programmatically as simple API is available:
window.bilesuparadize.buyEventTickets(your-desired-event-id)
window.bilesuparadize.changeLocale('en')
window.bilesuparadize.getEvents()
Wherever a ticket purchasing block should be visible place the following code with your-token replaced by the token configured in https://admin.bilesuparadize.lv and your-desired-locale replaced by lv, ru or en
<section><template shadowrootmode="open"><style>div,iframe{width:100%}div{position:relative;aspect-ratio:1/1}@media (min-aspect-ratio:10/19),@supports not (aspect-ratio:1/1){div{height:0;padding-top:100%}}@media (min-aspect-ratio:1/1){div{max-height:500px;height:100%;padding-top:0}}@media (max-aspect-ratio:10/19){div{aspect-ratio:9/16}}iframe{position:absolute;top:0;left:0;height:100%;border:none}</style><div><iframe src="https://www.bilesuparadize.lv/v1.0/embed/your-token/event/your-desired-event-id/buy-tickets?locale=your-desired-locale" allow="payment"></iframe></div></template></section>