Apostle works for a great variety of industries. Ensure that all social media activities of your team are efficiently organized and planned in a simple dashboard. Read more about how our clients became successful on social media
$(document).ready(function() {
// Only execute if the URL contains the Dutch slug '/nl'
if(window.location.href.indexOf('/nl') > -1) {
console.log('is NL');
// Check if the URL does not contain the word 'webinars'
if(window.location.href.indexOf('webinars') === -1) {
console.log('is not webinars');
const modal = $('#webinar-modal');
function webModal(){
console.log('show modal');
modal.addClass('active');
}
function closeModal(){
setCookie('hasSeenBanner', '1', '20');
modal.removeClass('active');
}
$('#close-webinar-modal').click(function() {
closeModal();
});
setTimeout(() => {
console.log('open modal');
webModal();
}, 5000);
// Below you find three function for setting a cookie, getting a cookie and eventually checking whether the cookie exists
function setCookie(cname, cvalue, exdays) {
const d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
let expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(cname) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(';');
for(let i = 0; i
Schrijf je in voor onze webinar!
Groei van Social Publishing naar een Employee Advocacy Strategie binnen 6 Maanden