浏览代码

added ADEI link to Ventil and Integer-tostring types

Signed-off-by: nicolaisi <nicholas.jerome@kit.edu>
nicolaisi 8 年之前
父节点
当前提交
0bf6f519ad
共有 3 个文件被更改,包括 8 次插入7 次删除
  1. 3 3
      cache.yaml
  2. 3 2
      static/style.css
  3. 2 2
      status.html

+ 3 - 3
cache.yaml

@@ -1,6 +1,6 @@
 311-RBY-1-5051: ''
 320-MOD-0-0001: '2'
-320-RTP-3-1101: '91.55384063720703'
-320-RTY-3-2101: '102.1227493286133'
-320-RTY-3-3101: '99.11091613769531'
+320-RTP-3-1101: '97.18842315673828'
+320-RTY-3-2101: '101.5485305786133'
+320-RTY-3-3101: '98.77044677734375'
 411-REI-1-1110-0030: ''

+ 3 - 2
static/style.css

@@ -113,8 +113,9 @@ span,
     
     /* customizable */
     background: black;
-    margin-top: -50px;
-    margin-left: 20px;    
+    width: 150px;
+    margin-top: -25px;
+    margin-left: 20px;
 }
 
 [tooltip]:not([tooltip-persistent]):before {

+ 2 - 2
status.html

@@ -34,14 +34,14 @@ data-type="{{ data['style'][key]['type'] }}" data-lesser="{{ data['style'][key][
 
 
 {% if data['style'][key]['type'] == "ventil" %}
-<div style='position: absolute; top: {{ data['style'][key]['top'] }}; left:{{ data['style'][key]['left'] }}; width:{{ data['style'][key]['width'] }}px; height:{{ data['style'][key]['height'] }}px;' data-type="{{ data['style'][key]['type'] }}" data-off="{{ data['style'][key]['off'] }}" data-on="{{ data['style'][key]['on'] }}" class='databox' id="{{ key }}">
+<div tooltip="{{ key }}" style='position: absolute; top: {{ data['style'][key]['top'] }}; left:{{ data['style'][key]['left'] }}; width:{{ data['style'][key]['width'] }}px; height:{{ data['style'][key]['height'] }}px;' data-type="{{ data['style'][key]['type'] }}" data-off="{{ data['style'][key]['off'] }}" data-on="{{ data['style'][key]['on'] }}" onclick="window.open('http://katrin.kit.edu/adei-katrin/#module=graph&{{ data['varname'][key]}}&experiment=-&window=0&module=graph&virtual=srctree&srctree=&infomod=legend', '_blank');" class='databox' id="{{ key }}">
 <img width='100%' height='100%' src='{{ static_url("ventil_inactive.png") }}'></img>
 </div>
 {% else %}
 {% end %}
 
 {% if data['style'][key]['type'] == "integer-to-string" %}
-<div style='position: absolute; top: {{ data['style'][key]['top'] }}; left:{{ data['style'][key]['left'] }}; width:{{ data['style'][key]['width'] }}px; height:{{ data['style'][key]['height'] }}px;' data-dict="{{ data['style'][key]['dict'] }}" data-type="{{ data['style'][key]['type'] }}" class='databox' id="{{ key }}">
+<div tooltip="{{ key }}" style='position: absolute; top: {{ data['style'][key]['top'] }}; left:{{ data['style'][key]['left'] }}; width:{{ data['style'][key]['width'] }}px; height:{{ data['style'][key]['height'] }}px;' data-dict="{{ data['style'][key]['dict'] }}" data-type="{{ data['style'][key]['type'] }}" onclick="window.open('http://katrin.kit.edu/adei-katrin/#module=graph&{{ data['varname'][key]}}&experiment=-&window=0&module=graph&virtual=srctree&srctree=&infomod=legend', '_blank');" class='databox' id="{{ key }}">
 <p><span style="color: #000; font-size: {{ data['style'][key]['header']['size'] }}; font-weight: {{ data['style'][key]['header']['weight'] }};" class="title">{{ data['style'][key]['header']['title'] }} </span><br /><span style="color: #000; font-size: {{ data['style'][key]['unit']['size'] }}; font-weight: {{ data['style'][key]['unit']['weight'] }};" class="varval">??? </span></p>
 </div>
 {% else %}