if(!window.hmt_widgets) window.hmt_widgets = [] if(window.hmt_widgets.length == 0) document.write(''); document.write(''); window.hmt_widgets.push({ widget: 'cart', id: 'hmt_662cd0694e05c', opts: {"apikey":"dbee6c9f6c8f2b3af3af2d3617c8c0b0","btn_class":"dark","rand_hash":"662cd0694e05c"}}); window.onload = function(){ // window.emmiter = riot.observable() for(var i = 0;i < window.hmt_widgets.length; i++){ var theStore = new (function(){this.event = new eventStore(this),this.cart = new cartStore(this),this.opts = new optsStore(this),this.router = new routerStore(this)}) theStore.opts.trigger('load', window.hmt_widgets[i].opts, function(){ riot.mount('#' + window.hmt_widgets[i].id, { store: theStore }); }) } var head = document.head link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = 'https://cdn.widgets.holdmyticket.com/dist/bundle.css?v=v150'; head.appendChild(link); } function isSafari(){ return !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/) || /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; } /** * Check if the link for tickets should open in a new tab * * @param {Object} opts * @returns {Boolean} */ function openTicketsLinkExternal(opts){ return (opts.store.opts.settings.open_external || false) == 'true' || isSafari(); }