Kanbanchi + Google Workspace
We created the Kanbanchi task/project management
tool specifically for Google Workspace to:
Manage your project files
on Google Drive
Still not sure? Learn more about Kanbanchi pricing or book a demo call.
document.addEventListener('DOMContentLoaded', () => {
const buttons = document.querySelectorAll('.features__item input');
const title = document.querySelector('.title');
const bubblesDrive = document.querySelectorAll('.bubbles__drive');
const bubblesGoogle = document.querySelectorAll('.bubbles__google');
const bubblesInterface = document.querySelectorAll('.bubbles__interface');
const bubblesCloud = document.querySelectorAll('.bubbles__cloud');
const centreImg = document.querySelector('.bubble--centre-img');
const kanbanchiImgSrc = 'https://kanbanchistage.wpengine.com/wp-content/themes/kanbanchi-v4/img/logo.svg';
const cloudImgSrc = 'https://kanbanchistage.wpengine.com/wp-content/uploads/icons/cloud.svg';
let shownBubbles = bubblesDrive; const fadeBubbles = (bubbles) => {
bubbles.forEach((bubble, index) => {
setTimeout(() => {
bubble.classList.add('fadein');
bubble.classList.remove('fadeout')
setTimeout(()=> {
bubble.classList.remove('show');
}, 500)
}, 300 * index);
})
} const showBubbles = (bubbles) => {
if (bubbles === bubblesCloud) {
centreImg.src = cloudImgSrc;
} else if (bubbles !== bubblesCloud && centreImg.src === cloudImgSrc) {
centreImg.src = kanbanchiImgSrc;
} bubbles.forEach((bubble, index) => {
setTimeout(() => {
bubble.classList.add('show');
bubble.classList.add('fadeout');
}, 300 * index)
})
} bubblesDrive.forEach((bubble, index) => {
setTimeout(() => {
bubble.classList.add('show');
bubble.classList.add('fadeout');
}, 300 * index)
})
buttons.forEach(button => {
button.addEventListener('click', (event) => {
if (!event.target.classList.contains('selected')) {
buttons.forEach(button => {
button.classList.remove('selected')
})
event.target.classList.add('selected') if (event.target.value == 1) {
title.textContent = "Manage your project files on Google Drive";
requestAnimationFrame(()=>{
fadeBubbles(shownBubbles)
shownBubbles = bubblesDrive;
showBubbles(bubblesDrive);
})
} else if (event.target.value == 2) {
title.textContent = "Natively connect task management to other Google apps";
requestAnimationFrame(()=>{
fadeBubbles(shownBubbles)
shownBubbles = bubblesGoogle;
showBubbles(bubblesGoogle);
})
} else if (event.target.value == 3) {
title.textContent = "Feel at home with familiar interfaces";
requestAnimationFrame(()=>{
fadeBubbles(shownBubbles)
shownBubbles = bubblesInterface;
showBubbles(bubblesInterface);})
} else if (event.target.value == 4) {
title.textContent = "Keep all your important data in Google Cloud";
requestAnimationFrame(()=>{
fadeBubbles(shownBubbles)
shownBubbles = bubblesCloud;
showBubbles(bubblesCloud);
})
}
}
});
}) //изменение высоты body
const footer = document.querySelector('.footer');
const body = document.querySelector('body'); function update () {
const bodyHeight = document.documentElement.clientHeight;
const footerBottom = footer.getBoundingClientRect().bottom; if (footerBottom bodyHeight) {
body.style.height = 'unset'
} } document.addEventListener('scroll', update);
window.addEventListener('resize', update);
});