DMC
+
HRPT
ZEBRA
POLDI
@@ -27,7 +27,7 @@
RITA2
EIGER
SANS 1
- SANS 2
+
AMOR
BOA
PREP0
@@ -40,6 +40,10 @@
PREP7
PREP8
PREP9
+ PREPA
+ PREPB
+ PREPC
+ PREPD
LAB0
LAB1
LAB2
diff --git a/client/jsFiles/SEAWebClientCommunication.js b/client/jsFiles/SEAWebClientCommunication.js
index ae233a2..389462a 100644
--- a/client/jsFiles/SEAWebClientCommunication.js
+++ b/client/jsFiles/SEAWebClientCommunication.js
@@ -224,7 +224,7 @@ function updateValues(message, src) {
} else if (type == "checkbox") {
var row = matches[j].parentNode.parentNode;
row.style.backgroundColor = "white";
- console.log('CBX', matches[j].name, message, Boolean(value && value != 'false'));
+ // console.log('CBX', matches[j].name, message, Boolean(value && value != 'false'));
matches[j].checked = Boolean(value && value != 'false');
} else if (type == "enum") {
matches[j].style.display = "block";
@@ -287,19 +287,22 @@ function successHandler(s, message) {
insertSlide(2, "", "parameters", createContent(2, {components:[]}));
} else {
if (s < 0) { // redraw: check for slides in all swiper instances
+ // not used any more?
for (var isw = 0; isw < MAXBLOCK; isw ++) {
var isl = findSlide(isw, message.path);
- var slide = swiper[isl].slides[i];
- if (slide) {
- console.log("redraw", isw);
- replaceSlideContent(slide, message.title,
- createContent(isw, message));
+ if (isl !== null) {
+ var slide = swiper[isw].slides[isl];
+ if (slide) {
+ console.log("redraw", isw, isl);
+ replaceSlideContent(slide, message.title,
+ createContent(isw, message));
+ }
}
}
} else {
// insertSlide(s, message.title, message.path, createContent(s, message));
let sLocal = paramSlider[s];
- isl = insertSlide(sLocal, message.title, "parameters", createContent(sLocal, message));
+ isl = insertSlide(sLocal, message.title, "parameters", createContent(sLocal, message));
swiper[sLocal].slideTo(isl); /* go to found slide */
}
}
diff --git a/client/jsFiles/SEAWebClientGraphics.js b/client/jsFiles/SEAWebClientGraphics.js
index fd6cadb..d1dfa72 100644
--- a/client/jsFiles/SEAWebClientGraphics.js
+++ b/client/jsFiles/SEAWebClientGraphics.js
@@ -798,6 +798,7 @@ let graphs = (function (){
}
function resizeHandler() {
+ if (blocks) { // prevent error when graphics are not used
createGraphs();
adjustLegends();
if (cursorLinePos) {
@@ -805,6 +806,7 @@ let graphs = (function (){
cursorLine(null);
update();
}
+ }
}
window.addEventListener('resize', resizeHandler);
@@ -1463,4 +1465,4 @@ function updateCharts2(graph){
function createCharts2(arg) {
console.log('C2', arg)
-}
\ No newline at end of file
+}
diff --git a/client/jsFiles/SEAWebClientGroup.js b/client/jsFiles/SEAWebClientGroup.js
index 704ed43..bbca7fd 100644
--- a/client/jsFiles/SEAWebClientGroup.js
+++ b/client/jsFiles/SEAWebClientGroup.js
@@ -75,7 +75,7 @@ function create_group_row(s, component) {
slideNames[s] = component.name;
document.title = "SEA "+ clientTitle + " " + slideNames.join(" ");
history.pushState({func: "gotoGroups", funarg: slideNames.join("%20")}, document.title, "#" + slideNames.join("%20"));
- getGroup(s, name);
+ getGroup(s, component.name);
}
if (title === "console" || title === "device config") {
@@ -139,7 +139,6 @@ function create_pushbutton_row(s, component) {
var name = component.name;
var command = component.command;
var left = createTitle(component);
- console.log(info);
left.id = component.name;
left.name = component.title;
@@ -187,7 +186,7 @@ function create_input_row(s, component) {
var name = component.name;
var command = component.command;
- if (info) {
+ if (component.info) {
var infoBox = createInfo(component);
}
var left = createTitle(component);
diff --git a/client/jsFiles/SEAWebClientMain.js b/client/jsFiles/SEAWebClientMain.js
index 1e8602b..7f2ffe7 100644
--- a/client/jsFiles/SEAWebClientMain.js
+++ b/client/jsFiles/SEAWebClientMain.js
@@ -75,7 +75,7 @@ new Settings()
.treat("showMain", "sm", to_bool, true)
.treat("showConsole", "sc", to_bool, true)
.treat("showOverview", "so", to_bool, true)
- .treat("showGraphics", "sg", to_bool, true)
+ .treat("showGraphics", "sg", to_bool, false)
.treat("showAsync", "sa", to_bool, false)
function loadFirstBlocks() {
diff --git a/client/jsFiles/SEAWebClientResponsivity.js b/client/jsFiles/SEAWebClientResponsivity.js
index 5d5708a..eeed0d1 100644
--- a/client/jsFiles/SEAWebClientResponsivity.js
+++ b/client/jsFiles/SEAWebClientResponsivity.js
@@ -69,7 +69,7 @@ function adjustGrid() {
switch (nColumns) {
case 1:
- if (menuMode) {
+ if (menuMode) {
leftWidth = Math.min(100, MINWIDTH / width * 100);
style(0,leftWidth + "vw","100vh");
style(1); // hide
@@ -147,4 +147,4 @@ function style(s, width, height) {
elements[s].style.float = "left";
}
-let isTouchDevice = !!('ontouchstart' in window) || !!('msmaxtouchpoints' in window.navigator);
\ No newline at end of file
+let isTouchDevice = !!('ontouchstart' in window) || !!('msmaxtouchpoints' in window.navigator);
diff --git a/client/jsFiles/SEAWebClientSwiper.js b/client/jsFiles/SEAWebClientSwiper.js
index 6bc99e0..a62e23d 100644
--- a/client/jsFiles/SEAWebClientSwiper.js
+++ b/client/jsFiles/SEAWebClientSwiper.js
@@ -171,7 +171,7 @@ function getSlideNames() {
for (var s=0; s