Answer the question
In order to leave comments, you need to log in
What is the most efficient way to glue flask with an application?
There is a python script which is passed a list of parameters - links.
The script processes each of them, and after - gives out the answer.
It is necessary to make two fields on flask - input and output (the result of each processed link is immediately written to this field), and two buttons - stop / start.
The stop button stops the process of processing links, and the start button starts it.
In fact, you need to somehow make it so that the creak can be paused / resumed at any time.
Thanks in advance for all helpful replies!
PS Preferably the whole web in one file
Answer the question
In order to leave comments, you need to log in
So you got it, before the scroll, you have it === 0. Do you
want to see it on every scroll?
var lastScrollTop = 0,
scrollDirection = 0;
$(window).scroll(function(event){
var st = $(this).scrollTop();
if (st > lastScrollTop){
scrollDirection = 1;
} else {
scrollDirection = 2;
}
lastScrollTop = st;
console.log(scrollDirection);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question