Commit a5af1953 authored by Ryan Herbert's avatar Ryan Herbert

main.js appease the linter

The linter was failing the CI pipeline due to the multi-line string.
Instead just use an array of strings that we join to build the final

See #3606
parent 0f1a3b39
Pipeline #47835 failed with stages
in 3 minutes and 56 seconds
...@@ -54,23 +54,23 @@ try { ...@@ -54,23 +54,23 @@ try {
/* use template to create DOM elements from string */ /* use template to create DOM elements from string */
var template = document.createElement('template'); var template = document.createElement('template');
template.innerHTML = "<div id=\"visu-separator\" >...\ template.innerHTML = ["<div id=\"visu-separator\" >...",
<div class=\"visu2_menu_anchor devel-mode\">\ "<div class=\"visu2_menu_anchor devel-mode\">",
<div class=\"visu2_menu\">\ "<div class=\"visu2_menu\">",
<div class=\"visu2_menu_content\">\ "<div class=\"visu2_menu_content\">",
<label for=\"visu2_mode_sp\" onclick=\"switch_visu2('scatterplot')\">\ "<label for=\"visu2_mode_sp\" onclick=\"switch_visu2('scatterplot')\">",
scatterplot\ "scatterplot",
<input id=\"visu2_mode_sp\" name=\"visu2_mode\" type=\"radio\"/>\ "<input id=\"visu2_mode_sp\" name=\"visu2_mode\" type=\"radio\"/>",
</label>\ "</label>",
<label for=\"visu2_mode_gr\" onclick=\"switch_visu2('graph')\">\ "<label for=\"visu2_mode_gr\" onclick=\"switch_visu2('graph')\">",
graph\ "graph",
<input id=\"visu2_mode_gr\" name=\"visu2_mode\" type=\"radio\" checked/>\ "<input id=\"visu2_mode_gr\" name=\"visu2_mode\" type=\"radio\" checked/>",
</label>\ "</label>",
</div>\ "</div>",
mode\ "mode",
</div>\ "</div>",
</div>\ "</div>",
</div>"; "</div>"].join('');
var separator = template.content.firstChild; var separator = template.content.firstChild;
var panel_instructions = [{'mid-container': ["left-container", "visu-container"]},"bot-container"]; var panel_instructions = [{'mid-container': ["left-container", "visu-container"]},"bot-container"];
vmi.setupPanels(panel_instructions, document.body); vmi.setupPanels(panel_instructions, document.body);
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