The URI of TUHH Docker Registry changed from "docker.rz.tu-harburg.de:5000" to "docker.rz.tu-harburg.de". Please update your gitlab-ci.yml files if you use images from this registry.

Commit 60389747 authored by Tobias Zeumer's avatar Tobias Zeumer

Make subject labels clickable (show same info as when clicking menu entries). Resolves #44

parent b9f81553
......@@ -75,7 +75,8 @@
/* Hide all, toggle by url parameter (or - later - by UI)
Probably remove. It's done via function toggleLevel()
*/
.subject_label {}
.subject_label {cursor: pointer;}
.lbs_label {}
#UG, #EG, #OG1, #OG2 {display: none;}
#EG-OG1_shared, #staircase {display: none;}
#eg_walls_DEPRECATED, #og1_walls_DEPRECATED, #dev_cloning_source, #dev_marker {display: none;}
......
......@@ -457,6 +457,17 @@ $( document ).ready(function() {
// Show legend for entry
show_legend_entry(target, target, 1);
});
// Listen for subject label clicks (do the same as for menu entry clicks above)
$(".subject_label").on('click', function(event) {
var target = this.id.replace('lbl_', '').toLowerCase();
// Highlight target
find_and_highlight('.' + target);
// Show legend for entry
show_legend_entry(target, target, 1);
});
// DOCUMENT READY END
});
......
......@@ -167,8 +167,8 @@
#frame_subject_label {stroke:#D883CE;}
#frame_lbs_label {stroke:#550000;}
#frame_stack_label {stroke:#7179F0;}
.subject_label {fill:#000000;}
.subject_label text {font-weight:bold;font-size:10.56px;font-family:'Courier New'; stroke:none;}
.subject_label, .lbs_label {fill:#000000;}
.subject_label text, .lbs_label text {font-weight:bold;font-size:10.56px;font-family:'Courier New'; stroke:none;}
.daylightshadow {filter:url(#daylightshadow);}
</style>
......@@ -12517,7 +12517,7 @@ WKZ-200 - WKZ-902</desc>
<g
id="lbl_lbs_Kx"
inkscape:label="lbl_lbs_K"
class="subject_label"
class="lbs_label"
style="fill:#000000">
<text
xml:space="preserve"
......@@ -12539,7 +12539,7 @@ WKZ-200 - WKZ-902</desc>
<g
id="lbl_lbs_W"
inkscape:label="lbl_lbs_W"
class="subject_label"
class="lbs_label"
style="fill:#000000">
<text
xml:space="preserve"
......@@ -12561,7 +12561,7 @@ WKZ-200 - WKZ-902</desc>
<g
id="lbl_lbs_P"
inkscape:label="lbl_lbs_P"
class="subject_label"
class="lbs_label"
style="fill:#000000">
<text
xml:space="preserve"
......@@ -12583,7 +12583,7 @@ WKZ-200 - WKZ-902</desc>
<g
id="lbl_lbs_N"
inkscape:label="lbl_lbs_N"
class="subject_label"
class="lbs_label"
style="fill:#000000">
<text
xml:space="preserve"
......@@ -12605,7 +12605,7 @@ WKZ-200 - WKZ-902</desc>
<g
id="lbl_lbs_K"
inkscape:label="lbl_lbs_K"
class="subject_label"
class="lbs_label"
style="fill:#000000">
<text
xml:space="preserve"
......@@ -12627,7 +12627,7 @@ WKZ-200 - WKZ-902</desc>
<g
id="lbl_lbs_A"
inkscape:label="lbl_lbs_A"
class="subject_label"
class="lbs_label"
style="fill:#000000">
<text
xml:space="preserve"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment