diff --git a/templates/viewer.html b/templates/viewer.html index e771530..e7b6523 100644 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -35,25 +35,47 @@ // actually draw the pixel images to the canvas at the right size context.drawImage(im, 0, 0, canvas.width, canvas.height ) - // draw rect on each face - for( i=0; i
{% set max=eids.split(',')|length %} -
-
+
+ +
+
{% if eids.find(obj.id|string) > 0 %} @@ -94,7 +132,6 @@ {% endif %} faces.push( data ) {% endfor %} - console.log( faces ) var context = canvas.getContext('2d') window.addEventListener('resize', DrawImg, false); @@ -123,8 +160,7 @@ {% endif %} {% endfor %}
-
- + {% endblock main_content %} {% block script_content %}