forked from lin-midas-pages/common_pages
Initial commit for common MIDAS webpages
This commit is contained in:
commit
0df24df3cd
14 files changed
+9363
No files matched your search
@@ -0,0 +1 @@
|
||||
build
|
||||
@@ -0,0 +1,14 @@
|
||||
cmake_minimum_required(VERSION 3.3)
|
||||
|
||||
project(common_pages VERSION 1.0)
|
||||
|
||||
if (NOT DEFINED ENV{MIDASSYS})
|
||||
message(FATAL_ERROR "The system variable MIDASSYS is not defined.")
|
||||
endif (NOT DEFINED ENV{MIDASSYS})
|
||||
|
||||
set(install_path $ENV{MIDASSYS}/Custom)
|
||||
|
||||
install(
|
||||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pages/ DESTINATION ${install_path}
|
||||
)
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# Common pages
|
||||
|
||||
Custom MIDAS webpages shared across multiple SuS experiments.
|
||||
|
||||
This repository is meant to be included as a submodule in the
|
||||
instrument-specific pages repository such as
|
||||
<https://gitea.psi.ch/lin-midas-pages/flame_pages>.
|
||||
|
||||
## Installation
|
||||
|
||||
As a prerequisite, the system variable `MIDASSYS` needs to be defined and point
|
||||
to the MIDAS installation. Then, run:
|
||||
|
||||
```bash
|
||||
cmake -S "$(pwd)" -B <directory-to-build-in>
|
||||
cmake --install <directory-to-build-in>
|
||||
```
|
||||
|
||||
The first step generates the build rules into `<directory-to-build-in>`. This is
|
||||
a temporary directory which is recommended to be `$(pwd)/build` (a folder called
|
||||
"build" in the repository root). The second step then copies everything in
|
||||
`pages` into `$MIDASSYS/Custom`, the standard location for MIDAS custom pages.
|
||||
Because the installation does not require compiling any source code, no
|
||||
build step is needed.
|
||||
|
||||
## Contact
|
||||
Flame:
|
||||
<jonas.krieger@psi.ch>;
|
||||
LEM:
|
||||
<andreas.suter@psi.ch>,
|
||||
<thomas.prokscha@psi.ch>,
|
||||
<zaher.salman@psi.ch>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
+398
@@ -0,0 +1,398 @@
|
||||
html { font-size: 100%;}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
td {
|
||||
white-space: nowrap;
|
||||
/* font-size: 10vw;*/
|
||||
}
|
||||
|
||||
.guitable {
|
||||
background-color: #DDDDDD;
|
||||
border: 0px;
|
||||
width: 100%;
|
||||
/* border-collapse: collapse; */
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
border-spacing: 0px;
|
||||
padding: 5px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.guitable tr:last-child td:first-child {
|
||||
/* font-size: 10vw;*/
|
||||
border-bottom-left-radius: 12px;
|
||||
}
|
||||
.guitable tr:last-child td:last-child {
|
||||
border-bottom-right-radius: 12px;
|
||||
}
|
||||
.guitable tr:first-child td:first-child {
|
||||
border-top-left-radius: 12px;
|
||||
}
|
||||
.guitable tr:first-child td:last-child {
|
||||
border-top-right-radius: 12px;
|
||||
}
|
||||
.guitable tr:nth-child(odd) {
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
.guitable tr:nth-child(even) {
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
|
||||
.oddeven tr:nth-child(odd) {
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
.oddeven tr:nth-child(even) {
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
|
||||
/* For mobile phones: */
|
||||
[class*="col-"] {
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
float: left;
|
||||
padding: 5px;
|
||||
overflow:hidden;
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (min-width: 990px) {
|
||||
/* For desktop: */
|
||||
.col-1 {width: 50%;background-color: #F2F2F2;}
|
||||
.col-2 {width: 50%;background-color: #F2F2F2;}
|
||||
.col-full {width: 100%;background-color: #F2F2F2;}
|
||||
}
|
||||
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
.group_name {
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
font-size:1.05rem;
|
||||
font-weight:bold;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
/* text-align: center; */
|
||||
}
|
||||
.yellow_td {
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
background-color: yellow;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.gray_td {
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
background-color: gray;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nocol_td {
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
width: 1%;
|
||||
min-width: 9rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Style the tab */
|
||||
.tab {
|
||||
overflow: hidden;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.active {
|
||||
background-color: #11f1f1;
|
||||
}
|
||||
|
||||
/* Style the buttons that are used to open the tab content */
|
||||
.tab button {
|
||||
background-color: inherit;
|
||||
float: left;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
padding: 14px 16px;
|
||||
transition: 10.3s;
|
||||
font-size:1.1rem;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
/* Style the tab content */
|
||||
.tabcontent {
|
||||
display: none;
|
||||
padding: 6px 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.tabcontent {
|
||||
animation: fadeEffect 1s; /* Fading effect takes 1 second */
|
||||
}
|
||||
|
||||
/* Go from zero to full opacity */
|
||||
@keyframes fadeEffect {
|
||||
from {opacity: 0;}
|
||||
to {opacity: 1;}
|
||||
}
|
||||
|
||||
.scaler_head_left {
|
||||
text-align:left;
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
}
|
||||
.scaler_head_right {
|
||||
text-align:right;
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
}
|
||||
.scaler_name {
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
}
|
||||
.scaler_val {
|
||||
text-align:right;
|
||||
padding-right:1em;
|
||||
}
|
||||
|
||||
|
||||
/* For the AutoRun tab */
|
||||
.lar_label {
|
||||
text-align:left;
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
}
|
||||
.lar_label_right {
|
||||
text-align:right;
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
}
|
||||
.lar_value {
|
||||
text-align:left;
|
||||
padding-left:1em;
|
||||
padding-right:1em;
|
||||
}
|
||||
.lar_script {
|
||||
text-align:left;
|
||||
font-family:Fixed;
|
||||
font-size: 1rem;
|
||||
line-height:1.25;
|
||||
}
|
||||
.lar_fatal {
|
||||
background-color: #FF0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.lar_err {
|
||||
background-color: #FF8800;
|
||||
font-weight: bold;
|
||||
}
|
||||
.lar_msg {
|
||||
background-color: #11FF11;
|
||||
font-weight: bold;
|
||||
}
|
||||
.lar_current_cmd {
|
||||
background-color: #FFFF00;
|
||||
font-weight: bold;
|
||||
}
|
||||
.lar_comment {
|
||||
color: grey;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/*LOOP_ WAIT TITLE START TOF FIELD TEMP */
|
||||
.lar_command {
|
||||
color: #C81A1C;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*ODB_TAG ALIAS */
|
||||
.lar_tag {
|
||||
color: #0A6E2B;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*ODB_TAG ALIAS */
|
||||
.lar_ntag {
|
||||
color: #8E0F7E;
|
||||
}
|
||||
|
||||
/*ODB_TAG ALIAS */
|
||||
.lar_otag {
|
||||
color: #9F4511;
|
||||
}
|
||||
|
||||
/*ODB_PARAM ALIAS */
|
||||
.lar_par {
|
||||
color: #1817A2;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.lar_odb {
|
||||
color: #D3AF37;
|
||||
}
|
||||
|
||||
.lar_loop {
|
||||
color: #8E0F7E;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.lar_area {
|
||||
max-width:90vw;
|
||||
width:100%;
|
||||
height:40vh;
|
||||
overflow:auto;
|
||||
resize:both;
|
||||
background-color:white;
|
||||
overflow-wrap: break-word;
|
||||
caret-color: red;
|
||||
padding: 5px 10px 5px 10px;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Red/Green Mode */
|
||||
#PulsOn {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
background-color: red;
|
||||
position: relative;
|
||||
-webkit-animation-name: example; /* Chrome, Safari, Opera */
|
||||
-webkit-animation-duration: 2s; /* Chrome, Safari, Opera */
|
||||
-webkit-animation-iteration-count: infinite; /* Chrome, Safari, Opera */
|
||||
animation-name: example;
|
||||
animation-duration: 3s;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
/* Chrome, Safari, Opera */
|
||||
@-webkit-keyframes example {
|
||||
0% {background-color:red; left:20px; top:0px;}
|
||||
25% {background-color:orange; left:25px; top:0px;}
|
||||
50% {background-color:green; left:30px; top:0px;}
|
||||
75% {background-color:orange; left:25px; top:0px;}
|
||||
100% {background-color:red; left:20px; top:0px;}
|
||||
}
|
||||
|
||||
/* Standard syntax */
|
||||
@keyframes example {
|
||||
0% {background-color:red; left:20px; top:0px;}
|
||||
25% {background-color:orange; left:25px; top:0px;}
|
||||
50% {background-color:green; left:30px; top:0px;}
|
||||
75% {background-color:orange; left:25px; top:0px;}
|
||||
100% {background-color:red; left:20px; top:0px;}
|
||||
}
|
||||
|
||||
/* HV table highlight */
|
||||
.tdSelectable:hover {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
.tdSelected {
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.tdIgnorable:hover {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.tdIgnored {
|
||||
background: red;
|
||||
}
|
||||
|
||||
/* Proposal ID checks */
|
||||
.propIDcorrect {
|
||||
background: red;
|
||||
}
|
||||
|
||||
|
||||
/* Vacuum related */
|
||||
.chamber {
|
||||
stroke: #000000;
|
||||
stroke-width: 2px;
|
||||
fill: #E0E0E0;
|
||||
}
|
||||
.pump_line {
|
||||
stroke: #505050;
|
||||
stroke-width: 5px;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
/* The switch - the box around the slider */
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
/* Hide default HTML checkbox */
|
||||
.switch input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* The slider */
|
||||
.slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #ccc;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
left: 2px;
|
||||
bottom: 2px;
|
||||
background-color: white;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
input:checked + .slider {
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
input:focus + .slider {
|
||||
box-shadow: 0 0 1px #2196F3;
|
||||
}
|
||||
|
||||
input:checked + .slider:before {
|
||||
-webkit-transform: translateX(13px);
|
||||
-ms-transform: translateX(13px);
|
||||
transform: translateX(13px);
|
||||
}
|
||||
|
||||
/* Rounded sliders */
|
||||
.slider.round {
|
||||
border-radius: 17px;
|
||||
}
|
||||
|
||||
.slider.round:before {
|
||||
border-radius: 50%;
|
||||
}
|
||||
+4506
File diff suppressed because it is too large.
Load diff
+1806
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
+1437
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="mcss">
|
||||
|
||||
<head>
|
||||
<title>Statistics</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="oddeven guitable" style="width: 100%; border: 0px none;">
|
||||
<tr>
|
||||
<td style="vertical-align: top;">
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
<b style="text-align: center;">Histogram</b>
|
||||
<!-- Histogram counts -->
|
||||
<div style="overflow: auto; resize:vertical;">
|
||||
<table class="mtable" style="border:none; width: 100%;" id="Histo"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<b style="text-align: center;">Scalers</b>
|
||||
<!-- Scalers counts -->
|
||||
<div style="overflow: auto; height: 400px; resize:vertical;">
|
||||
<table class="mtable" style="border:none; width: 100%;" id="Scaler"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user