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 19f1c13d authored by Tobias Zeumer's avatar Tobias Zeumer

Readd legend animation and animate text (otherwise sometimes hard to see that...

Readd legend animation and animate text (otherwise sometimes hard to see that text has changed); #36
parent f4f21b7e
......@@ -84,7 +84,8 @@ html
svg#tubhh
{width: 100%; flex: 1 0 auto; }
#legend
{background-color: #c0c0c0; overflow: auto; flex: 0 0 auto; height: 30vh; min-height: 30vh; max-height: 30vh; z-index: 20;}
{background-color: #c0c0c0; overflow: auto; flex: 0 0 auto; height: 30vh; max-height: 30vh; z-index: 20; transition-property: all; transition-duration: .5s; transition-timing-function: cubic-bezier(0, 1, 0.5, 1);}
/* too nervous? : {background-color: #c0c0c0; overflow: auto; flex: 0 1 content; min-height: 200px; max-height: 30vh; z-index: 20;} */
/* #############################################################################
......
......@@ -150,7 +150,7 @@ $( document ).ready(function() {
// Listen for clicks on close button for legend
$("#legend_btn_close").on('click', function(event) {
$("#legend").hide();
$("#legend").css("height", "0");
});
// Listen for clicks on close button for modal
......@@ -557,8 +557,8 @@ function show_legend_entry(aria_label, aria_desc, prefix) {
// Show legend entry. If not already, visible, show legend itself. Scroll to
// top because user might have scrolled down previously
$(aria_selector).show();
$("#legend").show().scrollTop(0);
$(aria_selector).show(1000);
$("#legend").css("height", "30vh").scrollTop(0);
}
......
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