Browse Source

changed paths

bscheibel 4 years ago
parent
commit
eb7e591ef7
1 changed files with 11 additions and 2 deletions
  1. 11 2
      app/templates/index.html

+ 11 - 2
app/templates/index.html

@@ -215,6 +215,13 @@
 
         });
 
+      $("ui-area").scroll(function(){
+          $("input[type=number]").blur();
+          $("div").removeClass("red");
+          $("div").removeClass("green");
+
+      });
+
 
       function highlight_areas(coords, color){
 
@@ -242,8 +249,10 @@
        var y = 0;
 
        if (orientation == "landscape"){
-            x = width*(coords_x*height/width/w);
-            y = height*(coords_y*width/height/h);
+           // x = width*(coords_x*height/width/w);
+           x = (coords_x*height/w);
+           // y = height*(coords_y*width/height/h);
+           y = (coords_y*width/h);
        }
        else {