V
V
vante_scribaxxi2017-11-03 20:26:39
JavaScript
vante_scribaxxi, 2017-11-03 20:26:39

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

1 answer(s)
A
Andrew, 2019-08-09
@KickeRockK

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 question

Ask a Question

731 491 924 answers to any question