+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <link rel="stylesheet" type="text/css" href="files/tab.css">
+ <link rel="icon" type="image/x-icon" href="icons/favicon.ico">
+ <title>QA - Main</title>
+ <script type='module'>
+ import {openTab, openTabURL, updateDay, updateTime, updateURL} from './files/functions_base.mjs';
+ window.openTab = openTab;
+ openTabURL();
+ window.updateURL = updateURL;
+ window.updateTime = () => updateTime("TDC");
+ updateDay("TDC");
+ setInterval(updateDay, 5*60*1000, "TDC");
+ </script>
+
+ <script type='module'>
+ import { initUpdate, update , updateOtherTabs} from './files/functions.mjs';
+ import {createPalette } from './files/functions_base.mjs';
+ let histnames =
+ [
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon0&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon1&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon2&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon3&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon4&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon5&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon6&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon7&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon8&" ],
+ [ "../../mon/gethmonroot.cgi?file=TdcCalMon9&" ],
+ ];
+
+
+
+ let histoptions =
+ [
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 100,
+ PAINTER: {_color_palette: {palette: createPalette([-10,-9,9,10],['red','yellow','blue','red'])}}}
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 100,
+ PAINTER: {_color_palette: {palette: createPalette([0,1,10,25,35,50,50.1,200],['red','#008800','#00ff00','#ffff00','#ffaaaa','#ff00ff','#aa0000','#000000'],200)}}}
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 100,
+ }
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 100,
+ }
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 1000,
+ PAINTER: {_color_palette: {palette: createPalette([19,19.8,20,20.2,29.8,30,30.2,31],['red','red','green','red','red','blue','red','red'],1000)}}}
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 1000,
+ PAINTER: {_color_palette: {palette: createPalette([0,0.1,40,50,51,100,120,120.1,400],['red','#008800','#00ff00','#ffff00','orange','#ffaaaa','#ff00ff','#aa0000','#000000'],1000)}}}
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 100,
+ }
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 100,
+ }
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 1000,
+ PAINTER: {_color_palette: {palette: createPalette([0,0.000001,0.0009,0.001,0.1],['#004400','#00ff00','#33ff00','yellow','red'],1000)}}}
+ ],
+ [
+ {fXaxis: {fLabelSize: 0.01}, fOption: 'col0z',
+ CONTOURS: 1000,
+ PAINTER: {_color_palette: {palette: createPalette([0,0.000001,21,21.6,22,43,44,50],['#33ff00','#ff0000','#ff0000','#ff5500','#00ff00','yellow','red','red'],1000)}}}
+ ],
+ ];
+
+ let helptext =
+ [
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ [
+ "",
+ ],
+ ];
+
+
+ await initUpdate(histnames, helptext, {Palette : 55});
+ const day = document.getElementById('daySel').value;
+ const time = document.getElementById('timeSel').value;
+ update(histnames, histoptions, day, time);
+ // updateOtherTabs(histnames, histoptions, day, time);
+ // setInterval(() =>
+ // {
+ // const day = document.getElementById('daySel').value;
+ // const time = document.getElementById('timeSel').value;
+ // update(histnames, histoptions, day, time);
+ // }, 3000
+ // );
+ document.updateAll = () =>
+ {
+ const day = document.getElementById('daySel').value;
+ const time = document.getElementById('timeSel').value;
+ update(histnames, histoptions, day, time);
+ // updateOtherTabs(histnames, histoptions, day, time);
+ };
+ </script>
+</head>
+
+<body>
+ <div class="tab">
+ <div class="tab-buttons">
+ <a href="/hadesroot"><button><b>TDC</b></button></a>
+ <button class="tablinks" onclick="openTab(event, 't0');updateAll()">LE</button>
+ <button class="tablinks" onclick="openTab(event, 't1');updateAll()">LE σ</button>
+ <button class="tablinks" onclick="openTab(event, 't2');updateAll()">Ign LE outliers</button>
+ <button class="tablinks" onclick="openTab(event, 't3');updateAll()">Ign LE hits</button>
+ <button class="tablinks" onclick="openTab(event, 't4');updateAll()">ToT</button>
+ <button class="tablinks" onclick="openTab(event, 't5');updateAll()">ToT σ</button>
+ <button class="tablinks" onclick="openTab(event, 't6');updateAll()">Ign ToT outliers</button>
+ <button class="tablinks" onclick="openTab(event, 't7');updateAll()">Ign ToT</button>
+ <button class="tablinks" onclick="openTab(event, 't8');updateAll()">Corrected</button>
+ <button class="tablinks" onclick="openTab(event, 't9');updateAll()">ToT Shifts</button>
+ </div>
+ <div class="selector">
+ <select id="daySel" onchange="updateTime()"></select>
+ <select id="timeSel" onchange="updateAll();updateURL()" ></select>
+ </div>
+ </div>
+
+ <div id="t0" class="tabcontent cell1x1 ">
+ <div><div id="t0d0"></div></div>
+ </div>
+ <div id="t1" class="tabcontent cell1x1 ">
+ <div><div id="t1d0"></div></div>
+ </div>
+ <div id="t2" class="tabcontent cell1x1 ">
+ <div><div id="t2d0"></div></div>
+ </div>
+ <div id="t3" class="tabcontent cell1x1 ">
+ <div><div id="t3d0"></div></div>
+ </div>
+ <div id="t4" class="tabcontent cell1x1 ">
+ <div><div id="t4d0"></div></div>
+ </div>
+ <div id="t5" class="tabcontent cell1x1 ">
+ <div><div id="t5d0"></div></div>
+ </div>
+ <div id="t6" class="tabcontent cell1x1 ">
+ <div><div id="t6d0"></div></div>
+ </div>
+ <div id="t7" class="tabcontent cell1x1 ">
+ <div><div id="t7d0"></div></div>
+ </div>
+ <div id="t8" class="tabcontent cell1x1 ">
+ <div><div id="t8d0"></div></div>
+ </div>
+ <div id="t9" class="tabcontent cell1x1 ">
+ <div><div id="t9d0"></div></div>
+ </div>
+
+</body>