Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
442 B

import { sponsorHidden } from '../../stores/page';
function showHideSponsor(shouldHide) {
const ad = document.querySelector('#sponsor-ad');
if (!ad) {
return;
}
if (shouldHide) {
ad.classList.add('hidden');
ad.classList.remove('flex');
} else {
ad.classList.remove('hidden');
ad.classList.add('flex');
}
}
sponsorHidden.listen(showHideSponsor);
window.setTimeout(() => {
showHideSponsor(false);
}, 500);