From cd857c36029002851b9bb7243fa262b9dfd3fa07 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 9 Jul 2016 21:23:58 +0000 Subject: [PATCH] Fixed a bug in removing old blinking arrows. Added functional room names. Tweaked the font size of room names. Made the page switch to the right floor-plan for a given room. - Legacy-Id: 11586 --- ietf/static/ietf/js/room_params.js | 11 ++++++++--- ietf/templates/meeting/floor-plan.html | 24 ++++++++++++++++++++---- 2 files changed, 28 insertions(+), 7 deletions(-) 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 @@ -
- {% for room in floor.room_set.all %} - {{ room.name|nbsp }} +
+ {% for f in floors %} + {% for room in f.room_set.all %} + {{ room.name|nbsp }}  + {% endfor %} + {% endfor %} +
+ {% for f in floors %} + {% for room in f.room_set.all %} + {% if room.functional_display_name %} + {{ room.functional_display_name|nbsp }}  + {% endif %} + {% endfor %} {% endfor %}
@@ -76,7 +91,8 @@