blog update

This commit is contained in:
James Feng Cao 2019-11-20 11:21:39 +08:00
parent 3bd5cfc16a
commit 237a5e7f6d
48 changed files with 1585 additions and 1603 deletions

View file

@ -346,22 +346,3 @@ if(window.isPost){
}
}
// donate
/*****************************************************************************/
const donateButton = document.getElementById('donate-button')
const donateImgContainer = document.getElementById('donate-img-container')
const donateImg = document.getElementById('donate-img')
if(donateButton) {
donateButton.addEventListener('click', () => {
if (donateImgContainer.classList.contains('hide')) {
donateImgContainer.classList.remove('hide')
} else {
donateImgContainer.classList.add('hide')
}
})
donateImg.src = donateImg.dataset.src
}