mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
blog update
This commit is contained in:
parent
3bd5cfc16a
commit
237a5e7f6d
48 changed files with 1585 additions and 1603 deletions
19
js/index.js
19
js/index.js
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue