estimation-queue-wait.html
976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% 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 %}
{# push notifs are good but this complies w/ nojs #}
<meta http-equiv="refresh" content="4">
{% endblock %}
{% block body %}
<div class="text-center">
<div class="lds-ripple">
<div></div>
<div></div>
<div></div>
</div>
</div>
{#<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>
{% endblock %}