mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
25 lines
600 B
JavaScript
25 lines
600 B
JavaScript
(function () {
|
|
function attachAd() {
|
|
const el = document.createElement('script');
|
|
el.setAttribute('type', 'text/javascript');
|
|
el.setAttribute('id', '_carbonads_js');
|
|
el.setAttribute(
|
|
'src',
|
|
'//cdn.carbonads.com/carbon.js?serve=CESI65QJ&placement=taskfiledev'
|
|
);
|
|
el.setAttribute('async', 'async');
|
|
|
|
const wrapper = document.getElementById('sidebar-ads');
|
|
wrapper.innerHTML = '';
|
|
wrapper.appendChild(el);
|
|
}
|
|
|
|
setTimeout(function () {
|
|
attachAd();
|
|
|
|
window.addEventListener('popstate', function () {
|
|
attachAd();
|
|
});
|
|
}, 1000);
|
|
})();
|