Other Reference

embedIframeUrl

Embeds a Tickaroo iFrame Widget with variable size.

Signature

Tickaroo.embedIframeUrl(options)

Options are:

  • options.url (String, required): The URL to display within the frame.
  • options.autosize (Boolean, default: true) Automatically resize the iframe if the content supports it
  • options.width (String, default: Set to allow 100% in responsive manner) The CSS width to set for the frame
  • options.minWidth (String, default: Set to allow 100% in responsive manner) The CSS min-width to set for the frame
  • options.height (String, default: ‘320px’) The initial CSS height to set for the frame
  • options.skipInitialTracking (Boolean, default: false) Skip first tracking call if tracking is enabled

Example:

<div id="tickaroo-microlive">
</div>

<script>
(function(e,t,n,r,i,s,o){e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date;
s=t.createElement(n),o=t.getElementsByTagName(n)[0];s.async=1;s.src=r;o.parentNode.insertBefore(s,o)}
)(window,document,"script",'//cdn.tickaroo.com/embedjs/tik3.js?client_id=<client_id>',"_tik");

_tik(function() {
  window.microliveIframe = Tickaroo.embedIframeUrl({
    container: "#tickaroo-microlive",
    url: "//56332cf3e4b070c2dabdbc88.microlive.tickaroo.com/widgets/micro_live/gameday?tournament_id=565ec285e4b0ee00d29fa032&date=2015-12-16"
  });
});
</script>

handleWebEmbeds

Handles web embeds.

Signature:

Tickaroo.handleWebEmbeds(options)

Values for the options object:

  • options.container (String or Element) The element to use as a container (id or element) (required)
  • options.selector (String) The CSS selector to match elements that will be handled (required)
  • options.locale (String or undefined) force-set the embed language and skip language detection. Unless a value is set, a language will be detected from the browser settings. Currently, we support ‘en’ and ‘de’ for English and German. (default: undefined)

Example:

<div id="tickaroo-liveblog">
  <div class="js_embed embed tik3-web-embed-twitter" data-tickaroo-web-embed-url="https://twitter.com/bikesport_mag/status/905706199919861760" data-tickaroo-web-embed-handeled="false">
  </div>
</div>

<script>
(function(e,t,n,r,i,s,o){e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date;
s=t.createElement(n),o=t.getElementsByTagName(n)[0];s.async=1;s.src=r;o.parentNode.insertBefore(s,o)}
)(window,document,"script",'//cdn.tickaroo.com/embedjs/tik3.js?client_id=<client_id>',"_tik");

_tik(function() {
  Tickaroo.handleWebEmbeds({container: document.getElementById('ticker'), selector: '.js_embed'});
});
</script>