layerindex-web/layerindex/static
Paul Eggleton 74b1b9c895 Show update task output more smoothly
We were refreshing the page constantly in order to show output while
a task was running, which basically worked but is horrible. Instead,
write the task output to a file and then use AJAX calls to request
whatever output has been written to the file since the last call
and call this roughly every second. Put the output in a scrollable <pre>
element instead of making it the length of the page, and auto-scroll
to the end (unless the user grabs the scrollbar and pulls it upwards -
it may not be immediately obvious that you can do this if there is a lot
of output since you have to pull it up when the scrolling animation is
not running, but it is possible).

An alternative would be to have used some kind of long-lived HTTP
session or a websocket, but those come with their own set of problems
so I elected to use this much simpler method.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 16:04:49 +12:00
..
css Show update task output more smoothly 2018-09-20 16:04:49 +12:00
fonts Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
img Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
js Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00