Skip to content
Snippets Groups Projects
Commit b3903621 authored by Emanuele Laface's avatar Emanuele Laface
Browse files

Removed TS2 from POS

parent e3b7ccea
Branches
Tags
No related merge requests found
Pipeline #31436 passed
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
"3": 1, "3": 1,
"4": 1 "4": 1
}, },
"col_width": 3, "col_width": 4,
"widgets": [ "widgets": [
{ {
"type": "html", "type": "html",
"settings": { "settings": {
"html": "datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nvar cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\ndocument.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"\";\nif (cols == 4){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 56px; color:#ffffff !important; position: relative; bottom: 35px; left: 120px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\nif (cols == 3){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 46px; color:#ffffff !important; position: relative; bottom: 45px; left: 100px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\n\nif (cols == 2){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\nif (cols == 1){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"></div></img></div>\";\n document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"Public Operations Screen\";\n}\n\nreturn text\n\n", "html": "datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nvar cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\ndocument.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"\";\nif (cols == 4){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 56px; color:#ffffff !important; position: relative; bottom: 35px; left: 160px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\nif (cols == 3){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 46px; color:#ffffff !important; position: relative; bottom: 45px; left: 100px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\n\nif (cols == 2){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\nif (cols == 1){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"></div></img></div>\";\n document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"Public Operations Screen\";\n}\n\nreturn text\n\n",
"height": 2 "height": 2
} }
} }
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
"row": { "row": {
"1": 11, "1": 11,
"2": 7, "2": 7,
"3": 7, "3": 11,
"4": 11, "4": 11,
"5": 7, "5": 7,
"6": 7, "6": 7,
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
"col": { "col": {
"1": 1, "1": 1,
"2": 2, "2": 2,
"3": 2, "3": 1,
"4": 1, "4": 1,
"5": 2, "5": 2,
"6": 2, "6": 2,
...@@ -96,66 +96,27 @@ ...@@ -96,66 +96,27 @@
"type": "html", "type": "html",
"settings": { "settings": {
"html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:Msg\"][\"timestamp\"]*1e3);\nreturn \"<div class=\\\"tw-value\\\" style=\\\"font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;\\\" title=\\\"\"+date+\"\\\">\"+ datasources[\"POS\"][\"NSO-LCR:Ops:Msg\"][\"value\"] +\"</div>\"", "html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:Msg\"][\"timestamp\"]*1e3);\nreturn \"<div class=\\\"tw-value\\\" style=\\\"font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;\\\" title=\\\"\"+date+\"\\\">\"+ datasources[\"POS\"][\"NSO-LCR:Ops:Msg\"][\"value\"] +\"</div>\"",
"height": 1 "height": 2
} }
} }
] ]
}, },
{ {
"title": "Test Stand 2", "title": "Current time",
"width": 1, "width": 1,
"row": { "row": {
"1": 17, "1": 81,
"2": 11, "2": 11,
"3": 7, "3": 7,
"4": 17, "4": 19,
"5": 7,
"6": 7,
"7": 7
},
"col": {
"1": 1,
"2": 1,
"3": 3,
"4": 1,
"5": 3,
"6": 3,
"7": 3
},
"col_width": 1,
"widgets": [
{
"type": "html",
"settings": {
"html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:TSSL\"][\"timestamp\"]*1e3);\nreturn \"<div class=\\\"widget\\\" data-bind=\\\"widget: true, css:{fillsize:fillSize}\\\"><div class=\\\"tw-display\\\"><div class=\\\"tw-tr\\\"><h2 class=\\\"section-title tw-title tw-td\\\">Shift Leader</h2></div><div class=\\\"tw-tr\\\"><div class=\\\"tw-value-wrapper tw-td\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; max-width: 100%;\\\" title=\\\" \"+date+\"\\\">\"+datasources[\"POS\"][\"NSO-LCR:Ops:TSSL\"][\"value\"]+\"</div><div class=\\\"tw-unit\\\" style=\\\"display: none;\\\"></div></div></div><div class=\\\"tw-tr\\\"><div class=\\\"tw-sparkline tw-td\\\" style=\\\"display: none;\\\"></div></div></div></div>\"",
"height": 1
}
},
{
"type": "html",
"settings": {
"html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:TSMsg\"][\"timestamp\"]*1e3);\nreturn \"<div class=\\\"tw-value\\\" style=\\\"font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;\\\" title=\\\"\"+date+\"\\\">\"+ datasources[\"POS\"][\"NSO-LCR:Ops:TSMsg\"][\"value\"] +\"</div>\"",
"height": 1
}
}
]
},
{
"title": "Current time",
"width": 1,
"row": {
"1": 85,
"2": 13,
"3": 11,
"4": 1,
"5": 19, "5": 19,
"6": 19 "6": 19
}, },
"col": { "col": {
"1": 1, "1": 1,
"2": 2, "2": 1,
"3": 1, "3": 2,
"4": 4, "4": 1,
"5": 1, "5": 1,
"6": 1 "6": 1
}, },
...@@ -174,9 +135,9 @@ ...@@ -174,9 +135,9 @@
"title": "LEBT", "title": "LEBT",
"width": 1, "width": 1,
"row": { "row": {
"1": 57, "1": 37,
"2": 35, "2": 33,
"3": 13, "3": 7,
"4": 7, "4": 7,
"5": 1, "5": 1,
"6": 1, "6": 1,
...@@ -271,9 +232,9 @@ ...@@ -271,9 +232,9 @@
"title": "Beam Mode", "title": "Beam Mode",
"width": 1, "width": 1,
"row": { "row": {
"1": 23, "1": 19,
"2": 19, "2": 15,
"3": 13, "3": 19,
"4": 7, "4": 7,
"5": 11, "5": 11,
"6": 11, "6": 11,
...@@ -282,7 +243,7 @@ ...@@ -282,7 +243,7 @@
"col": { "col": {
"1": 1, "1": 1,
"2": 2, "2": 2,
"3": 2, "3": 1,
"4": 2, "4": 2,
"5": 2, "5": 2,
"6": 2, "6": 2,
...@@ -372,9 +333,9 @@ ...@@ -372,9 +333,9 @@
"title": "Ion Source", "title": "Ion Source",
"width": 1, "width": 1,
"row": { "row": {
"1": 41, "1": 55,
"2": 19, "2": 17,
"3": 17, "3": 13,
"4": 7, "4": 7,
"5": 1, "5": 1,
"6": 1, "6": 1,
...@@ -383,7 +344,7 @@ ...@@ -383,7 +344,7 @@
"col": { "col": {
"1": 1, "1": 1,
"2": 1, "2": 1,
"3": 1, "3": 2,
"4": 3, "4": 3,
"5": 1, "5": 1,
"6": 1, "6": 1,
...@@ -460,9 +421,9 @@ ...@@ -460,9 +421,9 @@
"title": "Beam Current", "title": "Beam Current",
"width": 1, "width": 1,
"row": { "row": {
"1": 75, "1": 71,
"2": 53, "2": 51,
"3": 33, "3": 37,
"4": 25, "4": 25,
"5": 1, "5": 1,
"6": 1, "6": 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment