From d131bcede66d1f348d04a76d30140d451acce959 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Sun, 11 Nov 2018 00:52:03 +0100 Subject: [PATCH] removed a temporary test file and script relating to it --- parts/static/script.js | 20 -------------------- parts/test.html | 20 -------------------- 2 files changed, 40 deletions(-) delete mode 100644 parts/test.html diff --git a/parts/static/script.js b/parts/static/script.js index 6fe7f85..acdcc28 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -243,24 +243,4 @@ $(document).ready(function() { else perform_query(); }); -}); - -$(document).ready(function() { - $("#clickablemap").on("click", function(event) { - var $img = $(this); - var currentClickPosX = event.pageX - $img.offset().left; - var currentClickPosY = event.pageY - $img.offset().top; - - var currentWidth = $img.width(); - var currentHeight = $img.height(); - - var naturalWidth = this.naturalWidth; - var naturalHeight = this.naturalHeight; - - var correctX = ((naturalWidth / currentWidth) * currentClickPosX).toFixed(0); - var correctY = ((naturalHeight / currentHeight) * currentClickPosY).toFixed(0); - - $("#mapURL").html("elab.png?x=" + correctX + "&y=" + correctY); - $("#clickablemap").attr("src", "http://127.0.0.1:5000/parts/map/elab.png?x=" + correctX + "&y=" + correctY); - }); }); \ No newline at end of file diff --git a/parts/test.html b/parts/test.html deleted file mode 100644 index d185757..0000000 --- a/parts/test.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - ELAB Part Search Engine - - - - - - - -
unknown.png
-
- - - \ No newline at end of file