Add highlight to current section on header links, add rating warning on social page, add bribribribribri's website to hotlinks.
This commit is contained in:
parent
e29ef5d30b
commit
f4fc14c66d
13 changed files with 58 additions and 11 deletions
13
static/scripts/social.js
Normal file
13
static/scripts/social.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const socialPosts = document.querySelector('#socialPosts');
|
||||
const socialAlert = document.querySelector('#socialAlert');
|
||||
|
||||
socialPosts.classList.add('blurred');
|
||||
|
||||
const continueButton = document.createElement('button');
|
||||
continueButton.innerText = clickHereToContinueLocalized;
|
||||
continueButton.addEventListener('click', () => {
|
||||
socialPosts.classList.remove('blurred');
|
||||
socialAlert.remove();
|
||||
})
|
||||
|
||||
socialAlert.appendChild(continueButton);
|
||||
Loading…
Reference in a new issue