Skip to content

Instantly share code, notes, and snippets.

@tatey
Last active December 26, 2015 22:49
Show Gist options
  • Save tatey/7226311 to your computer and use it in GitHub Desktop.
Save tatey/7226311 to your computer and use it in GitHub Desktop.
Specifying a partnerId.
<a id="tbd-btn-1" href="#">Go with friends</a>
<script type="text/javascript" src="https://js.thebestday.com/v1.js"></script>
<script type="text/javascript">
var openModal = function() {
var plan = new theBestDay.widget.Plan({
title: "Surry Hills Lunch Time"
});
var modal = new theBestDay.widget.Modal();
modal.open({
plan: plan,
partnerId: "1"
});
}
var btn = document.getElementById('tbd-btn-1');
btn.addEventListener('click', openModal);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment