Some new icons with logic (not completed yet)

This commit is contained in:
Daniel
2025-04-15 10:03:39 +02:00
parent 135802c626
commit 737e29975a
6 changed files with 61 additions and 25 deletions

View File

@@ -81,7 +81,7 @@ function to_bool(string) {
// example: localhost:5000/SEAWebClient.html?hp=ldmzolliker:5000&dc=1
// hostPort given and debugCommunication switched on
new Settings()
.treat("debugCommunication", "dc", 0, 2) // 1: debug synchronous comm. 2: debug syn and asyn comm
.treat("debugCommunication", "dc", 0, 0) // 1: debug synchronous comm. 2: debug syn and asyn comm
.treat("debugGraphics", "dg", to_bool, false)
.treat("hostPort", "hp", 0, location.hostname + ":" + location.port)
.treat("showMain", "sm", to_bool, true)
@@ -179,15 +179,24 @@ window.onload = function() {
adjustGrid();
let crossElement = document.getElementById("close-cross");
// crossElement.innerHTML = '<img class = "icon-graphics" src="res/icon_close.png">';
if(window.hideRightPart){
document.body.removeChild(crossElement);
}else{
crossElement.onclick = function(){
console.log(showParams);
if (showParams) {
showParams = false;
document.getElementById('close-cross').innerHTML = '<img class = "icon-close" src="res/icon_sinus.png">';
} else {
window.wideGraphs = ! window.wideGraphs;
if (window.wideGraphs) {
window.wideGraphs = false;
document.getElementById('close-cross').innerHTML = '<img class = "icon-close" src="res/icon_sinus.png">';
} else {
window.wideGraphs = true;
document.getElementById('close-cross').innerHTML = '<img class = "icon-close" src="res/icon_modules.png">';
}
}
adjustGrid();
}