##// END OF EJS Templates
New server with req-rep and thread for updating status
New server with req-rep and thread for updating status

File last commit:

r8:f4b2e1f46d1e master
r10:07b9b665c767
Show More
rti.html
22 lines | 566 B | text/html | HtmlDjangoLexer
{% extends 'base.html' %} {% block content %}
<div id="plot"></div>
{% endblock content %} {% block script %}
<script>
let flag = true;
function plot(data) {
if (flag === true) {
flag = false;
plt = new PcolorBuffer({
div: 'plot',
data: data,
key: 'rti',
props: { title: '{{title}}', zmin: 15, zmax: 35, throttle: 10, timespan: 8, colormap: 'Jet' },
});
return true;
} else {
plt.update(data);
return false;
}
}
</script> {% endblock script %}