Blame view

flaskr/templates/estimation-queue-wait.html 976 Bytes
12589c50   Antoine Goutenoir   Design a template...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% extends "base.html" %}


{% block title %}
Estimation {{ estimation.public_id }} is computing… Please wait.
{% endblock %}


{% block hero %}
<div class="jumbotron">
    <h1>{{ content.estimate_queue.hero.title | safe }}</h1>
    {{ content.estimate_queue.hero.description | markdown | safe }}
</div>
{% endblock %}


{% block extra_meta %}
0ff25083   Antoine Goutenoir   Animate some pixe...
18
{# push notifs are good but this complies w/ nojs #}
ab800d03   Antoine Goutenoir   5 seconds polling...
19
<meta http-equiv="refresh" content="5">
12589c50   Antoine Goutenoir   Design a template...
20
21
22
23
{% endblock %}


{% block body %}
0ff25083   Antoine Goutenoir   Animate some pixe...
24
25
26
27
28
29
30
31
32

<div class="text-center">
    <div class="lds-ripple">
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>

3d4f9a08   Antoine Goutenoir   Now that queuing ...
33
34
35
36
37
38
39
40
41
42
{#<a href="/compute" id="compute" class="nojs btn btn-danger btn-lg" target="_blank">WORK!</a>#}
<script type="text/javascript">
var compute_now = function() {
    var xhr = new XMLHttpRequest();
    xhr.onerror = function(e){console.warn("Computation fails.", e)};
    xhr.open('GET', "/compute", true);
    xhr.send(null);
};
compute_now();
</script>
12589c50   Antoine Goutenoir   Design a template...
43
{% endblock %}