<iframe id="iframe-container" src="https://events.humanitix.com/trace-presents-our-industry-leader-series-ft-dragonfly/tickets?w=true&p=%23353337" width="100%" height="600px" frameborder="0"></iframe>
<script>
var humanitix = {
findPos: function(obj) {
var curtop = 0;
if (obj.offsetParent) {
do {
curtop += obj.offsetTop;
} while ((obj = obj.offsetParent));
return [curtop];
}
}
};
window.addEventListener('message', function (e) {
if (e.origin !== "https://events.humanitix.com"){
return;
}
var messageData = e.data;
var iframeEl = document.getElementById('iframe-container');
if (iframeEl && messageData && !isNaN(messageData.scrollHeight)){
iframeEl.style.height = messageData.scrollHeight + 'px';
}
if (iframeEl && messageData && messageData.pageChange) {
window.scroll(0, humanitix.findPos(iframeEl));
}
}, false);</script>