Explore what we’ve got coming up in our events calendar or catch up on previous events in our on-demand section.
Sorry, we don't have any content that matches your search at the moment
Stay in touch!
Subscribe to our newsletter to find out what’s going on at Peak
document.addEventListener('om.Campaign.afterShow', function(event) {
2
if (event.detail.Campaign.id == 'zjd3hxxogbfvmy2iz0rp') // your slug
3
{
4
var campaignID = 'om-'+ event.detail.Campaign.id;
5
var campaignHeight = document.getElementById(campaignID).offsetHeight;
6
var fixedElement = document.getElementById('top'); //give ID for your fixed element OR document.querySelector('.yourClassName.yourSecondClassName');
7
fixedElement.style.top = campaignHeight + 'px';
8
}
9
});
10
document.addEventListener('om.Campaign.close', function(event) {
11
var fixedElement = document.getElementById('top'); //give ID for your fixed element or document.querySelector('.yourClassName.yourSecondClassName');
12
fixedElement.style.top = 0;
13
});