1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

refactor(website): rename docs -> website

This commit is contained in:
Pete Davison
2024-03-19 19:24:15 +00:00
parent 5538636373
commit 7c61a59ecb
83 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
(function () {
function attachAd() {
var wrapper = document.getElementById('sidebar-ads');
if (wrapper) {
var 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');
wrapper.innerHTML = '';
wrapper.appendChild(el);
}
}
setTimeout(function () {
attachAd();
var currentPath = window.location.pathname;
setInterval(function () {
if (currentPath !== window.location.pathname) {
currentPath = window.location.pathname;
attachAd();
}
}, 1000);
}, 1000);
})();