diff --git a/ietf/static/ietf/js/room_params.js b/ietf/static/ietf/js/room_params.js index f287bc550..79c163af8 100644 --- a/ietf/static/ietf/js/room_params.js +++ b/ietf/static/ietf/js/room_params.js @@ -61,6 +61,13 @@ function roomcoords(nm) function setarrow(nm) // Place an arrow at the center of a given room name (or list of room names separated by "/"). { + for (var f = 0; f < floorlist.length; f++) { + floor = floorlist[f]; + for (var i = 0; i < arrowsuffixlist.length; i++) { + removearrow(arrowsuffixlist[i], floor); + } + } + for (var i = 0; i < arguments.length; i+=2) { nm = roommap(arguments[i]); if (verbose) alert("nm=" + nm); @@ -75,9 +82,6 @@ function setarrow(nm) if (verbose) alert("left=" + left + ", top=" + top + ", right=" + right + ", bottom=" + bottom + ", floor=" + floor + ", width=" + width); //alert("left=" + left + ", top=" + top + ", right=" + right + ", bottom=" + bottom); // calculate arrow position - for (var i = 0; i < arrowsuffixlist.length; i++) { - removearrow(arrowsuffixlist[i], floor); - } arrow_left = (left + (right - left) / 2 ); arrow_top = (top + (bottom - top) / 2 ); // scale the coordinates to match image scaling @@ -92,6 +96,7 @@ function setarrow(nm) adiv.style.left = arrow_left + offsetleft + "px"; adiv.style.top = arrow_top + offsettop + "px"; adiv.style.visibility = "visible"; + window.location.hash = floor; } } } diff --git a/ietf/templates/meeting/floor-plan.html b/ietf/templates/meeting/floor-plan.html index 89b714277..e2bbff6e7 100644 --- a/ietf/templates/meeting/floor-plan.html +++ b/ietf/templates/meeting/floor-plan.html @@ -22,8 +22,13 @@ padding: 0; } .rooms a { + text-decoration: underline; } +hr.slim { + margin-top: 1.3ex; + margin-bottom: 1ex; +} {% endblock %} {% block bodyAttrs %}onload="automaticarrow(); checkParams();" data-spy="scroll" data-target="#affix"{% endblock %} @@ -53,9 +58,19 @@