mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-02-17 18:50:08 +00:00
Sometimes I hate coding
This commit is contained in:
parent
f26e76d822
commit
341d5b0ee8
|
@ -34,7 +34,7 @@ function popUpShow(titleText, subtitleText, bodyContent=null, userActions=null)
|
||||||
// Stop scrolling and show popup
|
// Stop scrolling and show popup
|
||||||
document.querySelector("html").style.overflow = "hidden";
|
document.querySelector("html").style.overflow = "hidden";
|
||||||
popupSelector.style.display = 'block';
|
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() {
|
function popupDissmiss() {
|
||||||
|
@ -42,5 +42,5 @@ function popupDissmiss() {
|
||||||
|
|
||||||
document.querySelector("html").style.overflow = "auto";
|
document.querySelector("html").style.overflow = "auto";
|
||||||
popupSelector.classList.remove('active');
|
popupSelector.classList.remove('active');
|
||||||
setTimeout(function() { popupSelector.style.display = 'none'; }, 200);
|
setTimeout(() => { popupSelector.style.display = 'none'; }, 200);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,10 +52,10 @@ function tabDragStart(event) {
|
||||||
|
|
||||||
uploadTab.classList.add("dragging");
|
uploadTab.classList.add("dragging");
|
||||||
|
|
||||||
document.addEventListener('touchmove', event => {
|
document.addEventListener('touchmove', moving => {
|
||||||
if (uploadTab.classList.contains("dragging")) {
|
if (uploadTab.classList.contains("dragging")) {
|
||||||
if (event.touches[0].clientY - offset >= 0) {
|
if (moving.touches[0].clientY - offset >= 0) {
|
||||||
uploadTab.dataset.lastY = event.touches[0].clientY;
|
uploadTab.dataset.lastY = moving.touches[0].clientY;
|
||||||
} else {
|
} else {
|
||||||
uploadTab.dataset.lastY = offset;
|
uploadTab.dataset.lastY = offset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,8 @@ class OnlyLegs(Application):
|
||||||
Gunicorn application
|
Gunicorn application
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, options={}): # skipcq: PYL-W0231 # pylint: disable=W0231, W0102
|
# TODO: Make this not shit, thanks
|
||||||
|
def __init__(self, options={}): # skipcq: PYL-W0231 # pylint: disable=W0231
|
||||||
self.usage = None
|
self.usage = None
|
||||||
self.callable = None
|
self.callable = None
|
||||||
self.options = options
|
self.options = options
|
||||||
|
|
Loading…
Reference in a new issue