mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Sometimes I hate coding
This commit is contained in:
parent
f26e76d822
commit
341d5b0ee8
3 changed files with 7 additions and 6 deletions
|
@ -34,7 +34,7 @@ function popUpShow(titleText, subtitleText, bodyContent=null, userActions=null)
|
|||
// Stop scrolling and show popup
|
||||
document.querySelector("html").style.overflow = "hidden";
|
||||
popupSelector.style.display = 'block';
|
||||
setTimeout(function() { popupSelector.classList.add('active') }, 5); // 2ms delay to allow for css transition >:C
|
||||
setTimeout(() => { popupSelector.classList.add('active') }, 5); // 2ms delay to allow for css transition >:C
|
||||
}
|
||||
|
||||
function popupDissmiss() {
|
||||
|
@ -42,5 +42,5 @@ function popupDissmiss() {
|
|||
|
||||
document.querySelector("html").style.overflow = "auto";
|
||||
popupSelector.classList.remove('active');
|
||||
setTimeout(function() { popupSelector.style.display = 'none'; }, 200);
|
||||
setTimeout(() => { popupSelector.style.display = 'none'; }, 200);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue