GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit 21469c76 authored by Zixian Cai's avatar Zixian Cai

Clean generated HTML

parent 431782ea
......@@ -20,16 +20,15 @@
{{ responsive_header("linePlot") }}
var data = [];
var x = {{ timeline_revisions|safe }};
var None = null; // emulate Python None
{% for keyname in timeline %}
{% if "zebu" in keyname or "mu" in keyname %}
var trace = {type: "scatter"};
{% else %}
var trace = {type: "scatter", visible: 'legendonly'};
{% endif %}
var None = null; // emulate Python None
var y = {{ timeline[keyname] }};
trace["x"] = x;
trace["y"] = y;
trace["y"] = {{ timeline[keyname] }};
trace["name"] = "{{ keyname }}";
data.push(trace);
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment